wiring.cpp: In function 'll min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:35:7: warning: overflow in conversion from 'll' {aka 'long long int'} to 'std::vector<int>::value_type' {aka 'int'} changes value from '1000000000000000000' to '-1486618624' [-Woverflow]
35 | r.pb(INF);
| ^~~
wiring.cpp:36:7: warning: overflow in conversion from 'll' {aka 'long long int'} to 'std::vector<int>::value_type' {aka 'int'} changes value from '1000000000000000000' to '-1486618624' [-Woverflow]
36 | b.pb(INF);
| ^~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from wiring.cpp:4:
wiring.cpp:54:28: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
54 | assert(pref[here].size() == sz+1);
| ~~~~~~~~~~~~~~~~~~^~~~~~~
wiring.cpp:19:40: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | #define FOR(i, a, b) for (ll i = (a); i<b; i++)
......
60 | FOR(i, 1, dp.size()) {
| ~~~~~~~~~~~~~~~
wiring.cpp:60:2: note: in expansion of macro 'FOR'
60 | FOR(i, 1, dp.size()) {
| ^~~
wiring.cpp:19:40: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | #define FOR(i, a, b) for (ll i = (a); i<b; i++)
......
62 | FOR(j, 0, dp[i].size()) {
| ~~~~~~~~~~~~~~~~~~
wiring.cpp:62:3: note: in expansion of macro 'FOR'
62 | FOR(j, 0, dp[i].size()) {
| ^~~
wiring.cpp:81:10: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | if (j < dp[i].size()) ckmin(dp[i][j], best + pref[i][j]);
| ~~^~~~~~~~~~~~~~