/in/foo.cc: In function 'int main()':
/in/foo.cc:30:19: error: reference to 'hash' is ambiguous
hash[i]=x[i];
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:31:12: error: reference to 'hash' is ambiguous
sort(hash+1,hash+n+1);
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:31:19: error: reference to 'hash' is ambiguous
sort(hash+1,hash+n+1);
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:32:16: error: reference to 'hash' is ambiguous
d=unique(hash+1,hash+n+1)-hash-1;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:32:23: error: reference to 'hash' is ambiguous
d=unique(hash+1,hash+n+1)-hash-1;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:32:33: error: reference to 'hash' is ambiguous
d=unique(hash+1,hash+n+1)-hash-1;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:35:27: error: reference to 'hash' is ambiguous
a=lower_bound(hash+1,hash+d+1,x[i])-hash;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:35:34: error: reference to 'hash' is ambiguous
a=lower_bound(hash+1,hash+d+1,x[i])-hash;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:35:49: error: reference to 'hash' is ambiguous
a=lower_bound(hash+1,hash+d+1,x[i])-hash;
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:42:19: error: reference to 'hash' is ambiguous
hash[i]=y[i];
^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
int hash[100007];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:43:12: error: reference to 'hash' is ambiguous
sort(hash+1,hash+n+1);
^~~~
/in/foo.cc:10:5: note: candidates