Problem lunchbox
User claireau
Submission Time 2023-11-09 10:22:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:4: error: expected ‘;’ before ‘array’
9 | cin array[m];
| ^~~~~~
| ;
lunchbox.cpp:10:10: error: expected ‘;’ before ‘)’ token
10 | for (m<=N) {cout << m;}
| ^
| ;
lunchbox.cpp:12:5: error: expected primary-expression before ‘return’
12 | return 0;
| ^~~~~~
lunchbox.cpp:10:24: error: expected ‘;’ before ‘return’
10 | for (m<=N) {cout << m;}
| ^
| ;
11 |
12 | return 0;
| ~~~~~~
lunchbox.cpp:12:5: error: expected primary-expression before ‘return’
12 | return 0;
| ^~~~~~
lunchbox.cpp:10:24: error: expected ‘)’ before ‘return’
10 | for (m<=N) {cout << m;}
| ~ ^
| )
11 |
12 | retu