diff --git a/a1/program.c b/a1/program.c index 1f0054e..16d9f92 100644 --- a/a1/program.c +++ b/a1/program.c @@ -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++;