| Problem | lunchbox |
|---|---|
| User | jwsk0 |
| Submission Time | 2025-10-25 12:49:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: expected initializer before ‘for’
8 | for(int i=0;i<m;i++){
| ^~~
lunchbox.cpp:8:14: error: ‘i’ was not declared in this scope
8 | for(int i=0;i<m;i++){
| ^
lunchbox.cpp:14:8: error: ‘k’ was not declared in this scope
14 | if (k[i]>k[i+1]){
| ^
lunchbox.cpp:25:11: error: ‘k’ was not declared in this scope
25 | sum += k[i];
| ^