0_0_14269573_20851.cpp:12:34: error: 'long long unsigned int pow [220001]' redeclared as different kind of symbol
unsigned long long pow[maxlen*2+1],has[maxlen*2+1];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_14269573_20851.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: previous declaration 'double pow(double, double)'
double __cdecl pow(double _X,double _Y);
^
0_0_14269573_20851.cpp: In function 'long long unsigned int hash(int)':
0_0_14269573_20851.cpp:29:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return has[rr]-has[ll-1]*pow[rr-ll+1];
^
0_0_14269573_20851.cpp: In function 'void manacher()':
0_0_14269573_20851.cpp:38:31: error: reference to 'hash' is ambiguous
unsigned long long hash_va=hash(i);
^
0_0_14269573_20851.cpp:27:20: note: candidates are: long long unsigned int hash(int)
unsigned long long hash(int x) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14269573_20851.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_14269573_20851.cpp:45:14: error: reference to 'hash' is ambiguous
if(!s.count(hash(len-1))) cnt++;
^
0_0_14269573_20851.cpp:27:20: note: candidates are: long long unsigned int hash(int)
unsigned long long hash(int x) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14269573_20851.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_14269573_20851.cpp: In function 'void init_hash()':
0_0_14269573_20851.cpp:48:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1;for(int i=1;i<=110000*2;i++) pow[i]=pow[i-1]*131;
^
0_0_14269573_20851.cpp:48:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1;for(int i=1;i<=110000*2;i++) pow[i]=pow[i-1]*131;
^
0_0_14269573_20851.cpp:48:54: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1;for(int i=1;i<=110000*2;i++) pow[i]=pow[i-1]*131;
^
|