Problem lunchbox
User jerriel
Submission Time 2025-04-23 16:09:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
6 | ll n; ans;
| ^~~
| abs
lunchbox.cpp:10:20: error: ‘m’ was not declared in this scope
10 | for(int i=0; i<m; i++){
| ^
lunchbox.cpp:14:20: error: ‘m’ was not declared in this scope
14 | for(int i=0; i<m; i++){
| ^
lunchbox.cpp:15:14: error: ‘a’ was not declared in this scope
15 | ans+=a[1];
| ^