vision.cpp: In function 'int ans(int, int, int)':
vision.cpp:12:10: error: 'h' was not declared in this scope
Dr[i-j+h-1].push_back(i*W+j);
^
vision.cpp:33:39: error: could not convert '{p, add_and(std::vector<int>(cur))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
b.push_back(add_and({p,add_and(cur)}));
^
vision.cpp:35:28: error: could not convert '{b, a}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
V.push_back(add_xor({b,a}));
^
vision.cpp:56:39: error: could not convert '{p, add_and(std::vector<int>(cur))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
b.push_back(add_and({p,add_and(cur)}));
^
vision.cpp:58:28: error: could not convert '{b, a}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
V.push_back(add_xor({b,a}));
^
vision.cpp:8:25: warning: unused variable 'k' [-Wunused-variable]
int diag[405],dia[450],k;
^
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:64:10: error: 'k' was not declared in this scope
ans(H,W,k);
^