Error compiling code for Arduino Uno

groundFungus:
Is the error something about missing a loop() function? That is all that I can guess from the posted code. If you were to post the error message (in its entirety) we would be more likely to be able to help.

Sorry I forgot to add the error, it I have now edited and added the error.