wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i = 0; i < r.size(); i++) {
| ~~^~~~~~~~~~
wiring.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < b.size(); i++) {
| ~~^~~~~~~~~~
wiring.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 1; i < x.size(); i++) {
| ~~^~~~~~~~~~
wiring.cpp:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i = 1; i < x.size(); i++) {
| ~~^~~~~~~~~~
wiring.cpp:34:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while(j + 1 < x.size() && x[i].s == x[j + 1].s) ++j;
| ~~~~~~^~~~~~~~~~
wiring.cpp:50:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | if(j + 1 == x.size()) return dp[j];
| ~~~~~~^~~~~~~~~~~
wiring.cpp:16:14: warning: control reaches end of non-void function [-Wreturn-type]
16 | vector<pii> x;
| ^