Problem bracketex
User caleb
Submission Time 2024-05-20 14:17:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:14:38: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
14 | else if (SEQ[i] == ')') {if (s.top == '('){s.pop();} else {cout << "Invalid"; return 0;}}
| ~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
bracketex.cpp:15:38: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
15 | else if (SEQ[i] == ']') {if (s.top == '['){s.pop();} else {cout << "Invalid"; return 0;}}
| ~~~~~ ^~ ~~~
| | |
| | char
| <unr