Update a1/program.c

This commit is contained in:
Viktor Daniv 2024-10-26 19:33:35 +00:00
parent 54e0f59f6f
commit 5760b56ea0

View File

@ -32,7 +32,7 @@ void check_brackets(const char *code) {
// Ak je znak zatváracia zátvorka
else if (c == ')' || c == '}' || c == ']' || c == '>') {
if (stack_top < 0) {
printf("Unexpected closing bracket %c at position %d\n", c, i);
printf("Unexpected closing bracket %c in %d\n", c, i);
return;
}
char top = stack[stack_top--];