a1
This commit is contained in:
parent
93006e6392
commit
d723f30ad8
@ -36,10 +36,9 @@ int main() {
|
||||
}
|
||||
}
|
||||
if (x > 0) {
|
||||
printf("Unmatched opening bracket %c at position %d\n", stack[x-1], position[x-1]);
|
||||
printf("Unexpected closing bracket %c in %d\n", stack[x-1], position[x-1]);
|
||||
} else {
|
||||
printf("All brackets OK\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user