The challenge:
Write a very short program that, when compiled, creates the most amount of compiler warnings and errors. It can be written in any programming language.
Scoring:
The score is determined by this equation: (1/length)*errors_and_warnings
Example:
The C# program class is 5 chars long and generates 3 warnings, which is a score of (1/5)*3 = 0.6.
EDIT:
Because of some confusion, programs have to be at least 1 char long. Otherwise it would get a score of infinity.
gcc -Wall -pedanticis very different from plain ol`gccis different fromtccis presumably different from some other c compiler. – dmckee♦ May 12 '12 at 16:18