From 0ef11e0c0ed5f4a43a0a312a0c32d9ae0ae337d5 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Fri, 25 Oct 2024 20:14:13 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 4 ++++ 1 file changed, 4 insertions(+) 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++;