boxes.cpp:6:20: error: 'k' has not been declared
6 | int delivery(int n,k,l,b[]){
| ^
boxes.cpp:6:22: error: 'l' has not been declared
6 | int delivery(int n,k,l,b[]){
| ^
boxes.cpp:6:24: error: 'b' has not been declared
6 | int delivery(int n,k,l,b[]){
| ^
boxes.cpp: In function 'long long int delivery(long long int, int, int, int*)':
boxes.cpp:7:13: error: 'k' was not declared in this scope
7 | cin>>n>>k>>l;
| ^
boxes.cpp:7:16: error: 'l' was not declared in this scope
7 | cin>>n>>k>>l;
| ^
boxes.cpp:9:9: error: 'a' was not declared in this scope
9 | a[i]=b[i-1];
| ^
boxes.cpp:9:14: error: 'b' was not declared in this scope
9 | a[i]=b[i-1];
| ^
boxes.cpp:15:20: error: 'a' was not declared in this scope
15 | dp2[i]=dp2[a[min(n+1,i+k)]]+(l-a[i])+min(a[i],(n-a[i]));
| ^