Problem bracketex
User Johnnie
Submission Time 2023-06-19 08:48:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:21:47: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
21 | if ((pending.top() == '[' && bracket.front == ']') || (pending.top() == '(' && bracket.front == ')') || (pending.top() == '{' && bracket.front == '}'))
| ~~~~~~~~~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
bracketex.cpp:21:97: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
21 | if ((pending.top() == '[' && bracket.front == ']') || (pending.top() == '(' && bracket.front == ')') || (pending.top() == '{' && bracket.front == '}'))
|