0_0_30993014_22042.cpp: In member function 'int lca_Doubling::getDistance(int, int)':
0_0_30993014_22042.cpp:70:23: error: 'lca' was not declared in this scope
return dis[u]+lca.dis[v]-2*dis[getAncestor(u,v)];
^
0_0_30993014_22042.cpp: In function 'int main()':
0_0_30993014_22042.cpp:116:30: error: use of 'u' before deduction of 'auto'
for ( auto u : c[u] )
^
0_0_30993014_22042.cpp:117:34: error: use of 'v' before deduction of 'auto'
for ( auto v : c[v] )
^
|