palindrome.cpp: In function 'll calc(int, int)':
palindrome.cpp:27:18: error: reference to 'hash' is ambiguous
if(l==1) return hash[r];
^~~~
palindrome.cpp:10:4: note: candidates are: ll hash [10005]
ll hash[10005];
^~~~
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/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from palindrome.cpp:2:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:28:10: error: reference to 'hash' is ambiguous
ll d = (hash[r]-hash[l-1]+mod)%mod;
^~~~
palindrome.cpp:10:4: note: candidates are: ll hash [10005]
ll hash[10005];
^~~~
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/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from palindrome.cpp:2:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:28:18: error: reference to 'hash' is ambiguous
ll d = (hash[r]-hash[l-1]+mod)%mod;
^~~~
palindrome.cpp:10:4: note: candidates are: ll hash [10005]
ll hash[10005];
^~~~
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/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from palindrome.cpp:2:
/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:53:3: error: reference to 'hash' is ambiguous
hash[i] = (hash[i-1]+cur*(str[i]-'a')%mod)%mod;
^~~~
palindrome.cpp:10:4: note: candidates are: ll hash [10005]
ll hash[10005];
^~~~
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/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from palindrome.cpp:2:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:53:14: error: reference to 'hash' is ambiguous
hash[i] = (hash[i-1]+cur*(str[i]-'a')%mod)%mod;
^~~~
palindrome.cpp:10:4: note: candidates are: ll hash [10005]
ll hash[10005];
^~~~
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/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from palindrome.cpp:2:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
palindrome.cpp:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",str);
~~~~~^~~~~~~~~~