Problem lunchbox
User claireau
Submission Time 2023-11-09 11:24:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:15:5: error: expected ‘(’ before ‘arr’
15 | for arr[m]>N;
| ^~~
| (
lunchbox.cpp:15:5: error: ‘arr’ was not declared in this scope
15 | for arr[m]>N;
| ^~~
lunchbox.cpp:16:2: error: expected primary-expression before ‘if’
16 | if k => m-N;{
| ^~
lunchbox.cpp:15:14: error: expected ‘;’ before ‘if’
15 | for arr[m]>N;
| ^
| ;
16 | if k => m-N;{
| ~~
lunchbox.cpp:16:2: error: expected primary-expression before ‘if’
16 | if k => m-N;{
| ^~
lunchbox.cpp:15:14: error: expected ‘)’ before ‘if’
15 | for arr[m]>N;
| ~~~ ^
| )
16 | if k => m-N;{
| ~~
lunchbox.cpp:16:5: error: expected ‘(’ before ‘k’
16 | if k => m-N;{
| ^
| (
lun