wiring.cpp: In function 'll min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++)a[i]=-a[i]; sort(a.begin(),a.end());
~^~~~~~~~~
wiring.cpp:18:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<a.size();i++)a[i]=-a[i]; sort(a.begin(),a.end());
^~~
wiring.cpp:18:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=0;i<a.size();i++)a[i]=-a[i]; sort(a.begin(),a.end());
^~~~
wiring.cpp:19:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<b.size();i++)b[i]=-b[i]; sort(b.begin(),b.end());
~^~~~~~~~~
wiring.cpp:19:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<b.size();i++)b[i]=-b[i]; sort(b.begin(),b.end());
^~~
wiring.cpp:19:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=0;i<b.size();i++)b[i]=-b[i]; sort(b.begin(),b.end());
^~~~
wiring.cpp:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++)ans+=b[i]-a[i];
~^~~~~~~~~
wiring.cpp:25:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=a.size();i<b.size();i++)ans+=b[i]-a.back();
~^~~~~~~~~