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:80:4: note: in expansion of macro 'rep'
80 | 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:88:2: note: in expansion of macro 'rep'
88 | 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:95:5: note: in expansion of macro 'rep'
95 | 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:105:2: note: in expansion of macro 'rep'
105 | 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:114:2: note: in expansion of macro 'rep'
114 | 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:118:2: note: in expansion of macro 'rep'
118 | 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:146:3: note: in expansion of macro 'rep'
146 | rep(i,n){
| ^~~
split.cpp:148:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
148 | 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:222:3: note: in expansion of macro 'rep'
222 | 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:226:3: note: in expansion of macro 'rep'
226 | rep(i,n) if(used[i]==0){
| ^~~