Code Error while compiling

If you use the autoformat tool (ctrl-t or Tools, Auto format) on your improperly posted code you will see that there is no { to open the loop() function.