Problem bracketex
User justin271828
Submission Time 2023-06-09 11:20:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:10:11: error: ‘True’ was not declared in this scope
10 | bool v = True; //validity
| ^~~~
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: IS