This commit is contained in:
Damián Korpesio 2021-11-26 14:58:55 +01:00
parent a078117c2a
commit 985c5028e1

View File

@ -18,6 +18,11 @@ int main(){
//printf("%ld", n);
while(r[i] != '\n'){
//puts("1");
if (r[0] != '{' || r[0] != '(' || r[0] != '[' || r[0] != '<') {
i = n - 2;
hej = 1;
//puts("halo");
}
if (r[i] == '{') {
hodnota = 1;
i++;
@ -116,10 +121,11 @@ int main(){
}
}
if (hej == 1){
printf("Read: %s\n All brackets OK", r);
printf("Read: %s", r);
puts("All brackets OK");
}
if (hej == 0){
printf("Read: %s\n Crossed bracket OK", r);
printf("Read: %s\nCrossed bracket OK\n", r);
//printf("%s\n", r);
}