From 3a0e028b7e0569ca6dad69beeb5baa99e20ba97b Mon Sep 17 00:00:00 2001 From: VIliam Date: Thu, 31 Oct 2024 23:28:20 +0100 Subject: [PATCH] s --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 96bfe6c..0bbee3b 100644 --- a/a1/program.c +++ b/a1/program.c @@ -18,7 +18,7 @@ void check_brackets(const char *code) { stack[++top] = c; } else if (c == '}' || c == ']' || c == ')') { if (top == -1) { - printf("Unexpected closing bracket %c at position %d\n", c, i); + printf("Unexpected closing bracket %c%d\n", c, i); return; } if (!match(stack[top], c)) {