boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:41:45: warning: declaration of 'p' shadows a global declaration [-Wshadow]
41 | long long delivery(int N, int K, int L, int p[]) {
| ~~~~^~~
boxes.cpp:39:22: note: shadowed declaration is here
39 | int n, m1, m2, k, l, p[N], a[N], b[N];
| ^
boxes.cpp:41:24: warning: declaration of 'N' shadows a global declaration [-Wshadow]
41 | long long delivery(int N, int K, int L, int p[]) {
| ~~~~^
boxes.cpp:38:11: note: shadowed declaration is here
38 | const int N = 1e7 + 5;
| ^
boxes.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boxes.cpp:45:5: note: in expansion of macro 'FOR'
45 | FOR(i, 0, n - 1) ::p[i] = p[i];
| ^~~
boxes.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boxes.cpp:46:5: note: in expansion of macro 'FOR'
46 | FOR(i, 0, n - 1)
| ^~~
boxes.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
boxes.cpp:54:5: note: in expansion of macro 'FOS'
54 | FOS(i, m1, 1) {
| ^~~
boxes.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
boxes.cpp:59:5: note: in expansion of macro 'FOS'
59 | FOS(i, m2, 1) {
| ^~~
boxes.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boxes.cpp:66:5: note: in expansion of macro 'FOR'
66 | FOR(i, 1, m1) {
| ^~~