Problem catlunch
User nzx
Submission Time 2026-01-21 16:30:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:26:33: error: no match for ‘operator+=’ (operand types are ‘long long int’ and ‘const std::_Deque_iterator<long long int, long long int&, long long int*>’)
26 | if (top.size()>0) curans+=max(top.begin(), top.end());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~