Problem | bracketex |
---|---|
User | boaznumberd5555 |
Submission Time | 2023-07-07 14:54:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if(a == ")"){
| ^~~
bracketex.cpp:13:27: error: expected ‘;’ before ‘}’ token
13 | } else {stack.push(a)}
| ^
| ;
bracketex.cpp:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | if(a == "]"){
| ^~~
bracketex.cpp:18:27: error: expected ‘;’ before ‘}’ token
18 | } else {stack.push(a)}
| ^
| ;
bracketex.cpp:20:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if(a == "}"){
| ^~~
bracketex.cpp:23:27: error: expected ‘;’ before ‘}’ token
23 | } else {stack.push(a)}