> what did I do wrong
You didn't compile it before handing it in.
Look carefully around line 12
See how the syntax "colouring" has gone all wacky?
That's because your code is broke.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005