wiring.cpp: In function 'long long int min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<r.size();i++)
~^~~~~~~~~
wiring.cpp:13:2: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
wiring.cpp: At global scope:
wiring.cpp:14:2: error: 'dp' does not name a type
dp[0][20]=abs(r[0]-b[0]);
^~
wiring.cpp:15:2: error: expected unqualified-id before 'for'
for(int i=0;i<r.size();i++){
^~~
wiring.cpp:15:14: error: 'i' does not name a type
for(int i=0;i<r.size();i++){
^
wiring.cpp:15:25: error: 'i' does not name a type
for(int i=0;i<r.size();i++){
^
wiring.cpp:34:8: error: 'r' was not declared in this scope
int t=r.size()-1;
^
wiring.cpp:35:2: error: expected unqualified-id before 'return'
return dp[r.size()-1][(int)b.size()-1-(t)+20];
^~~~~~
wiring.cpp:36:1: error: expected declaration before '}' token
}
^