Update a1/program.c
This commit is contained in:
parent
08bbe2150a
commit
ea3282446c
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user