0_0_34852921_26074.cpp: In function 'int Manacher(char*)':
0_0_34852921_26074.cpp:26:5: error: expected ',' or ';' before 'string'
string t="$#";
^
0_0_34852921_26074.cpp:29:9: error: 't' was not declared in this scope
t+=s[i];
^
0_0_34852921_26074.cpp:32:14: error: 't' was not declared in this scope
int len2=t.size();
^
0_0_34852921_26074.cpp: In function 'int main()':
0_0_34852921_26074.cpp:54:25: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'char*' for argument '1' to 'int Manacher(char*)'
cout<<Manacher(s)<<endl;
^
|