Problem | bracketex |
---|---|
User | emyz |
Submission Time | 2023-12-06 02:51:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:16:30: error: cannot convert ‘std::stack<char>::empty’ from type ‘bool (std::stack<char>::)() const’ to type ‘bool’
16 | else if (idk[i]==')' && !s.empty && s.top=='(')
| ^~~~~
bracketex.cpp:16:30: error: in argument to unary !
bracketex.cpp:16:44: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
16 | else if (idk[i]==')' && !s.empty && s.top=='(')
| ~~~~~^~~~~
| | |
| | char
| <unresolved overloaded function type>
bracketex.cpp:20:30: error: cannot convert ‘std::stack<char>::empty’ from type ‘bool (std::stack<char>::)() const’ to type ‘bool’
20 | else if (idk[i]=='[' &&