vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:11:49: error: 'm' was not declared in this scope
11 | for (int j = 0; j < w; ++j) res.push_back(i * m + j);
| ^
vision.cpp:14:22: error: 'm' was not declared in this scope
14 | for (int j = 0; j < m; j++) {
| ^
vision.cpp:16:23: error: 'n' was not declared in this scope
16 | for (int i = 0; i < n; i++) res.push_back(i * m + j);
| ^
vision.cpp:21:22: error: 'm' was not declared in this scope
21 | for (int i = 1; i < m; i++) ans.push_back(add_and({c[i - 1], c[i], xr}));
| ^