This commit is contained in:
Damián Korpesio 2021-11-28 18:01:56 +01:00
parent 29351306ac
commit fa52b8999f

View File

@ -126,10 +126,10 @@ int main(){
hej = 3; hej = 3;
//puts("ahoj"); //puts("ahoj");
printf("Read: %s", r); printf("Read: %s", r);
if (r[i] == '}'){printf("Unexpected closing bracket } in %d\n", i+1);} if (r[i] == '}'){printf("Unexpected closing bracket } in %d\n", i);}
else if (r[i] == ')'){printf("Unexpected closing bracket ) in %d\n", i+1);} else if (r[i] == ')'){printf("Unexpected closing bracket ) in %d\n", i);}
else if (r[i] == ']'){printf("Unexpected closing bracket ] in %d\n", i+1);} else if (r[i] == ']'){printf("Unexpected closing bracket ] in %d\n", i);}
else if (r[i] == '>'){printf("Unexpected closing bracket > in %d\n", i+1);} else if (r[i] == '>'){printf("Unexpected closing bracket > in %d\n", i);}
i = n - 2; i = n - 2;
} }
i++; i++;