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_34445059_32767.cpp:4:20: error: expected primary-expression before ',' token
 const int N1 = 1e6+, N2 = 1e4+;
                    ^
0_0_34445059_32767.cpp:5:9: error: 'N2' was not declared in this scope
 int nxt[N2];
         ^
0_0_34445059_32767.cpp:6:13: error: size of array 'str1' is not an integral constant-expression
 char str1[N1],str2[N2];
             ^
0_0_34445059_32767.cpp:6:20: error: 'N2' was not declared in this scope
 char str1[N1],str2[N2];
                    ^
0_0_34445059_32767.cpp: In function 'void get_nxt(int)':
0_0_34445059_32767.cpp:10:13: error: expected primary-expression before ',' token
     int i = , j = -;
             ^
0_0_34445059_32767.cpp:11:5: error: 'nxt' was not declared in this scope
     nxt[] = -;
     ^
0_0_34445059_32767.cpp:11:9: error: expected primary-expression before ']' token
     nxt[] = -;
         ^
0_0_34445059_32767.cpp:11:14: error: expected primary-expression before ';' token
     nxt[] = -;
              ^
0_0_34445059_32767.cpp:13:13: error: 'j' was not declared in this scope
         if (j == - || str2[i] == str2[j])nxt[++i]=++j;
             ^
0_0_34445059_32767.cpp:13:20: error: expected primary-expression before '||' token
         if (j == - || str2[i] == str2[j])nxt[++i]=++j;
                    ^
0_0_34445059_32767.cpp:13:23: error: 'str2' was not declared in this scope
         if (j == - || str2[i] == str2[j])nxt[++i]=++j;
                       ^
0_0_34445059_32767.cpp: In function 'void kmp(int, int)':
0_0_34445059_32767.cpp:18:13: error: expected primary-expression before ',' token
     int i = , j = ;
             ^
0_0_34445059_32767.cpp:21:13: error: 'j' was not declared in this scope
         if (j == - || str1[i] == str2[j])++i,++j;
             ^
0_0_34445059_32767.cpp:21:20: error: expected primary-expression before '||' token
         if (j == - || str1[i] == str2[j])++i,++j;
                    ^
0_0_34445059_32767.cpp:21:34: error: 'str2' was not declared in this scope
         if (j == - || str1[i] == str2[j])++i,++j;
                                  ^
0_0_34445059_32767.cpp:22:18: error: 'nxt' was not declared in this scope
         else j = nxt[j];
                  ^
0_0_34445059_32767.cpp:23:13: error: 'j' was not declared in this scope
         if (j == len2)++cnt,j=nxt[j];                //找到一个匹配的串后,模式串的起点从nxt数组下一个点继续匹配
             ^
0_0_34445059_32767.cpp:23:31: error: 'nxt' was not declared in this scope
         if (j == len2)++cnt,j=nxt[j];                //找到一个匹配的串后,模式串的起点从nxt数组下一个点继续匹配
                               ^
0_0_34445059_32767.cpp: In function 'int main()':
0_0_34445059_32767.cpp:30:14: error: 'str2' was not declared in this scope
         gets(str2);gets(str1);
              ^
0_0_34445059_32767.cpp:33:15: error: expected primary-expression before ';' token
         cnt = ;
               ^


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-30 00:29:18, Gzip enabled