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_39786459_23545\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_39786459_23545\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_39786459_23545\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_39786459_23545\Main.java:5: 错误: 需要class, interface或enum
const int MAXN=1e3+10;
^
0_0_39786459_23545\Main.java:6: 错误: 需要class, interface或enum
int next[MAXN],LS,LT;
^
0_0_39786459_23545\Main.java:7: 错误: 需要class, interface或enum
char S[MAXN],T[MAXN];
^
0_0_39786459_23545\Main.java:9: 错误: 需要class, interface或enum
void Getnext(char T[],int next[])
^
0_0_39786459_23545\Main.java:12: 错误: 需要class, interface或enum
    next[1]=0;//next[1]没有赋值 最好加上 
    ^
0_0_39786459_23545\Main.java:13: 错误: 需要class, interface或enum
    i=1; j=0; //第一个已经赋值  
    ^
0_0_39786459_23545\Main.java:13: 错误: 需要class, interface或enum
    i=1; j=0; //第一个已经赋值  
         ^
0_0_39786459_23545\Main.java:14: 错误: 需要class, interface或enum
    while(i<LT) //具有预判功能 所以没有== 
    ^
0_0_39786459_23545\Main.java:18: 错误: 需要class, interface或enum
            ++i; ++j;
                 ^
0_0_39786459_23545\Main.java:19: 错误: 需要class, interface或enum
            if(T[i]!=T[j]) //预判 
            ^
0_0_39786459_23545\Main.java:21: 错误: 需要class, interface或enum
            else next[i]=next[j];//相同时指向同一个前缀 
            ^
0_0_39786459_23545\Main.java:22: 错误: 需要class, interface或enum
        }
        ^
0_0_39786459_23545\Main.java:24: 错误: 需要class, interface或enum
    }
    ^
0_0_39786459_23545\Main.java:30: 错误: 需要class, interface或enum
    while(i<=LS)//没有预判 
    ^
0_0_39786459_23545\Main.java:36: 错误: 需要class, interface或enum
                ++cnt; j=0;//都从新的位置开始继续判断 
                       ^
0_0_39786459_23545\Main.java:37: 错误: 需要class, interface或enum
            }
            ^
0_0_39786459_23545\Main.java:38: 错误: 需要class, interface或enum
            ++i; ++j;
                 ^
0_0_39786459_23545\Main.java:39: 错误: 需要class, interface或enum
        }
        ^
0_0_39786459_23545\Main.java:41: 错误: 需要class, interface或enum
    }
    ^
0_0_39786459_23545\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_39786459_23545\Main.java:50: 错误: 需要class, interface或enum
        LT=strlen(T+1); LS=strlen(S+1); //从输入的开始 
        ^
0_0_39786459_23545\Main.java:50: 错误: 需要class, interface或enum
        LT=strlen(T+1); LS=strlen(S+1); //从输入的开始 
                        ^
0_0_39786459_23545\Main.java:51: 错误: 需要class, interface或enum
        Getnext(T,next);
        ^
0_0_39786459_23545\Main.java:52: 错误: 需要class, interface或enum
        int ans=KMP(S,T);
        ^
0_0_39786459_23545\Main.java:53: 错误: 需要class, interface或enum
        printf("%d\n",ans);
        ^
0_0_39786459_23545\Main.java:54: 错误: 需要class, interface或enum
    }
    ^
0_0_39786459_23545\Main.java:56: 错误: 需要class, interface或enum
}
^
30 个错误


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-26 10:57:00, Gzip enabled