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_14598138_3881.cpp:6:11: error: array bound is not an integer constant before ']' token
 int s[SIZE], t[SIZE2];
           ^
0_0_14598138_3881.cpp:6:21: error: array bound is not an integer constant before ']' token
 int s[SIZE], t[SIZE2];
                     ^
0_0_14598138_3881.cpp:7:15: error: array bound is not an integer constant before ']' token
 int next[SIZE2];
               ^
0_0_14598138_3881.cpp: In function 'void getnext()':
0_0_14598138_3881.cpp:10:5: error: 'next' was not declared in this scope
     next[0] = -1;
     ^
0_0_14598138_3881.cpp:15:23: error: 't' was not declared in this scope
         if(i == -1 || t[i] == t[j])
                       ^
0_0_14598138_3881.cpp: In function 'int kmp()':
0_0_14598138_3881.cpp:28:23: error: 's' was not declared in this scope
         if(j == -1 || s[i] == t[j])
                       ^
0_0_14598138_3881.cpp:28:31: error: 't' was not declared in this scope
         if(j == -1 || s[i] == t[j])
                               ^
0_0_14598138_3881.cpp:31:17: error: 'next' was not declared in this scope
             j = next[j];
                 ^
0_0_14598138_3881.cpp: In function 'int main()':
0_0_14598138_3881.cpp:44:25: error: 's' was not declared in this scope
             scanf("%d", s + i);
                         ^
0_0_14598138_3881.cpp:46:25: error: 't' was not declared in this scope
             scanf("%d", t + 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-11-23 04:27:26, Gzip enabled