Problem boxes
User PlayVoltz
Submission Time 2024-03-01 08:34:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxes.cpp: In function ‘long long int delivery(int, int, int, int*)’:
boxes.cpp:16:26: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | for (int i=0; i<=n; ++i)ans=min(ans, l[i]+r[i+1]);
| ^~~
| abs
boxes.cpp:17:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
17 | return ans;
| ^~~
| abs