From b96ad19785931861ac75a2f52cb6f52cb0236520 Mon Sep 17 00:00:00 2001 From: Bohdan Kapliuk Date: Sun, 27 Oct 2024 22:45:45 +0200 Subject: [PATCH] a1 --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index d4cda9d..b94d975 100644 --- a/a1/program.c +++ b/a1/program.c @@ -20,7 +20,7 @@ int main() { x++; break; } else if (vstup[j] == brackets1[i]) { - char expected; + char expected = '\0'; if (stack[x-1] == '{') expected = '}'; else if (stack[x-1] == '[') expected = ']'; else if (stack[x-1] == '(') expected = ')';