wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:10:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | while (i < r.size() && j < b.size())
| ~~^~~~~~~~~~
wiring.cpp:10:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | while (i < r.size() && j < b.size())
| ~~^~~~~~~~~~
wiring.cpp:15:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (i < r.size()) a.push_back({r[i++], 0});
| ~~^~~~~~~~~~
wiring.cpp:16:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | while (j < b.size()) a.push_back({b[j++], 1});
| ~~^~~~~~~~~~
wiring.cpp:20:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
wiring.cpp:35:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
wiring.cpp:44:13: warning: unused variable 'cntr' [-Wunused-variable]
44 | long long cntr = 0, cntb = 0, d = 0;
| ^~~~
wiring.cpp:44:23: warning: unused variable 'cntb' [-Wunused-variable]
44 | long long cntr = 0, cntb = 0, d = 0;
| ^~~~
wiring.cpp:44:33: warning: unused variable 'd' [-Wunused-variable]
44 | long long cntr = 0, cntb = 0, d = 0;
| ^