F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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}


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-20 17:46:28, Gzip enabled