wiring.cpp: In function 'll min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:12:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i = 0; i < R.size(); i++) arr.push_back({R[i], 0});
| ~~^~~~~~~~~~
wiring.cpp:13:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for (int i = 0; i < B.size(); i++) arr.push_back({B[i], 1});
| ~~^~~~~~~~~~
wiring.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 1; i < sum.size(); i++) sum[i] = sum[i - 1] + arr[i].first;
| ~~^~~~~~~~~~~~
wiring.cpp:24:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (i++; i < arr.size(); i++) {
| ~~^~~~~~~~~~~~
wiring.cpp:39:48: warning: 'last' may be used uninitialized in this function [-Wmaybe-uninitialized]
39 | dp[i] = min(dp[i], dp[i-1] + arr[i].first - last);
| ^~~~
wiring.cpp:34:3: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
34 | if (b <= a) {
| ^~