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_20601087_24544.cpp: In function 'void getnext()':
0_0_20601087_24544.cpp:14:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     next[0] = -1;
           ^
0_0_20601087_24544.cpp:15:13: error: 'm' was not declared in this scope
     while(i<m)
             ^
0_0_20601087_24544.cpp: In function 'int kmp()':
0_0_20601087_24544.cpp:34:13: error: 'n' was not declared in this scope
     while(i<n)
             ^
0_0_20601087_24544.cpp:38:21: error: 'm' was not declared in this scope
             if(j == m-1)
                     ^
0_0_20601087_24544.cpp: In function 'int main()':
0_0_20601087_24544.cpp:68:21: error: too many arguments to function 'void getnext()'
         getnext(len2);
                     ^
0_0_20601087_24544.cpp:11:6: note: declared here
 void getnext()
      ^
0_0_20601087_24544.cpp:69:30: error: too many arguments to function 'int kmp()'
         int ans=kmp(len1,len2);
                              ^
0_0_20601087_24544.cpp:31:5: note: declared here
 int kmp()
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-28 12:33:04, Gzip enabled