| Problem | lunchbox |
|---|---|
| User | yq |
| Submission Time | 2026-06-24 21:03:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:14: error: expected ‘;’ before ‘}’ token
8 | cin >> k[i]
| ^
| ;
9 | }
| ~
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:14: error: overloaded function with no contextual type information