@rougeking: thanks for removing the code. My first thought when I see something full of typos is to say "Here, do it like this..." but I'm convinced of the futility of this approach as it demonstrates what would be right but doesn't address question of what was wrong. Since similar problems are *certain* to occur again, an understanding of what was wrong is much more valuable.
In the OP's case, he or she still has to deal with NB's perverse willingness to attempt to run defective code and the consequent very cryptic runtime messages. Also there's the basic question of what compilation is and how you compile. The Tutorial link addresses exactly that.
A little point but when you do post code the appropriate tags have square
brackets: [code] ... [/code]