Newbie question

Hi 'yall

Im trying to write my first code, but all im getting is a message that says "expected unqualified-id before numeric constant"

ill post a copy of my void setup.

1 int SwitchState = 0;

2 void setup(){
3 pinMode(3,OUTPUT);
4 pinMode(4,OUTPUT);
5 pinMode(5,OUTPUT);
6 pinMode(2,INPUT);
7 }

Can anyone see whats wrong with it? The void setup wont turn red

Tnx

(deleted)

Hello Friend,

i seen the code and run in my system its works fine.

are u adding

void loop()
{
}

after setup or not.

and yes remove line number if you have added.

even im also new in coding .

tnx for your reply

Do you mean i should remove the 1 2 3 4 5 and so on?

@Chrismeister76 :- Can you attach your code in txt file? its hard to identify whether you writing code in given fashion or explaing on forum. please provide exact code you trying to compile or is it the exact one?

Chrismeister76:
tnx for your reply

Do you mean i should remove the 1 2 3 4 5 and so on?

what happened when you tried?