vision.cpp: In function 'void num(int, int)':
vision.cpp:5:14: error: 'W' was not declared in this scope
5 | return i*W+j;
| ^
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:11:5: error: 'row' was not declared in this scope; did you mean 'pow'?
11 | row=H;
| ^~~
| pow
vision.cpp:12:5: error: 'column' was not declared in this scope
12 | column=W;
| ^~~~~~
vision.cpp:20:56: error: invalid use of void expression
20 | if(dis(i,j,k,l)==K) s.push_back(num(k,l));
| ~~~^~~~~
vision.cpp:13:9: warning: unused variable 'Total' [-Wunused-variable]
13 | int Total=max(H,W);
| ^~~~~