Having some issues with my coding

Good to know... now, here is the bare minimum requirement for compiling an Arduino sketch. Notice that it has two functions:

  1. void setup() and
  2. void 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: