| Problem | lunchbox |
|---|---|
| User | shenshiqi |
| Submission Time | 2025-02-11 20:52:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:13: error: request for member ‘begin’ in ‘lunch’, which is of non-class type ‘long long int [m]’
8 | sort(lunch.begin(), lunch.end())
| ^~~~~
lunchbox.cpp:8:28: error: request for member ‘end’ in ‘lunch’, which is of non-class type ‘long long int [m]’
8 | sort(lunch.begin(), lunch.end())
| ^~~
lunchbox.cpp:10:9: error: ‘sum’ was not declared in this scope
10 | while (sum <= n){
| ^~~
lunchbox.cpp:11:16: error: ‘counter’ was not declared in this scope
11 | sum += lunch[counter];
| ^~~~~~~
lunchbox.cpp:14:2: error: ‘counter’ was not declared in this scope
14 | counter--;
| ^~~~~~~