vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:25:21: error: 'h' was not declared in this scope
25 | int r = add_and({h*i+j});
| ^
vision.cpp:25:27: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
25 | int r = add_and({h*i+j});
| ^
| |
| <brace-enclosed initializer list>
vision.cpp:33:21: error: 'struct std::pair<int, int>' has no member named 'fr'
33 | int res = abs(v[0].fr - v[1].fr) + abs(v[0].sc - v[1].sc);
| ^~
vision.cpp:33:31: error: 'struct std::pair<int, int>' has no member named 'fr'
33 | int res = abs(v[0].fr - v[1].fr) + abs(v[0].sc - v[1].sc);
| ^~
vision.cpp:33:46: error: 'struct std::pair<int, int>' has no member named 'sc'
33 | int res = abs(v[0].fr - v[1].fr) + abs(v[0].sc - v[1].sc);
| ^~
vision.cpp:33:56: error: 'struct std::pair<int, int>' has no member named 'sc'
33 | int res = abs(v[0].fr - v[1].fr) + abs(v[0].sc - v[1].sc);
| ^~