Good to know... now, here is the bare minimum requirement for compiling an Arduino sketch. Notice that it has two functions:
void setup()
andvoid loop()
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Your sketch is missing one of these two "minimum" requirements.
This and other sketches can be found here: