foo.cpp: In function 'll C()':
foo.cpp:63:24: error: reference to 'hash' is ambiguous
for(ll i=1;i<=tot;i++)hash[prime[i]]+=f(k,prime[i]);
^
foo.cpp:23:29: note: candidates are: ll hash [1000005]
ll prime[1000005]={0},tot=0,hash[1000005]={0};
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:64:24: error: reference to 'hash' is ambiguous
for(ll i=1;i<=tot;i++)hash[prime[i]]-=f(k-n,prime[i]);
^
foo.cpp:23:29: note: candidates are: ll hash [1000005]
ll prime[1000005]={0},tot=0,hash[1000005]={0};
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:65:24: error: reference to 'hash' is ambiguous
for(ll i=1;i<=tot;i++)hash[prime[i]]-=f(n,prime[i]);
^
foo.cpp:23:29: note: candidates are: ll hash [1000005]
ll prime[1000005]={0},tot=0,hash[1000005]={0};
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
foo.cpp:68:6: error: reference to 'hash' is ambiguous
if(hash[prime[i]])ret=(ret*quick_mod(prime[i],hash[prime[i]]));
^
foo.cpp:23:29: note: candidates are: ll hash [1000005]
ll prime[1000005]={0},tot=0,hash[1000005]={0};
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:3033:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:52,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:1:
c:\mingw