vision.cpp: In function 'int check(std::vector<int>, int)':
vision.cpp:77:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i + k - 1 < a.size(); ++i) {
~~~~~~~~~~^~~~~~~~~~
vision.cpp:81:25: error: 'add_or' was not declared in this scope
tmp.pb(add_xor({add_or(now), add_xor(now)}));
^~~~~~
vision.cpp:81:25: note: suggested alternative: 'rand_r'
tmp.pb(add_xor({add_or(now), add_xor(now)}));
^~~~~~
rand_r
vision.cpp:81:38: error: 'add_xor' was not declared in this scope
tmp.pb(add_xor({add_or(now), add_xor(now)}));
^~~~~~~
vision.cpp:81:16: error: 'add_xor' was not declared in this scope
tmp.pb(add_xor({add_or(now), add_xor(now)}));
^~~~~~~
vision.cpp:83:12: error: 'add_or' was not declared in this scope
return add_or(tmp);
^~~~~~
vision.cpp:83:12: note: suggested alternative: 'rand_r'
return add_or(tmp);
^~~~~~
rand_r
vision.cpp: In function 'int consider(std::vector<int>, std::vector<int>, int)':
vision.cpp:87:15: error: 'add_xor' was not declared in this scope
int res = add_xor({check(a, k + 1), check(a, k)});
^~~~~~~
vision.cpp:88:12: error: 'add_and' was not declared in this scope
return add_and({res, check(b, k + 1)});
^~~~~~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:101:14: error: 'add_or' was not declared in this scope
a.pb(add_or(now));
^~~~~~
vision.cpp:101:14: note: suggested alternative: 'rand_r'
a.pb(add_or(now));
^~~~~~
rand_r
vision.cpp:110:14: error: 'add_or' was not declared in this scope
b.pb(add_or(now));
^~~~~~
vision.cpp:110:14: note: suggested alternative: 'rand_r'
b.pb(add_or(now));
^~~~~~
rand_r
vision.cpp:112:5: error: 'add_or' was not declared in this scope
add_or({consider(a, b, k), consider(b, a, k)});
^~~~~~
vision.cpp:112:5: note: suggested alternative: 'rand_r'
add_or({consider(a, b, k), consider(b, a, k)});
^~~~~~
rand_r