| Problem | lunchbox |
|---|---|
| User | peepeepoop |
| Submission Time | 2026-01-05 18:47:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:7: error: ‘i’ was not declared in this scope
11 | for (i = 0; i < m; i++){
| ^
lunchbox.cpp:15:17: error: expected ‘;’ before ‘int’
15 | sort (k, k + m)
| ^
| ;
16 |
17 | int counter = 0;
| ~~~
lunchbox.cpp:20:7: error: ‘i’ was not declared in this scope
20 | for (i = 0; i < m; i++){
| ^
lunchbox.cpp:22:4: error: ‘counter’ was not declared in this scope
22 | counter++;
| ^~~~~~~
lunchbox.cpp:28:10: error: ‘counter’ was not declared in this scope
28 | cout << counter;
| ^~~~~~~
lunchbox.cpp:28:17: error: expected ‘}’ at end of input
28 | cout << counter;
| ^
lunchbox.cpp:5:11: note: to match this ‘{’
5 | int main(){
| ^