Problem | shamelessad3 |
---|---|
User | YSH2020 |
Submission Time | 2025-04-16 21:23:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shamelessad3.cpp: In function ‘int main()’:
shamelessad3.cpp:11:29: error: invalid use of member function ‘std::stack<_Tp, _Sequence>::const_reference std::stack<_Tp, _Sequence>::top() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::stack<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?)
11 | while (s.size() > 0 and s.top.first >= a[i]) {
| ~~^~~
| ()
shamelessad3.cpp:11:33: error: expected ‘)’ before ‘first’
11 | while (s.size() > 0 and s.top.first >= a[i]) {
| ~ ^~~~~
| )
shamelessad3.cpp:11:33: error: ‘first’ was not declared in this scope
11 | while (s.size() > 0 and s.top.first >= a[i]) {
|