vision.cpp:6:1: error: expected initializer before 'vector'
vector<int>fct(int K, vector<int>mn)
^~~~~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:27:5: error: 'query_number' was not declared in this scope
query_number = H * W - 1;
^~~~~~~~~~~~
vision.cpp:37:48: error: could not convert '{query_number, add_xor(std::vector<int>(pz))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_xor({query_number, add_xor(pz)}), query_number += 2;
^
vision.cpp:45:44: error: could not convert '{query_number, add_xor(std::vector<int>(pz))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_xor({query_number, add_xor(pz)}), query_number += 2;
^
vision.cpp:56:48: error: could not convert '{query_number, add_xor(std::vector<int>(pz))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_xor({query_number, add_xor(pz)}), query_number += 2;
^
vision.cpp:64:44: error: could not convert '{query_number, add_xor(std::vector<int>(pz))}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_xor({query_number, add_xor(pz)});
^
vision.cpp:68:21: error: 'fct' was not declared in this scope
add_and({add_or(fct(K, mn)), add_or(fct(K, sc)), add_not(add_or(fct(K+1, mn))), add_not(add_or(fct(K+1, sc)))});
^~~
vision.cpp:68:21: note: suggested alternative: 'fcvt'
add_and({add_or(fct(K, mn)), add_or(fct(K, sc)), add_not(add_or(fct(K+1, mn))), add_not(add_or(fct(K+1, sc)))});
^~~
fcvt
vision.cpp:68:115: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_and({add_or(fct(K, mn)), add_or(fct(K, sc)), add_not(add_or(fct(K+1, mn))), add_not(add_or(fct(K+1, sc)))});
^