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_18189526_31351.cpp:18:9: error: 'max1' was not declared in this scope
 int nex[max1],extand[max2];
         ^
0_0_18189526_31351.cpp:18:22: error: 'max2' was not declared in this scope
 int nex[max1],extand[max2];
                      ^
0_0_18189526_31351.cpp:19:8: error: 'max2' was not declared in this scope
 char s[max2],t[max1];
        ^
0_0_18189526_31351.cpp:19:16: error: 'max1' was not declared in this scope
 char s[max2],t[max1];
                ^
0_0_18189526_31351.cpp: In function 'void makenex(char*)':
0_0_18189526_31351.cpp:23:5: error: 'nex' was not declared in this scope
     nex[0]=len;
     ^
0_0_18189526_31351.cpp: In function 'void ex_kmp(char*, char*)':
0_0_18189526_31351.cpp:53:5: error: 'extand' was not declared in this scope
     extand[0]=i;
     ^
0_0_18189526_31351.cpp:57:12: error: 'nex' was not declared in this scope
         if(nex[i-po]+i<extand[po]+po)
            ^
0_0_18189526_31351.cpp: In function 'int main()':
0_0_18189526_31351.cpp:80:20: error: 's' was not declared in this scope
         scanf("%s",s);
                    ^
0_0_18189526_31351.cpp:86:26: error: 'nex' was not declared in this scope
             maxlen=min(i,nex[i]);
                          ^
0_0_18189526_31351.cpp:93:16: error: 'nex' was not declared in this scope
             if(nex[i]+i!=len) continue;
                ^
0_0_18189526_31351.cpp:94:21: error: 'nex' was not declared in this scope
             if(ans>=nex[i])
                     ^


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-10-06 11:51:35, Gzip enabled