xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:44:5: note: in expansion of macro 'FOR'
44 | FOR(i, 2, N) d2[i] = query(i - 1, i);
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:45:5: note: in expansion of macro 'FOR'
45 | FOR(i, 3, N) d3[i] = query(i - 2, i);
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:46:5: note: in expansion of macro 'FOR'
46 | FOR(i, 3, N) {
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:52:5: note: in expansion of macro 'FOR'
52 | FOR(i, 2, N) {
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:57:5: note: in expansion of macro 'FOR'
57 | FOR(i, 1, N) {
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:66:9: note: in expansion of macro 'FOR'
66 | FOR(i, 2, N) a[i] *= -1;
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:73:5: note: in expansion of macro 'FOR'
73 | FOR(i, 1, N) a[i] += diff;
| ^~~
xylophone.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
xylophone.cpp:74:5: note: in expansion of macro 'FOR'
74 | FOR(i, 1, N) answer(i, a[i]);
| ^~~
xylophone.cpp: At global scope:
xylophone.cpp:39:13: warning: 'A' defined but not used [-Wunused-variable]
39 | static int A[5000];
| ^