From 3145d42f07320613e531004728c1986ef1822a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Fri, 26 Nov 2021 15:30:59 +0100 Subject: [PATCH] prvy --- a2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a2/program.c b/a2/program.c index ab32fc3..f76ee04 100644 --- a/a2/program.c +++ b/a2/program.c @@ -23,7 +23,7 @@ int main(){ hej = 1; //puts("halo"); } - if (r[0] == '}'){ + if (r[0] == '}' || r[n - 2] == '}'){ hej = 3; printf("Read: %s", r); printf("Unexpected closing bracket } in %d\n", i);