boat.cpp: In function 'int main()':
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:66:5: note: in expansion of macro 'FOR'
66 | FOR(i, 1, n) {
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:71:5: note: in expansion of macro 'FOR'
71 | FOR(i, 1, n) {
| ^~~
boat.cpp:34:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
34 | #define EACH(i, x) for (auto &(i) : (x))
| ^
boat.cpp:81:9: note: in expansion of macro 'EACH'
81 | EACH(j, seg) {
| ^~~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:100:5: note: in expansion of macro 'FOR'
100 | FOR(i, 1, m) {
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:103:9: note: in expansion of macro 'FOR'
103 | FOR(j, 1, cnt) d2[i][j] = 1LL * d2[i][j - 1] * (seg[i].nd - seg[i].st + 2 - j) % M * fpow(j, M - 2, M) % M;
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:105:5: note: in expansion of macro 'FOR'
105 | FOR(i, 1, m)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:106:5: note: in expansion of macro 'FOR'
106 | FOR(j, 0, n)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:107:5: note: in expansion of macro 'FOR'
107 | FOR(z, 0, 1)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:109:5: note: in expansion of macro 'FOR'
109 | FOR(i, 1, n) {
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:110:9: note: in expansion of macro 'FOR'
110 | FOR(j, 1, m)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:111:9: note: in expansion of macro 'FOR'
111 | FOR(z, 0, min(n, seg[j].nd - seg[j].st + 1))
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'stat' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:112:9: note: in expansion of macro 'FOR'
112 | FOR(stat, 0, 1) {
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:119:9: note: in expansion of macro 'FOR'
119 | FOR(j, 1, m)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:120:9: note: in expansion of macro 'FOR'
120 | FOR(z, 0, n)
| ^~~
boat.cpp:30:31: warning: unnecessary parentheses in declaration of 'stat' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
boat.cpp:121:9: note: in expansion of macro 'FOR'
121 | FOR(stat, 0, 1)
| ^~~