Problem lunchbox
User claireau
Submission Time 2023-11-09 10:28:32
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 ‘arr’
9 | cin arr[m];
| ^~~~
| ;
lunchbox.cpp:10:16: error: expected primary-expression before ‘)’ token
10 | for (arr[m]<=N;){
| ^
lunchbox.cpp:10:16: error: expected ‘;’ before ‘)’ token
10 | for (arr[m]<=N;){
| ^
| ;
lunchbox.cpp:13:1: error: ‘else’ without a previous ‘if’
13 | else if (m>N;){
| ^~~~
lunchbox.cpp:13:14: error: expected primary-expression before ‘)’ token
13 | else if (m>N;){
| ^
lunchbox.cpp:14:23: error: expected ‘;’ before ‘}’ token
14 | cout << N - arr[m]
| ^
| ;
15 |
16 | }
| ~