help with the error "exit status 1"

i was making a program and i had this error
this is the program:

int s,led=13;
void setup()
{
{ pinMode(13,OUTPUT);
}

{pinMode(2,INPUT);
}
}
void loop()
{
if(s==0)
{digitalWrite(13,1);
}
if(s==1)
{digitalWrite(13,0);
}
}

You need to start with the FIRST error, NOT the last one.

You need to fix your { code to } have{ the proper} number {of curly } braces, not the {number you} think lo}oks good.

Despite the over generous use of { and } the code compiles for me.
That is not an excuse not to fix the { and } problem.

exit status 1 can also appear if communications with the board fails.

Do you have the correct serial port specified?

Does it compile if you just compile it and don't upload it to the board?