/in/foo.cc: In function 'void getVal(int, int)':
/in/foo.cc:48:38: error: 'max' was not declared in this scope
V[at].Val=max(V[at].Val, V[to].Size);
^
/in/foo.cc: In function 'void getDis(int, int)':
/in/foo.cc:69:39: error: 'max' was not declared in this scope
V[at].Dis=max(V[to].Dis+1, V[at].Dis);
^
/in/foo.cc: In function 'void Deal(int, int)':
/in/foo.cc:148:24: error: 'min' was not declared in this scope
L=0;R=min(d, V[at].Dis);
^
/in/foo.cc: In function 'int LCA(int, int)':
/in/foo.cc:169:33: error: 'swap' was not declared in this scope
if(V[a].Dep>V[b].Dep) swap(a, b);
^