0_0_38597173_29696.cpp: In function 'void dfs2(int, int)':
0_0_38597173_29696.cpp:51:5: error: reference to 'rank' is ambiguous
rank[tid[u]] = u;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/move.h:55,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/nested_exception.h:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/exception:144,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38597173_29696.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/type_traits:1244:12: note: candidates are: 'template<class> struct std::rank'
struct rank
^~~~
0_0_38597173_29696.cpp:27:58: note: 'int rank [200007]'
int dep[MAX],siz[MAX],fa[MAX],tid[MAX],son[MAX],top[MAX],rank[MAX],tim;
^~~~
0_0_38597173_29696.cpp: In function 'int main()':
0_0_38597173_29696.cpp:150:17: error: reference to 'rank' is ambiguous
ans[rank[u]] = query ( 1 );
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/move.h:55,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/nested_exception.h:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/exception:144,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38597173_29696.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/type_traits:1244:12: note: candidates are: 'template<class> struct std::rank'
struct rank
^~~~
0_0_38597173_29696.cpp:27:58: note: 'int rank [200007]'
int dep[MAX],siz[MAX],fa[MAX],tid[MAX],son[MAX],top[MAX],rank[MAX],tim;
^~~~
|