| Problem | lunchbox |
|---|---|
| User | sherlockholmes025 |
| Submission Time | 2026-01-19 22:18:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:14: error: expected initializer before ‘m’
6 | long long n m sum res;
| ^
lunchbox.cpp:8:9: error: ‘n’ was not declared in this scope
8 | cin >> n;
| ^
lunchbox.cpp:9:9: error: ‘m’ was not declared in this scope
9 | cin >> m;
| ^
lunchbox.cpp:10:6: error: ‘i’ was not declared in this scope
10 | for(i=0;i++;i<m) {
| ^
lunchbox.cpp:14:3: error: ‘sum’ was not declared in this scope
14 | sum += input;
| ^~~
lunchbox.cpp:15:3: error: ‘res’ was not declared in this scope
15 | res++;
| ^~~
lunchbox.cpp:18:7: error: ‘i’ was not declared in this scope
18 | for (i=0;i++;i<m) {
| ^
lunchbox.cpp:19:8: error: ‘r’ was not declared in this scope
19 | for (r=0;r++;r<(m - 1 - i)) {
| ^
lunchbox.cpp:28:8: error: ‘sum’ wa