Problem | bracketex |
---|---|
User | justin271828 |
Submission Time | 2023-06-09 11:22:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (A[i] == "(" or A[i] == "[" or A[i] == "{") {
| ^~~
bracketex.cpp:12:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (A[i] == "(" or A[i] == "[" or A[i] == "{") {
| ^~~
bracketex.cpp:12:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (A[i] == "(" or A[i] == "[" or A[i] == "{") {
| ^~~
bracketex.cpp:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | else if (A[i] == ")") {
| ^~~
bracketex.cpp:16:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if (s.top() == "(") {
|