Problem lunchbox
User dieunq1309
Submission Time 2023-02-17 10:17:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:20: error: expected ‘;’ before ‘)’ token
12 | for(i=0, i<=m, i++)
| ^
| ;
lunchbox.cpp:18:19: error: expected ‘)’ before ‘;’ token
18 | sort(arr, arr+sz);
| ^
| )
lunchbox.cpp:12:5: note: to match this ‘(’
12 | for(i=0, i<=m, i++)
| ^
lunchbox.cpp:19:24: error: expected ‘;’ before ‘)’ token
19 | for(i2 = 0, i2<=m, i++)
| ^
| ;
lunchbox.cpp:30:2: error: expected primary-expression before ‘return’
30 | return 0
| ^~~~~~
lunchbox.cpp:29:3: error: expected ‘;’ before ‘return’
29 | }
| ^
| ;
30 | return 0
| ~~~~~~
lunchbox.cpp:30:2: error: expected primary-expression before ‘return’
30 | return 0
| ^~~~~~
lunchbox