vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:8:28: error: expected ';' before ')' token
8 | for (int i=0; i<H*W) {
| ^
| ;
vision.cpp:9:23: error: 'k' was not declared in this scope
9 | if (i+k >= H*W) continue;
| ^
vision.cpp:10:31: error: 'k' was not declared in this scope
10 | add_and({i, i+k});
| ^
vision.cpp:10:24: error: could not convert '{i, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
10 | add_and({i, i+k});
| ~~~~~~~^~~~~~~~~~
| |
| <brace-enclosed initializer list>