error compiling

Is that the complete error message ?
Have you got the correct board selected ?

When I compiled it all I got was

Archiving built core (caching) in: C:\Users\Bob\AppData\Local\Temp\arduino_cache_249427\core\core_arduino_avr_uno_f6a42fc7c4fa8c4f7d5e83b05984621b.a
Sketch uses 5444 bytes (16%) of program storage space. Maximum is 32256 bytes.
Global variables use 592 bytes (28%) of dynamic memory, leaving 1456 bytes for local variables. Maximum is 2048 bytes.

ie, no error