Problem eatingparallelograms
User hitarthdangra
Submission Time 2025-06-20 14:38:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:28:21: error: no matching function for call to ‘std::deque<int>::pop_back(int&)’
28 | dq_max.pop_back(i);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from eatingparallelograms.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: candidate expects 0 arguments, 1 provided
eatingparallelograms.cpp:32:21: error: expected ‘;’ before ‘}’ token
32 | dq_min.pop_back()
| ^
| ;
33 | }
| ~