Problem lunchbox
User Bensamuel2008
Submission Time 2025-06-18 16:23:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:17: error: expected ‘;’ before ‘<=’ token
7 | for (int i=1, i<=m, i++){
| ^~
| ;
lunchbox.cpp:7:17: error: expected primary-expression before ‘<=’ token
7 | for (int i=1, i<=m, i++){
| ^~
lunchbox.cpp:7:25: error: expected ‘;’ before ‘)’ token
7 | for (int i=1, i<=m, i++){
| ^
| ;
lunchbox.cpp:9:17: error: expected ‘;’ before ‘}’ token
9 | school.push(N)
| ^
| ;
10 | }
| ~
lunchbox.cpp:15:3: error: expected primary-expression before ‘}’ token
15 | }
| ^
lunchbox.cpp:15:3: error: expected ‘}’ at end of input
lunchbox.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^