Problem lunchbox
User ultbiaslia
Submission Time 2023-11-09 10:32:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:5:1: error: expected unqualified-id before ‘for’
5 | for (int k=0; k < m && sum <= N; k++) {
| ^~~
lunchbox.cpp:5:15: error: ‘k’ does not name a type
5 | for (int k=0; k < m && sum <= N; k++) {
| ^
lunchbox.cpp:5:34: error: ‘k’ does not name a type
5 | for (int k=0; k < m && sum <= N; k++) {
| ^
lunchbox.cpp:10:2: error: expected unqualified-id before ‘if’
10 | }if (sum <= N) {
| ^~
lunchbox.cpp:14:2: error: expected unqualified-id before ‘return’
14 | return 0;
| ^~~~~~
lunchbox.cpp:15:1: error: expected declaration before ‘}’ token
15 | }
| ^