boxes.cpp:19:14: error: array bound is not an integer constant before ']' token
19 | ll pre[maxn+2], suf[maxn+2], pos1[maxn+2];
| ^
boxes.cpp:19:27: error: array bound is not an integer constant before ']' token
19 | ll pre[maxn+2], suf[maxn+2], pos1[maxn+2];
| ^
boxes.cpp:19:41: error: array bound is not an integer constant before ']' token
19 | ll pre[maxn+2], suf[maxn+2], pos1[maxn+2];
| ^
boxes.cpp: In function 'int delivery(int, int, int, int*)':
boxes.cpp:23:29: error: 'pos1' was not declared in this scope; did you mean 'pos'?
23 | for(int i = 0; i < n; i++) pos1[i] = pos[i];
| ^~~~
| pos
boxes.cpp:25:4: error: 'pre' was not declared in this scope
25 | pre[i] = (i>=k?pre[i-k]+min(l1,2*pos1[i]):min(l1,2*pos1[i]));
| ^~~
boxes.cpp:25:37: error: 'pos1' was not declared in this scope; did you mean 'pos'?
25 | pre[i] = (i>=k?pre[i-k]+min(l1,2*pos1[i]):min(l1,2*pos1[i]));
| ^~~~
| pos
boxes.cpp:28:4: error: 'suf' was not declared in this scope
28 | suf[i] = (i<=n-1-k?suf[i+k]+min(l1,2*(l1-pos1[i])):min(l1,2*(l1-pos1[i])));
| ^~~
boxes.cpp:28:45: error: 'pos1' was not declared in this scope; did you mean 'pos'?
28 | suf[i] = (i<=n-1-k?suf[i+k]+min(l1,2*(l1-pos1[i])):min(l1,2*(l1-pos1[i])));
| ^~~~
| pos
boxes.cpp:30:15: error: 'pre' was not declared in this scope
30 | ll ans = min(pre[0],suf[0]);
| ^~~
boxes.cpp:30:22: error: 'suf' was not declared in this scope
30 | ll ans = min(pre[0],suf[0]);
| ^~~
boxes.cpp:34:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
34 | return ans;
| ^~~
boxes.cpp: In function 'void usaco(std::string)':
boxes.cpp:13:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
13 | freopen((s+".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
boxes.cpp:14:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
14 | freopen((s+".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~