/in/foo.cc: In function 'bool cmp(int, int)':
/in/foo.cc:13:7: error: reference to 'hash' is ambiguous
a=((hash[i+mid-1]-hash[i-1]*(long long)power[mid]%mod)%mod+mod)%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:13:21: error: reference to 'hash' is ambiguous
a=((hash[i+mid-1]-hash[i-1]*(long long)power[mid]%mod)%mod+mod)%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:14:7: error: reference to 'hash' is ambiguous
b=((hash[j+mid-1]-hash[j-1]*(long long)power[mid]%mod)%mod+mod)%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:14:21: error: reference to 'hash' is ambiguous
b=((hash[j+mid-1]-hash[j-1]*(long long)power[mid]%mod)%mod+mod)%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:3: error: reference to 'hash' is ambiguous
hash[i]=(hash[i-1]*131ll+s[i])%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
/in/foo.cc:35:12: error: reference to 'hash' is ambiguous
hash[i]=(hash[i-1]*131ll+s[i])%mod;
^~~~
/in/foo.cc:8:5: note: candidates are: int hash [200006]
int hash[maxn<<1],power[maxn<<1],n,p[maxn],tmp[maxn];
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~