palindrome.cpp: In function 'bool palindrome(int, int)':
palindrome.cpp:12:8: error: reference to 'hash' is ambiguous
lld A=hash[b+1]-hash[a];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:12:18: error: reference to 'hash' is ambiguous
lld A=hash[b+1]-hash[a];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp: In function 'lld val(int, int)':
palindrome.cpp:25:8: error: reference to 'hash' is ambiguous
lld A=hash[b+1]-hash[a];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:25:18: error: reference to 'hash' is ambiguous
lld A=hash[b+1]-hash[a];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp: In function 'int main()':
palindrome.cpp:35:2: error: reference to 'hash' is ambiguous
hash[0]=0;
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:38:3: error: reference to 'hash' is ambiguous
hash[i]=(s.at(i-1))*v+hash[i-1];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:38:25: error: reference to 'hash' is ambiguous
hash[i]=(s.at(i-1))*v+hash[i-1];
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:39:3: error: reference to 'hash' is ambiguous
hash[i]%=MOD;
^~~~
palindrome.cpp:8:5: note: candidates are: lld hash [1000000]
lld hash[1000000];
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6575: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 palindrome.cpp:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~