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(i),q.pb(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:74:2: note: in expansion of macro 'rep'
74 | 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:4: note: in expansion of macro 'rep'
78 | 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:88:2: note: in expansion of macro 'rep'
88 | rep(i,1000){
| ^~~
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:97:2: note: in expansion of macro 'rep'
97 | 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:101:2: note: in expansion of macro 'rep'
101 | 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:115:3: note: in expansion of macro 'rep'
115 | 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:187:3: note: in expansion of macro 'rep'
187 | 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:191:3: note: in expansion of macro 'rep'
191 | rep(i,n) if(used[i]==0){
| ^~~