carnival.cpp: In function 'int twin()':
carnival.cpp:23:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | if (query(mid, rep.size() - 1) < rep.size() - mid) lo = mid;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
carnival.cpp:26:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if (query(hi, rep.size() - 1) < rep.size() - hi) return hi;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:35:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if (query(0, rep.size() - 1) == rep.size()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~