0_0_39468537_20267.cpp: In function 'void solve()':
0_0_39468537_20267.cpp:65:25: error: invalid conversion from 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} to 'long long int*' [-fpermissive]
65 | getnext_val(c,c.size(),nextc);
| ~~~~~~^~
| |
| std::__cxx11::basic_string<char>::size_type {aka long long unsigned int}
0_0_39468537_20267.cpp:65:16: error: too many arguments to function 'void getnext_val(std::string, long long int*)'
65 | getnext_val(c,c.size(),nextc);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
0_0_39468537_20267.cpp:26:6: note: declared here
26 | void getnext_val(string a, int Next_val[])
| ^~~~~~~~~~~
0_0_39468537_20267.cpp:70:29: error: invalid conversion from 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} to 'long long int*' [-fpermissive]
70 | getnext_val(b,b.size(),nextb);
| ~~~~~~^~
| |
| std::__cxx11::basic_string<char>::size_type {aka long long unsigned int}
0_0_39468537_20267.cpp:70:20: error: too many arguments to function 'void getnext_val(std::string, long long int*)'
70 | getnext_val(b,b.size(),nextb);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
0_0_39468537_20267.cpp:26:6: note: declared here
26 | void getnext_val(string a, int Next_val[])
| ^~~~~~~~~~~
0_0_39468537_20267.cpp:71:31: error: could not convert 'b.std::__cxx11::basic_string<char>::size()' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
71 | int cnta=KMP2(b,b.size(),a,a.size(),nextb);
| ~~~~~~^~
| |
| std::__cxx11::basic_string<char>::size_type {aka long long unsigned int}
0_0_39468537_20267.cpp:72:31: error: could not convert 'c.std::__cxx11::basic_string<char>::size()' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
72 | int cntc=KMP2(c,c.size(),bb,bb.size(),nextc);
| ~~~~~~^~
| |
| std::__cxx11::basic_string<char>::size_type {aka long long unsigned int}
|