Problem lunchbox
User averagejav
Submission Time 2025-06-18 15:22:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:11: error: no match for ‘operator-=’ (operand types are ‘int’ and ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’})
14 | n -= list.end();
| ~~^~~~~~~~~~~~~