Problem | bracketex |
---|---|
User | hwy |
Submission Time | 2023-06-05 17:40:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:17:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | if (brackets[i] == "(")
| ^~~
bracketex.cpp:19:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | else if (brackets[i] == ")")
| ^~~
bracketex.cpp:21:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | else if (brackets[i] == "[")
| ^~~
bracketex.cpp:23:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | else if (brackets[i] == "]")
| ^~~
bracketex.cpp:25:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | else if (brackets[i] == "{")
| ^~~
bracketex.cpp:27:27: error: ISO C++ forbids co