From ea3282446cdbf8f3bf5081e873c151e92b93b88d Mon Sep 17 00:00:00 2001 From: Viktor Daniv Date: Sat, 26 Oct 2024 19:44:30 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index dac789b..3cb7d04 100644 --- a/a1/program.c +++ b/a1/program.c @@ -49,7 +49,7 @@ void check_brackets(const char *code) { // Перевірка, чи всі дужки закриті if (stack_top >= 0) { - printf("Missing closing bracket: %c\n", stack[stack_top]); + printf("Missing closing bracket: %c\n", expected); } else { printf("All brackets OK\n"); }