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++;