Problem lunchbox
User hinnn
Submission Time 2026-04-27 10:34:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:11:5: error: expected initializer before ‘for’
11 | for (int i = 0; i < m; i++) cin >> A[i];
| ^~~
lunchbox.cpp:11:21: error: ‘i’ was not declared in this scope
11 | for (int i = 0; i < m; i++) cin >> A[i];
| ^
lunchbox.cpp:13:5: error: expected ‘,’ or ‘;’ before ‘for’
13 | for (int i = 0; i < m; i++) {
| ^~~