0_0_32854478_2343.cpp: In function 'int main()':
0_0_32854478_2343.cpp:67:19: error: reference to 'hash' is ambiguous
j=i%m;hash[i]=b[i]=a[j];
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:70:14: error: reference to 'hash' is ambiguous
sort(hash,hash+n);
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:70:19: error: reference to 'hash' is ambiguous
sort(hash,hash+n);
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:71:31: error: reference to 'hash' is ambiguous
for(i=m=1;i<n;i++) if(hash[i]!=hash[i-1]) hash[m++]=hash[i];
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:71:40: error: reference to 'hash' is ambiguous
for(i=m=1;i<n;i++) if(hash[i]!=hash[i-1]) hash[m++]=hash[i];
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:71:51: error: reference to 'hash' is ambiguous
for(i=m=1;i<n;i++) if(hash[i]!=hash[i-1]) hash[m++]=hash[i];
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:71:61: error: reference to 'hash' is ambiguous
for(i=m=1;i<n;i++) if(hash[i]!=hash[i-1]) hash[m++]=hash[i];
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
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_32854478_2343.cpp:74:27: error: reference to 'hash' is ambiguous
pos=bs(b[i],m,hash)+1;
^
0_0_32854478_2343.cpp:30:21: note: candidates are: long long int hash [500010]
ll a[N],b[N],sum[N],hash[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
from 0_0_32854478_2343.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|