vision.cpp: In function 'int binary_search()':
vision.cpp:5:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,b) for(int i = a; i < b; i++)
......
40 | rep(i,0,p.size() / 2) half[i] = p[i];
| ~~~~~~~~~~~~~~~~
vision.cpp:40:5: note: in expansion of macro 'rep'
40 | rep(i,0,p.size() / 2) half[i] = p[i];
| ^~~
vision.cpp:43:9: error: 'add_or' was not declared in this scope
43 | if (add_or(half)) np = half;
| ^~~~~~
vision.cpp:5:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,b) for(int i = a; i < b; i++)
......
45 | rep(i, p.size() / 2, p.size()) np.pb(p[i]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~
vision.cpp:45:7: note: in expansion of macro 'rep'
45 | rep(i, p.size() / 2, p.size()) np.pb(p[i]);
| ^~~
vision.cpp: In function 'void get_k(int)':
vision.cpp:63:7: error: 'add_and' was not declared in this scope; did you mean 'add_w'?
63 | add_and(k);
| ^~~~~~~
| add_w
vision.cpp:70:7: error: 'add_and' was not declared in this scope; did you mean 'add_w'?
70 | add_and(k);
| ^~~~~~~
| add_w
vision.cpp:78:5: error: 'add_or' was not declared in this scope
78 | add_or(f);
| ^~~~~~
vision.cpp:81:5: error: 'add_not' was not declared in this scope
81 | add_not(x);
| ^~~~~~~