exit status 1. expected '}' at end of input

hi
i have a line follower robot code
at the last line it says that
exit status 1
expected ‘}’ at end of input

here s the code

int m1 =12;
int m2 =13;
int s1 =A0;
int s2 =A1;
int ws1,ws2;
void setup () {
pinMode (m2,OUTPUT);
pinMode (m1,OUTPUT);
}
void loop () {
if (ws1>350 && ws2 <400){
digitalWrite (m1, HIGH);
digitalWrite (m2, HIGH);
delay (200);
if (ws1>350 && ws2 <400){
digitalWrite (m2, LOW);
digitalWrite (m1, HIGH);
delay (200);
digitalWrite (m1, HIGH);
digitalWrite (m2, HIGH);
delay (200);
}
if (ws2>350 && ws1 <400){
digitalWrite (m1, LOW);
digitalWrite (m2, LOW);
delay (200);
digitalWrite (m1, HIGH);
delay (200);

Your code is incomplete - not enough closing } at the very least.
Also not enough code tags.

Using code tags won’t help (much).
Use Tools-> AutoFormat and you can see the code flow better.
At times it will indicate problem area by offsetting the text.
You can also put your mouse at brackets ( { } and it will identify the corresponding one, or none as in this case.
Good luck coding.
Jim
.

julyjim:
Using code tags won't help (much).

It will allow others to more accurately cut and paste posted code.
That's always a plus, IMO.