0_0_19605109_22163.cpp: In function 'void greedy()':
0_0_19605109_22163.cpp:80:10: error: reference to 'rank' is ambiguous
sort(rank+1, rank+1+n, cmp);
^
0_0_19605109_22163.cpp:13:12: note: candidates are: int rank [1505]
int lv[N], rank[N], in[N], out[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_19605109_22163.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19605109_22163.cpp:80:18: error: reference to 'rank' is ambiguous
sort(rank+1, rank+1+n, cmp);
^
0_0_19605109_22163.cpp:13:12: note: candidates are: int rank [1505]
int lv[N], rank[N], in[N], out[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_19605109_22163.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19605109_22163.cpp:83:17: error: reference to 'rank' is ambiguous
int u = rank[i];
^
0_0_19605109_22163.cpp:13:12: note: candidates are: int rank [1505]
int lv[N], rank[N], in[N], out[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_19605109_22163.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19605109_22163.cpp:95:17: error: reference to 'rank' is ambiguous
int v = rank[i];
^
0_0_19605109_22163.cpp:13:12: note: candidates are: int rank [1505]
int lv[N], rank[N], in[N], out[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_19605109_22163.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_19605109_22163.cpp: In function 'int main()':
0_0_19605109_22163.cpp:115:13: error: reference to 'rank' is ambiguous
rank[i] = i;
^
0_0_19605109_22163.cpp:13:12: note: candidates are: int rank [1505]
int lv[N], rank[N], in[N], out[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_19605109_22163.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|