0_0_25760302_5678.cpp: In function 'int main()':
0_0_25760302_5678.cpp:41:4: error: reference to 'rank' is ambiguous
rank[i]=i;
^
0_0_25760302_5678.cpp:10:19: note: candidates are: int rank [10010]
int n,m,num[maxn],rank[maxn];
^
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_25760302_5678.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25760302_5678.cpp:43:8: error: reference to 'rank' is ambiguous
sort(rank+1,rank+1+n,cmp);//rank为b中元素升序排列的下标
^
0_0_25760302_5678.cpp:10:19: note: candidates are: int rank [10010]
int n,m,num[maxn],rank[maxn];
^
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_25760302_5678.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25760302_5678.cpp:43:15: error: reference to 'rank' is ambiguous
sort(rank+1,rank+1+n,cmp);//rank为b中元素升序排列的下标
^
0_0_25760302_5678.cpp:10:19: note: candidates are: int rank [10010]
int n,m,num[maxn],rank[maxn];
^
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_25760302_5678.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_25760302_5678.cpp:55:11: error: reference to 'rank' is ambiguous
int i=rank[k];//从最小的开始,i为那个最小序列对应的位置
^
0_0_25760302_5678.cpp:10:19: note: candidates are: int rank [10010]
int n,m,num[maxn],rank[maxn];
^
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_25760302_5678.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|