vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:25:17: error: 'i' was not declared in this scope
int x = i, y = j - K;
^
vision.cpp:28:23: error: 'y' was not declared in this scope
if (ok(x, y))
^
vision.cpp:31:18: error: 'y' was not declared in this scope
x--; y++;
^
vision.cpp:35:23: error: 'y' was not declared in this scope
if (ok(x, y))
^
vision.cpp:38:18: error: 'y' was not declared in this scope
x++; y++;
^
vision.cpp:42:23: error: 'y' was not declared in this scope
if (ok(x, y))
^
vision.cpp:45:18: error: 'y' was not declared in this scope
x++; y--;
^
vision.cpp:49:23: error: 'y' was not declared in this scope
if (ok(x, y))
^
vision.cpp:52:18: error: 'y' was not declared in this scope
x--; y--;
^
vision.cpp:55:22: error: continue statement not within a loop
if (!sz(vc)) continue;
^~~~~~~~
vision.cpp:58:30: error: 'j' was not declared in this scope
add_and({id, i * m + j});
^
vision.cpp:58:32: error: could not convert '{id, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_and({id, i * m + j});
^