Problem bracketex
User Ush
Submission Time 2023-11-08 15:39:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int32_t main()’:
bracketex.cpp:15:47: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
15 | } else if ( x == ')' && !s.empty() && s.top == '(') {
| ~~~~~ ^~ ~~~
| | |
| | char
| <unresolved overloaded function type>
bracketex.cpp:17:48: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
17 | } else if ( x == ']' && !s.empty() && s.top == '[') {
| ~~~~~ ^~ ~~~
| | |
| | char
| <unreso