wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:12:35: error: 'a' was not declared in this scope
minn=min(abs(b[j]-a[i]),minn);
^
wiring.cpp:12:26: error: 'abs' was not declared in this scope
minn=min(abs(b[j]-a[i]),minn);
^~~
wiring.cpp:12:26: note: suggested alternative: 'ans'
minn=min(abs(b[j]-a[i]),minn);
^~~
ans
wiring.cpp:20:35: error: 'a' was not declared in this scope
minn=min(abs(b[i]-a[j]),minn);
^
wiring.cpp:20:26: error: 'abs' was not declared in this scope
minn=min(abs(b[i]-a[j]),minn);
^~~
wiring.cpp:20:26: note: suggested alternative: 'ans'
minn=min(abs(b[i]-a[j]),minn);
^~~
ans