Problem entropy
User StormyGood
Submission Time 2025-11-07 22:50:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

entropy.cpp: In function ‘int32_t main()’:
entropy.cpp:27:40: error: no matching function for call to ‘std::deque<int>::pop_front(int&)’
27 | if (botdif>topdif) c.pop_front(bottom);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from entropy.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<int>]’
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate expects 0 arguments, 1 provided
entropy.cpp:28:22: error: no matching function for call to ‘std::deque<int>::pop_back(int&)’
28 | else c.pop_back(top);
| ^
In file included from /usr/include/c++/9/deque:67,