Error "pin(any) not declared in this scope

I am totally new to this and the first thing I did to check my Elegoo Uno was:

void setup() {
// put your setup code here, to run once:
pinMode(pin13,OUTPUT);

}

void loop() {
// put your main code here, to run repeat:
digitalWrite(pin13,HIGH);
delay (2000);
digitalWrite(pin13,LOW);
delay (2000);
}

This worked fine but now whatever I try to do with any pin (including pin13) I get the message:

pin(whatever) was not declared in this scope

What have I done wrong??

You have not declared a variable named pin13. If you like, you can declare such a variable:

byte pin13 = 13;

but that's not a very good variable name. Better would be something like LEDPin (if you have an LED connected to the pin).

Or if you are just trying to use the pin number directly in your sketch, do that:

void setup() {
  // put your setup code here, to run once:
pinMode(13,OUTPUT);

}

void loop() {
  // put your main code here, to run repeat:
digitalWrite(13,HIGH);
delay (2000);
digitalWrite(13,LOW);
delay (2000);
}

Thank you so much for your help

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per