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

Compile Error

entropy.cpp: In function ‘int32_t main()’:
entropy.cpp:28:40: error: no matching function for call to ‘std::deque<long long int>::pop_front(long long int&)’
28 | 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 = long long int; _Alloc = std::allocator<long long 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:29:22: error: no matching function for call to ‘std::deque<long long int>::pop_back(long long int&)’
29 | else c.pop_back(top);
| ^
I