Problem lunchbox
User scse513
Submission Time 2026-11-03 13:25:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:17:5: error: expected unqualified-id before ‘for’
17 | for (int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:17:21: error: ‘i’ does not name a type
17 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:17:28: error: ‘i’ does not name a type
17 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:23:5: error: ‘cout’ does not name a type
23 | cout << schools;
| ^~~~
lunchbox.cpp:24:5: error: expected unqualified-id before ‘return’
24 | return 0;
| ^~~~~~
lunchbox.cpp:25:1: error: expected declaration before ‘}’ token
25 | }
| ^