split.cpp: In constructor 'unionfind::unionfind(int)':
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:25:3: note: in expansion of macro 'rep'
25 | rep(i,n) pa[i]=i;
| ^~~
split.cpp: In function 'void gen()':
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:48:7: note: in expansion of macro 'rep'
48 | vi v;rep(i,n) v.pb(i);
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:51:2: note: in expansion of macro 'rep'
51 | rep(i,n-1) p.push_back(v[i]),q.pb(v[i+1]);
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:52:2: note: in expansion of macro 'rng'
52 | rng(i,n-1,m){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:59:2: note: in expansion of macro 'rep'
59 | rep(i,m){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:63:2: note: in expansion of macro 'rep'
63 | rep(i,n) if(ans[i]==2) k=i;
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:67:3: note: in expansion of macro 'rep'
67 | rep(i,m){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:75:2: note: in expansion of macro 'rep'
75 | rep(i,n) if(ans[i]==2){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:78:2: note: in expansion of macro 'rep'
78 | rep(i,n){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:85:5: note: in expansion of macro 'rep'
85 | rep(i,m){
| ^~~
split.cpp: In function 'void check()':
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:94:2: note: in expansion of macro 'rep'
94 | rep(i,1000000){
| ^~~
split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:103:2: note: in expansion of macro 'rep'
103 | rep(i,m){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:107:2: note: in expansion of macro 'rep'
107 | rep(i,m) {
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:135:3: note: in expansion of macro 'rep'
135 | rep(i,n){
| ^~~
split.cpp:138:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
138 | if(sz[g]>=min({a,b,c})&&n-sz[g]>=nxt||
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:212:3: note: in expansion of macro 'rep'
212 | rep(i,n) if(used[i]==0){
| ^~~
split.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
split.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
split.cpp:216:3: note: in expansion of macro 'rep'
216 | rep(i,n) if(used[i]==0){
| ^~~