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:57:5: note: in expansion of macro 'FOR'
57 | FOR(i, 1, n) cin >> a[i] >> b[i];
| ^~~
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:58:5: note: in expansion of macro 'FOR'
58 | 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:59:5: note: in expansion of macro 'FOR'
59 | FOR(j, i, 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:60:6: note: in expansion of macro 'FOR'
60 | FOR(z, i, j) {
| ^~~
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:64:6: note: in expansion of macro 'FOR'
64 | FOR(z, i + 1, j) b1[z] = min(b1[z], b1[z - 1]);
| ^~~
boat.cpp:31:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
31 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
boat.cpp:65:6: note: in expansion of macro 'FOS'
65 | FOS(z, j - 1, i) a1[z] = max(a1[z], a1[z + 1]);
| ^~~
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:67:6: note: in expansion of macro 'FOR'
67 | FOR(z, i, j)
| ^~~
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:72:6: note: in expansion of macro 'FOR'
72 | FOR(z, i, j) d1[i][j] = 1LL * d1[i][j] * (b1[z] - a1[z] + 1) % M;
| ^~~
boat.cpp:31:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
31 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
boat.cpp:75:5: note: in expansion of macro 'FOS'
75 | FOS(i, n, 1)
| ^~~
boat.cpp:31:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
31 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
boat.cpp:76:5: note: in expansion of macro 'FOS'
76 | FOS(j, n - i, 0) {
| ^~~
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:78:6: note: in expansion of macro 'FOR'
78 | FOR(z, 1, j) {
| ^~~
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:83:5: note: in expansion of macro 'FOR'
83 | FOR(i, 1, n) rs = 1LL * rs * (b[i] - a[i] + 2) % 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:84:5: note: in expansion of macro 'FOR'
84 | FOR(i, 1, n - 1)
| ^~~