Update a1/program.c
This commit is contained in:
parent
ad45afcc0d
commit
0ef11e0c0e
@ -84,21 +84,25 @@ int main()
|
||||
{
|
||||
printf("\nCrossed bracket %c in %d, expected %c", c, i, para(c));
|
||||
is_ok=false;
|
||||
break;
|
||||
}
|
||||
if(c==')' && cs!='(')
|
||||
{
|
||||
printf("\nCrossed bracket %c in %d, expected %c", c, i, para(c));
|
||||
is_ok=false;
|
||||
break;
|
||||
}
|
||||
if(c==')' && cs!='(')
|
||||
{
|
||||
printf("\nCrossed bracket %c in %d, expected %c", c, i, para(c));
|
||||
is_ok=false;
|
||||
break;
|
||||
}
|
||||
if(c=='}' && cs!='{')
|
||||
{
|
||||
printf("\nCrossed bracket %c in %d, expected %c", c, i, para(c));
|
||||
is_ok=false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
|
Loading…
Reference in New Issue
Block a user