need help with code errors

Cant seem to get this to work any clues??

_10_minute_Blink_with_button_reset:33: error: 'led' was not declared in this scope

digitalWrite(led, HIGH);

^

C:\Users\Paul\Documents\Arduino\Sketchbook_10_minute_Blink_with_button_reset_10_minute_Blink_with_button_reset.ino: At global scope:

_10_minute_Blink_with_button_reset:46: error: 'switchState' does not name a type

switchState = digitalRead(switchPin);

^

_10_minute_Blink_with_button_reset:49: error: expected unqualified-id before 'if'

if (switchState != prevSwitchState) {

^

_10_minute_Blink_with_button_reset:57: error: 'previousTime' does not name a type

previousTime = currentTime;

^

_10_minute_Blink_with_button_reset:58: error: expected declaration before '}' token

}

^

exit status 1
'led' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

_10_minute_Blink_with_button_reset.ino (1.62 KB)

The code you posted contains led and LED only in comments. So, it clearly is NOT the code you were compiling.

PaulS:
The code you posted contains led and LED only in comments. So, it clearly is NOT the code you were compiling.

...although it does fail the compile at the switchState one.

Have a look at the pairing of the { and } braces. The } just above where you try to read the pin into switchState is actually the closing } for loop() so the line in question is not inside loop().

  }  //<<<<<<<<<<<<<<<<<<<<<<<<< this one actually closes loop()

  // read the switch value
  switchState = digitalRead(switchPin);

Please post the code here rather than attaching it.

Before you do, please read this before posting a programming question and follow the advice given.