Problem lunchbox
User xiachengruisg
Submission Time 2026-10-25 18:20:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:18:7: error: ‘n’ was not declared in this scope
18 | if (n - input[current] < 0){
| ^
lunchbox.cpp:21:3: error: ‘n’ was not declared in this scope
21 | n = n - input[current];
| ^