wiring.cpp: In function 'long long int solveAB(std::vector<int>, std::vector<int>)':
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:26:3: note: in expansion of macro 'rep'
rep(i, A.size()-1) sum += 1LL*(i+1)*(A[i+1]-A[i]);
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:28:3: note: in expansion of macro 'rep'
rep(i, B.size()-1) sum += 1LL*(B.size()-1-i)*(B[i+1]-B[i]);
^~~
wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:33:3: note: in expansion of macro 'rep'
rep(i, A.size()) {
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:39:3: note: in expansion of macro 'rep'
rep(i, B.size()) {
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:46:3: note: in expansion of macro 'rep'
rep(i, A.size()) rep(j, B.size()) vs.pb(make_pair(abs(A[i]-B[j]), P(i, j)));
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:46:20: note: in expansion of macro 'rep'
rep(i, A.size()) rep(j, B.size()) vs.pb(make_pair(abs(A[i]-B[j]), P(i, j)));
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:56:3: note: in expansion of macro 'rep'
rep(i, A.size()) chmin(mincost, costA[i]), sum += costA[i];
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:57:3: note: in expansion of macro 'rep'
rep(i, B.size()) chmin(mincost, costB[i]), sum += costB[i];
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:60:3: note: in expansion of macro 'rep'
rep(i, A.size()+1) rep(j, B.size()+1) dp[i][j] = INF;
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:60:22: note: in expansion of macro 'rep'
rep(i, A.size()+1) rep(j, B.size()+1) dp[i][j] = INF;
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:62:3: note: in expansion of macro 'rep'
rep(i, A.size()+1) rep(j, B.size()+1) {
^~~
wiring.cpp:7:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
wiring.cpp:62:22: note: in expansion of macro 'rep'
rep(i, A.size()+1) rep(j, B.size()+1) {
^~~
wiring.cpp:63:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == A.size() && j == B.size()) continue;
~~^~~~~~~~~~~
wiring.cpp:63:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == A.size() && j == B.size()) continue;
~~^~~~~~~~~~~
wiring.cpp:64:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < A.size()) chmin(dp[i+1][j], dp[i][j]);
~~^~~~~~~~~~
wiring.cpp:65:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j < B.size()) chmin(dp[i][j+1], dp[i][j]);
~~^~~~~~~~~~
wiring.cpp:66:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < A.size() && j < B.size()) {
~~^~~~~~~~~~
wiring.cpp:66:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < A.size() && j < B.size()) {
~~^~~~~~~~~~
wiring.cpp:48:7: warning: unused variable 'a' [-Wunused-variable]
int a = vs[0]._2._1, b = vs[0]._2._2;
^
wiring.cpp:48:24: warning: unused variable 'b' [-Wunused-variable]
int a = vs[0]._2._1, b = vs[0]._2._2;
^