Problem bracketex
User JhoCyber
Submission Time 2025-01-26 16:05:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int32_t main()’:
bracketex.cpp:20:34: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator!=’
20 | if(c=='('&&smthin.top!=')'||c=='['&&smthin.top!=']'||c=='{'&&smthin.top!='}'){
| ~~~~~~~~~~^~~~~
| | |
| | char
| <unresolved overloaded function type>
bracketex.cpp:20:59: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator!=’
20 | if(c=='('&&smthin.top!=')'||c=='['&&smthin.top!=']'||c=='{'&&smthin.top!='}'){
| ~~~~~~~~~~^~~~~
| | |
| | char
|