Update a1/program.c

This commit is contained in:
Yurii Yakovenko 2024-10-25 20:14:13 +00:00
parent ad45afcc0d
commit 0ef11e0c0e

View File

@ -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++;