vision.cpp: In function 'int dis(int, int, int)':
vision.cpp:5:12: error: 'abs' was not declared in this scope
5 | return abs(x1-x2)+abs(y1-y2);
| ^~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:9:5: error: 'vector' was not declared in this scope
9 | vector<int>check;
| ^~~~~~
vision.cpp:9:12: error: expected primary-expression before 'int'
9 | vector<int>check;
| ^~~
vision.cpp:13:24: error: expected primary-expression before 'int'
13 | vector<int>x={i,j};
| ^~~
vision.cpp:14:25: error: 'x' was not declared in this scope
14 | add_and(x);
| ^
vision.cpp:14:17: error: 'add_and' was not declared in this scope
14 | add_and(x);
| ^~~~~~~
vision.cpp:15:17: error: 'check' was not declared in this scope
15 | check.push_back(h*w+cnt);
| ^~~~~
vision.cpp:20:12: error: 'check' was not declared in this scope
20 | add_or(check);
| ^~~~~
vision.cpp:20:5: error: 'add_or' was not declared in this scope
20 | add_or(check);
| ^~~~~~