vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:23:3: note: in expansion of macro 'rep'
23 | rep(i,h)rep(j,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:23:11: note: in expansion of macro 'rep'
23 | rep(i,h)rep(j,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:26:4: note: in expansion of macro 'rep'
26 | rep(x,h)rep(y,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'y' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:26:12: note: in expansion of macro 'rep'
26 | rep(x,h)rep(y,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:38:3: note: in expansion of macro 'rep'
38 | rep(i,h){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:40:4: note: in expansion of macro 'rep'
40 | rep(j,w) v.pb(i*w+j);
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:43:3: note: in expansion of macro 'rep'
43 | rep(j,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:45:4: note: in expansion of macro 'rep'
45 | rep(i,h) v.pb(i*w+j);
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:51:3: note: in expansion of macro 'rep'
51 | rep(i,h){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:61:3: note: in expansion of macro 'rng'
61 | rng(i,1,h-1){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:67:3: note: in expansion of macro 'rep'
67 | rep(i,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:77:3: note: in expansion of macro 'rng'
77 | rng(i,1,w-1){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:90:3: note: in expansion of macro 'rng'
90 | rng(i,1,h){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:97:3: note: in expansion of macro 'rep'
97 | rep(i,w-1){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:104:3: note: in expansion of macro 'rep'
104 | rep(i,h-1){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:111:3: note: in expansion of macro 'rng'
111 | rng(i,1,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:123:3: note: in expansion of macro 'rep'
123 | rep(i,h)rep(j,w){
| ^~~
vision.cpp:10:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
vision.cpp:11:18: note: in expansion of macro 'rng'
11 | #define rep(i,n) rng((i),(0),(n))
| ^~~
vision.cpp:123:11: note: in expansion of macro 'rep'
123 | rep(i,h)rep(j,w){
| ^~~