Initializacia

This commit is contained in:
Kozar 2024-10-29 17:01:15 +00:00
parent 6c0c3cfee5
commit 0a45896795

View File

@ -55,12 +55,12 @@ void check_brackets(const char *line) {
}
} else if (is_closing(ch)) {
if (stack_top == -1) {
printf("Unexpected closing bracket %c in %d\n", ch, i);
printf("Unexpected closing bracket %c in %d \n", ch, i);
return;
} else if (stack[stack_top].bracket == matching_bracket(ch)) {
stack_top--;
} else {
printf("Crossed bracket %c in %d, expected %c\n ", ch, i,
printf("Crossed bracket %c in %d, expected %c \n", ch, i,
expected_closing(stack[stack_top].bracket));
return;
}