wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:4:2: error: 'sort' was not declared in this scope
sort(r.begin(), r.end());
^~~~
wiring.cpp:4:2: note: suggested alternative: 'short'
sort(r.begin(), r.end());
^~~~
short
wiring.cpp:7:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<r.size(); i++) ret += b[0] - r[i];
~^~~~~~~~~
wiring.cpp:8:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<b.size(); i++) ret += b[i] - r.back();
~^~~~~~~~~