From 6adf6d72a9867c5cb7f1ab68e1836a275ca7a036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Fri, 26 Nov 2021 15:05:20 +0100 Subject: [PATCH] prvy --- a2/program.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/a2/program.c b/a2/program.c index 4b6372c..f3d0e1a 100644 --- a/a2/program.c +++ b/a2/program.c @@ -23,6 +23,11 @@ int main(){ hej = 1; //puts("halo"); } + if (r[0] == '}'){ + hej = 3; + printf("Unexpected closing bracket } in %d\n", i); + i = n - 2; + } if (r[i] == '{') { hodnota = 1; i++;