Problem | bracketex |
---|---|
User | potatoed78 |
Submission Time | 2025-06-17 18:07:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:22:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (sqb && x != "]") {
| ^~~
bracketex.cpp:28:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
28 | if (crb && x != "}") {
| ^~~
bracketex.cpp:43:21: error: ‘scount’ was not declared in this scope; did you mean ‘ncount’?
43 | if (ncount == 0 && scount == 0 && bcount == 0) {
| ^~~~~~
| ncount
bracketex.cpp:43:36: error: ‘bcount’ was not declared in this scope; did you mean ‘ncount’?
43 | if (ncount == 0 && scount == 0 && bcount == 0) {
| ^~~~~~
| ncount