vision.cpp: In function 'int get(std::vector<int>, int)':
vision.cpp:23:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = k; i < pref.size(); i++)
~~^~~~~~~~~~~~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:41:43: error: too many arguments to function 'int add_xor(std::vector<int>)'
s.push_back(add_xor(ask, add_or(ask)));
^
In file included from vision.cpp:1:0:
vision.h:14:5: note: declared here
int add_xor(std::vector<int> Ns);
^~~~~~~
vision.cpp:45:23: error: expected primary-expression before '=' token
vector<int> ask; = find(1, -1, i);
^
vision.cpp:49:43: error: too many arguments to function 'int add_xor(std::vector<int>)'
d.push_back(add_xor(ask, add_or(ask)));
^
In file included from vision.cpp:1:0:
vision.h:14:5: note: declared here
int add_xor(std::vector<int> Ns);
^~~~~~~
vision.cpp:57:56: error: could not convert 'sk1' from 'int' to 'std::vector<int>'
add_and({add_or({sk, dk}), add_not({add_or(sk1, dk1)})});
^
vision.cpp:57:58: error: cannot convert '<brace-enclosed initializer list>' to 'int' for argument '1' to 'int add_not(int)'
add_and({add_or({sk, dk}), add_not({add_or(sk1, dk1)})});
^
vision.cpp:57:60: error: could not convert '{add_or(std::vector<int>(std::initializer_list<int>{((const int*)(& const int [2]{sk, dk})), 2}, std::allocator<int>())), <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
add_and({add_or({sk, dk}), add_not({add_or(sk1, dk1)})});
^