Problem lunchbox
User Kaijun
Submission Time 2026-04-10 17:37:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:15:8: error: request for member ‘push_back’ in ‘list’, which is of non-class type ‘std::__cxx11::list<int> [0]’
15 | list.push_back(k);
| ^~~~~~~~~
lunchbox.cpp:21:4: error: no match for ‘operator-=’ (operand types are ‘long long int’ and ‘std::__cxx11::list<int>’)
21 | n-=list[sc];
| ~^~~~~~~~~~