vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
vision.cpp:33:3: note: in expansion of macro 'fp'
33 | fp(i,0,h){
| ^~
vision.cpp:14:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
14 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
vision.cpp:34:4: note: in expansion of macro 'fp'
34 | fp(j,0,w){
| ^~
vision.cpp:15:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
15 | #define fpp(a,i,c) for(int (a) = (i); (a) <= (c); (a)++)
| ^
vision.cpp:37:5: note: in expansion of macro 'fpp'
37 | fpp(k,-1,1){
| ^~~
vision.cpp:35:9: warning: unused variable 'x' [-Wunused-variable]
35 | int x = i*w+j;
| ^
vision.cpp:15:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
15 | #define fpp(a,i,c) for(int (a) = (i); (a) <= (c); (a)++)
| ^
vision.cpp:52:4: note: in expansion of macro 'fpp'
52 | fpp(k,-K, K){
| ^~~
vision.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
vision.cpp:62:3: note: in expansion of macro 'fp'
62 | fp(i,0,h){
| ^~
vision.cpp:14:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
14 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
vision.cpp:63:4: note: in expansion of macro 'fp'
63 | fp(j,0,w){
| ^~
vision.cpp:15:28: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
15 | #define fpp(a,i,c) for(int (a) = (i); (a) <= (c); (a)++)
| ^
vision.cpp:65:5: note: in expansion of macro 'fpp'
65 | fpp(k,-K, K){
| ^~~