Problem lunchbox
User siqideng09
Submission Time 2023-11-09 09:45:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:16: error: expected ‘;’ before ‘for’
16 | x = 0; max = 0
| ^
| ;
17 |
18 | for (long long i = 0, i < m;) {
| ~~~
lunchbox.cpp:18:30: error: expected primary-expression before ‘)’ token
18 | for (long long i = 0, i < m;) {
| ^
lunchbox.cpp:29:1: error: expected ‘}’ at end of input
29 | }
| ^
lunchbox.cpp:7:1: note: to match this ‘{’
7 | {
| ^