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_38425383_21311.c:3:1: error: expected identifier or '(' before '/' token
 // #define N 1000005
 ^
0_0_38425383_21311.c:3:4: error: stray '#' in program
 // #define N 1000005
    ^
0_0_38425383_21311.c:4:4: error: stray '#' in program
 // #define M 10005
    ^
0_0_38425383_21311.c:6:1: error: expected identifier or '(' before '/' token
 // int B[M];
 ^
0_0_38425383_21311.c:13:20: error: expected identifier or '(' before '/' token
 int next_table[M]; //next表
                    ^
0_0_38425383_21311.c:13:20: error: stray '\261' in program
0_0_38425383_21311.c:13:20: error: stray '\355' in program
0_0_38425383_21311.c:19:1: error: expected identifier or '(' before '/' token
 //构造next表
 ^
0_0_38425383_21311.c:19:1: error: stray '\271' in program
0_0_38425383_21311.c:19:1: error: stray '\271' in program
0_0_38425383_21311.c:19:1: error: stray '\324' in program
0_0_38425383_21311.c:19:1: error: stray '\354' in program
0_0_38425383_21311.c:19:1: error: stray '\261' in program
0_0_38425383_21311.c:19:1: error: stray '\355' in program
0_0_38425383_21311.c:22:5: error: stray '\326' in program
     int j = 0;//主串指针
     ^
0_0_38425383_21311.c:22:5: error: stray '\367' in program
0_0_38425383_21311.c:22:5: error: stray '\264' in program
0_0_38425383_21311.c:22:5: error: stray '\256' in program
0_0_38425383_21311.c:22:5: error: stray '\326' in program
0_0_38425383_21311.c:22:5: error: stray '\270' in program
0_0_38425383_21311.c:22:5: error: stray '\325' in program
0_0_38425383_21311.c:22:5: error: stray '\353' in program
0_0_38425383_21311.c:23:5: error: stray '\304' in program
     int t = -1;//模式串指针
     ^
0_0_38425383_21311.c:23:5: error: stray '\243' in program
0_0_38425383_21311.c:23:5: error: stray '\312' in program
0_0_38425383_21311.c:23:5: error: stray '\275' in program
0_0_38425383_21311.c:23:5: error: stray '\264' in program
0_0_38425383_21311.c:23:5: error: stray '\256' in program
0_0_38425383_21311.c:23:5: error: stray '\326' in program
0_0_38425383_21311.c:23:5: error: stray '\270' in program
0_0_38425383_21311.c:23:5: error: stray '\325' in program
0_0_38425383_21311.c:23:5: error: stray '\353' in program
0_0_38425383_21311.c: In function 'kmp':
0_0_38425383_21311.c:34:5: error: expected expression before '/' token
     // str1 是主串
     ^
0_0_38425383_21311.c:34:5: error: stray '\312' in program
0_0_38425383_21311.c:34:5: error: stray '\307' in program
0_0_38425383_21311.c:34:5: error: stray '\326' in program
0_0_38425383_21311.c:34:5: error: stray '\367' in program
0_0_38425383_21311.c:34:5: error: stray '\264' in program
0_0_38425383_21311.c:34:5: error: stray '\256' in program
0_0_38425383_21311.c:35:5: error: stray '\312' in program
     // str2 是模式串
     ^
0_0_38425383_21311.c:35:5: error: stray '\307' in program
0_0_38425383_21311.c:35:5: error: stray '\304' in program
0_0_38425383_21311.c:35:5: error: stray '\243' in program
0_0_38425383_21311.c:35:5: error: stray '\312' in program
0_0_38425383_21311.c:35:5: error: stray '\275' in program
0_0_38425383_21311.c:35:5: error: stray '\264' in program
0_0_38425383_21311.c:35:5: error: stray '\256' in program
0_0_38425383_21311.c:39:12: error: 'j' undeclared (first use in this function)
     while( j < len_str2 && i < len_str1) {
            ^
0_0_38425383_21311.c:39:12: note: each undeclared identifier is reported only once for each function it appears in
0_0_38425383_21311.c:39:28: error: 'i' undeclared (first use in this function)
     while( j < len_str2 && i < len_str1) {
                            ^
0_0_38425383_21311.c: In function 'main':
0_0_38425383_21311.c:56:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 0; i < cnt; i++){
     ^
0_0_38425383_21311.c:56:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_38425383_21311.c:58:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j = 0; j < n; j++){
         ^
0_0_38425383_21311.c:62:17: error: redefinition of 'j'
         for(int j = 0; j < m; j++){
                 ^
0_0_38425383_21311.c:58:17: note: previous definition of 'j' was here
         for(int j = 0; j < n; j++){
                 ^
0_0_38425383_21311.c:62:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j = 0; j < m; j++){
         ^


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-15 06:23:08, Gzip enabled