Problem | bracketex |
---|---|
User | Johnnie |
Submission Time | 2023-06-19 08:46:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:15:28: error: no matching function for call to ‘std::stack<char>::push(<unresolved overloaded function type>)’
15 | pending.push(bracket.front);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from bracketex.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:233:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = char; _Sequence = std::deque<char, std::allocator<char> >; std::stack<_Tp, _Sequence>::value_type = char]’
233 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:233:30: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const value_type&’ {aka ‘const char&’}
233 | push(const value_type& __x)