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

Compile Error

entropy.cpp: In function ‘int32_t main()’:
entropy.cpp:26:23: error: expected ‘;’ before ‘long’
26 | c.push_front(bottom)
| ^
| ;
entropy.cpp:28:14: error: ‘topdif’ was not declared in this scope; did you mean ‘botdif’?
28 | if (botdif>topdif) c.pop_front(bottom);
| ^~~~~~
| botdif
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&g