boxes.cpp: In function 'll delivery(int, int, int, int*)':
boxes.cpp:41:38: warning: declaration of 'p' shadows a global declaration [-Wshadow]
41 | ll 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:17: warning: declaration of 'N' shadows a global declaration [-Wshadow]
41 | ll 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:50:5: note: in expansion of macro 'FOS'
50 | 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:55:5: note: in expansion of macro 'FOS'
55 | 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:62:5: note: in expansion of macro 'FOR'
62 | FOR(i, 1, m1) {
| ^~~