| Problem | lunchbox |
|---|---|
| User | yq |
| Submission Time | 2026-06-24 21:05:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:17: error: ‘std::vector<int>::iterator’ {aka ‘class __gnu_cxx::__normal_iterator<int*, std::vector<int> >’} has no member named ‘k’
10 | sort(k.begin().k.end());
| ^
lunchbox.cpp:12:3: error: expected ‘,’ or ‘;’ before ‘int’
12 | int count = 0;
| ^~~
lunchbox.cpp:14:25: error: expected initializer before ‘-’ token
14 | if(int curLunchBoxes - k[i] >= 0 ) {
| ^
lunchbox.cpp:14:24: error: expected ‘)’ before ‘-’ token
14 | if(int curLunchBoxes - k[i] >= 0 ) {
| ~ ^~
| )
lunchbox.cpp:16:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
16 | count = count + 1
| ~~~~~~^~~
lunchbox.cpp:22:10: error: no match for ‘operator<<’ (operand t