fountain.cpp: In function 'void calcLifts()':
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:65:5: note: in expansion of macro '_foreq'
65 | _foreq(i, 1, n+1) upId[i][0] = p[i];
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:66:5: note: in expansion of macro '_foreq'
66 | _foreq(j, 1, mlog-1) _foreq(i, 1, n+1)
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:66:26: note: in expansion of macro '_foreq'
66 | _foreq(j, 1, mlog-1) _foreq(i, 1, n+1)
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:68:5: note: in expansion of macro '_foreq'
68 | _foreq(i, 1, n+1) upCost[i][0] = C[i];
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:69:5: note: in expansion of macro '_foreq'
69 | _foreq(j, 1, mlog-1) _foreq(i, 1, n+1)
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:69:26: note: in expansion of macro '_foreq'
69 | _foreq(j, 1, mlog-1) _foreq(i, 1, n+1)
| ^~~~~~
fountain.cpp: In function 'long long int jumpCost(long long int, long long int)':
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:74:5: note: in expansion of macro '_foreq'
74 | _foreq(i, 0, 31)
| ^~~~~~
fountain.cpp: In function 'long long int jumpId(long long int, long long int)':
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:82:5: note: in expansion of macro '_foreq'
82 | _foreq(i, 0, 31)
| ^~~~~~
fountain.cpp: In function 'int main()':
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:107:5: note: in expansion of macro '_foreq'
107 | _foreq(i, 1, n) cin>>D[i]>>C[i]; D[n+1] = inf; C[n+1] = 0;
| ^~~~~~
fountain.cpp:18:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^~~
fountain.cpp:107:5: note: in expansion of macro '_foreq'
107 | _foreq(i, 1, n) cin>>D[i]>>C[i]; D[n+1] = inf; C[n+1] = 0;
| ^~~~~~
fountain.cpp:107:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
107 | _foreq(i, 1, n) cin>>D[i]>>C[i]; D[n+1] = inf; C[n+1] = 0;
| ^
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:108:5: note: in expansion of macro '_foreq'
108 | _foreq(i, 1, n+1) upd(i, D[i]);
| ^~~~~~
fountain.cpp:18:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define _foreq(a, b, c) for(int (a) = (b); (a) <= (c); (a)++)
| ^
fountain.cpp:110:5: note: in expansion of macro '_foreq'
110 | _foreq(i, 1, n) p[i] = findParent(i);
| ^~~~~~
fountain.cpp:17:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
17 | #define _for(a, b, c) for(int (a) = (b); (a) < (c); (a)++)
| ^
fountain.cpp:112:5: note: in expansion of macro '_for'
112 | _for(i, 0, Q) cin>>R[i]>>V[i];
| ^~~~
fountain.cpp:17:31: warning: unnecessary parentheses in declaration of 'g' [-Wparentheses]
17 | #define _for(a, b, c) for(int (a) = (b); (a) < (c); (a)++)
| ^
fountain.cpp:113:5: note: in expansion of macro '_for'
113 | _for(g, 0, Q) cout<<query(R[g], V[g])<<'\n';
| ^~~~