vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:22:15: error: 'class std::vector<int>' has no member named 'pb'
v.pb(i * W + j);
^~
vision.cpp:39:16: error: 'Column1' was not declared in this scope
if(Column1 == -1)
^~~~~~~
vision.cpp:42:17: error: 'Column2' was not declared in this scope
Column2 = i;
^~~~~~~
vision.cpp:45:8: error: 'Column2' was not declared in this scope
if(Column2 == -1)
^~~~~~~
vision.cpp:52:26: error: 'Column1' was not declared in this scope
add_and({Line1 * W + Column1, Line2 * W + Column2});
^~~~~~~
vision.cpp:52:47: error: 'Column2' was not declared in this scope
add_and({Line1 * W + Column1, Line2 * W + Column2});
^~~~~~~
vision.cpp:52:55: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_and({Line1 * W + Column1, Line2 * W + Column2});
^