Problem bracketex
User R1
Submission Time 2023-06-02 18:24:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | if(str[i] == "("){
| ^~~
bracketex.cpp:17:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | }else if(str[i] == "["){
| ^~~
bracketex.cpp:19:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | }else if(str[i] == "{"){
| ^~~
bracketex.cpp:21:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | }else if(str[i] == ")"){
| ^~~
bracketex.cpp:27:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
27 | }else if(str[i] == "]"){
| ^~~
bracketex.cpp:33:24: error: ISO C++ forbids comparison between pointer an