0_0_38781776_3274.cpp: In function 'int main()':
0_0_38781776_3274.cpp:18:29: error: invalid types 'int[int]' for array subscript
18 | dp[u[i]]=min(tempv,tempu+1);
| ^
0_0_38781776_3274.cpp:19:29: error: invalid types 'int[int]' for array subscript
19 | dp[v[i]]=min(tempu,tempv+1);
| ^
0_0_38781776_3274.cpp:22:23: error: 'inf' was not declared in this scope; did you mean 'sinf'?
22 | if(dp[i]==inf) dp[i]=-1;
| ^~~
| sinf
|