0_0_21643191_17223.cpp: In function 'void discrete()':
0_0_21643191_17223.cpp:10:10: error: reference to 'hash' is ambiguous
sort(hash+1,hash+n+1);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:10:17: error: reference to 'hash' is ambiguous
sort(hash+1,hash+n+1);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:11:16: error: reference to 'hash' is ambiguous
cnt=unique(hash+1,hash+n+1)-(hash+1);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:11:23: error: reference to 'hash' is ambiguous
cnt=unique(hash+1,hash+n+1)-(hash+1);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:11:34: error: reference to 'hash' is ambiguous
cnt=unique(hash+1,hash+n+1)-(hash+1);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:12:44: error: reference to 'hash' is ambiguous
for(int i=1;i<=n;i++) a[i]=lower_bound(hash+1,hash+cnt+1,a[i])-hash;
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:12:51: error: reference to 'hash' is ambiguous
for(int i=1;i<=n;i++) a[i]=lower_bound(hash+1,hash+cnt+1,a[i])-hash;
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:12:68: error: reference to 'hash' is ambiguous
for(int i=1;i<=n;i++) a[i]=lower_bound(hash+1,hash+cnt+1,a[i])-hash;
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp: In function 'int main()':
0_0_21643191_17223.cpp:48:39: error: reference to 'hash' is ambiguous
for(int i=1;i<=n;i++) a[i]=init(),hash[i]=a[i];
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_21643191_17223.cpp:54:23: error: reference to 'hash' is ambiguous
printf("%d\n",hash[query(root[x-1],root[y],1,cnt,k)]);
^
0_0_21643191_17223.cpp:6:14: note: candidates are: int hash [100001]
int n,m,a[N],hash[N],cnt,root[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_21643191_17223.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: no
|