wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:21:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=1; i<T.size(); ++i) {
| ~^~~~~~~~~
wiring.cpp:6:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
wiring.cpp:29:2: note: in expansion of macro 'rep'
29 | rep(i, V[0].size()+1) {
| ^~~
wiring.cpp:6:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
wiring.cpp:38:3: note: in expansion of macro 'rep'
38 | rep(j, V[i].size()) {
| ^~~
wiring.cpp:41:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | if(j<dp[i-1].size()) akt=min(akt, dp[i-1][dp[i-1].size()-j-1]);
| ~^~~~~~~~~~~~~~~
wiring.cpp:44:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if(j<=midp[i-1].size()-2) {
| ~^~~~~~~~~~~~~~~~~~~~
wiring.cpp:49:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int j=1; j<dp[i].size(); ++j) midp[i].pb(min(midp[i][midp[i].size()-1], dp[i][j]));
| ~^~~~~~~~~~~~~