vision.cpp: In function 'bool is(int, int)':
vision.cpp:10:19: error: 'H' was not declared in this scope
10 | if(i < 0 || i >= H || j < 0 || j >= W) return false;
| ^
vision.cpp:10:38: error: 'W' was not declared in this scope
10 | if(i < 0 || i >= H || j < 0 || j >= W) return false;
| ^
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:22:29: error: too few arguments to function 'int f(int, int, int)'
22 | last = add_and({f(i, j), f(k, l)});
| ^
vision.cpp:5:5: note: declared here
5 | int f(int i, int j, int W){
| ^
vision.cpp:22:38: error: too few arguments to function 'int f(int, int, int)'
22 | last = add_and({f(i, j), f(k, l)});
| ^
vision.cpp:5:5: note: declared here
5 | int f(int i, int j, int W){
| ^
vision.cpp:22:40: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
22 | last = add_and({f(i, j), f(k, l)});
| ^
| |
| <brace-enclosed initializer list>