| Problem | lunchbox |
|---|---|
| User | Kaijun |
| Submission Time | 2026-04-12 14:26:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:10: error: request for member ‘push_back’ in ‘Mylist’, which is of non-class type ‘std::__cxx11::list<int> [n]’
12 | Mylist.push_back(k);
| ^~~~~~~~~
lunchbox.cpp:14:9: error: request for member ‘sort’ in ‘Mylist’, which is of non-class type ‘std::__cxx11::list<int> [n]’
14 | Mylist.sort();
| ^~~~
lunchbox.cpp:17:4: error: no match for ‘operator-=’ (operand types are ‘long long int’ and ‘std::__cxx11::list<int>’)
17 | n-=Mylist[sc];
| ~^~~~~~~~~~~~