From b262b92ddd66e6bd198e08e7c2e0bf48e12786e1 Mon Sep 17 00:00:00 2001 From: Deinerovych Date: Tue, 29 Oct 2024 15:01:24 +0100 Subject: [PATCH] 4 --- a1/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/a1/program.c b/a1/program.c index ab08401..9f6ca86 100644 --- a/a1/program.c +++ b/a1/program.c @@ -31,7 +31,7 @@ void check_brackets(const char *code) { } else if (ch == ')' || ch == '}' || ch == ']' || ch == '>') { if (top == -1) { - printf("Unmatched closing bracket %c at position %d\n", ch, i); + printf("Unexpected closing bracket %c in %d\n", ch, i); return; } if (!is_matching_pair(stack[top], ch)) { @@ -65,5 +65,4 @@ int main() { } return 0; -}