Xenon{pskim}:~> cat hello.c
#include <stdio.h>
main()
{
   printf("Hello, world.\n";
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c: In function `main':
hello.c:4: parse error before `;'
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cat hello.c
main()
{
   printf("Hello, world.\n);
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c:4: unterminated string or character constant
hello.c:4: possible real start of unterminated constant
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cta hello.c
cta: Command not found.
Xenon{pskim}:~> cat hello.c
main()
{
   printf("Hello, world."\n);
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c: In function `main':
hello.c:4: stray '\' in program
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cat hello.c
main()
{
   printf("Hello, world."/n);
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c: In function `main':
hello.c:4: `n' undeclared (first use this function)
hello.c:4: (Each undeclared identifier is reported only once
hello.c:4: for each function it appears in.)
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cat helklo.c
cat: cannot open helklo.c
Xenon{pskim}:~> cat hello.c
main()
{
   int n;

   printf("Hello, world."/n);
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c: In function `main':
hello.c:6: invalid operands to binary /
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cat hello.c
main()
{
   int n;

   printf((int)"Hello, world."/n);
}
Xenon{pskim}:~> gcc -o hello hello.c
hello.c: In function `main':
hello.c:6: warning: passing arg 1 of `printf' makes pointer from integer without a cast
Xenon{pskim}:~> vi hello.c



Xenon{pskim}:~> cat hello.c
main()
{
   int n;

   printf((char *)((int)"Hello, world."/n));
}
Xenon{pskim}:~> gcc -o hello hello.c
Xenon{pskim}:~> hello
Segmentation fault
Xenon{pskim}:~> logout