What is wrong with this simple code?

I don't see anything wrong and the compiler doesn't give any errors or warnings.

I am not sure what happened, but when I downloaded it there were problems with the code when I pasted it into the IDE but I am not sure what I did to cause them. Sorry for any confusion caused.