vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:8:22: error: expected initializer before ':' token
8 | vector<int> h:
| ^
vision.cpp:9:21: error: 'j' was not declared in this scope
9 | for(int j=i;j<H*W;j++){
| ^
vision.cpp:12:19: error: 'h' was not declared in this scope
12 | if(add_or[h]){
| ^
vision.cpp:14:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
14 | if(add_not[j]==0){
| ^
vision.cpp:34:25: error: no match for 'operator[]' (operand types are 'int(std::vector<int>)' and 'std::vector<int>')
34 | int f=add_or[h];
| ^
vision.cpp:34:17: warning: unused variable 'f' [-Wunused-variable]
34 | int f=add_or[h];
| ^
vision.cpp:36:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
36 | int f=add_not[b1];
| ^
vision.cpp:36:29: error: invalid conversion from 'int (*)(int)' to 'int' [-fpermissive]
vision.cpp:36:17: warning: unused variable 'f' [-Wunused-variable]
36 | int f=add_not[b1];
| ^