diff --git a/a1/main b/a1/main index c4fcfac..987823d 100755 Binary files a/a1/main and b/a1/main differ diff --git a/a1/program.c b/a1/program.c index c936066..3a9e3b1 100644 --- a/a1/program.c +++ b/a1/program.c @@ -69,8 +69,9 @@ void check_brackets(const char *line) { if (stack_top >= 0) { printf("Missing closing brackets:"); - while (stack_top >= 0) { - printf(" %c", expected_closing(stack[stack_top].bracket)); + printf(" "); + while (stack_top >= 0) { + printf("%c", expected_closing(stack[stack_top].bracket)); stack_top--; } printf("\n");