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_31669668_30839\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_31669668_30839\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_31669668_30839\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_31669668_30839\Main.java:3: 错误: 非法字符: '#'
#define sset(x) memset(x,0,sizeof x)
^
0_0_31669668_30839\Main.java:4: 错误: 非法字符: '#'
#define M 1000010
^
0_0_31669668_30839\Main.java:6: 错误: 非法字符: '#'
#define add(x,y,c) {to[++cnt]=head[x];lnk[cnt]=y;val[cnt]=c;head[x]=cnt;}
^
0_0_31669668_30839\Main.java:6: 错误: 需要class, interface或enum
#define add(x,y,c) {to[++cnt]=head[x];lnk[cnt]=y;val[cnt]=c;head[x]=cnt;}
                                      ^
0_0_31669668_30839\Main.java:6: 错误: 需要class, interface或enum
#define add(x,y,c) {to[++cnt]=head[x];lnk[cnt]=y;val[cnt]=c;head[x]=cnt;}
                                                 ^
0_0_31669668_30839\Main.java:6: 错误: 需要class, interface或enum
#define add(x,y,c) {to[++cnt]=head[x];lnk[cnt]=y;val[cnt]=c;head[x]=cnt;}
                                                            ^
0_0_31669668_30839\Main.java:6: 错误: 需要class, interface或enum
#define add(x,y,c) {to[++cnt]=head[x];lnk[cnt]=y;val[cnt]=c;head[x]=cnt;}
                                                                        ^
0_0_31669668_30839\Main.java:8: 错误: 需要class, interface或enum
char s[M];
^
0_0_31669668_30839\Main.java:9: 错误: 需要class, interface或enum
void bfs()
^
0_0_31669668_30839\Main.java:11: 错误: 需要class, interface或enum
    int l=1;int r=1;
            ^
0_0_31669668_30839\Main.java:12: 错误: 需要class, interface或enum
    q[l]=1;
    ^
0_0_31669668_30839\Main.java:13: 错误: 需要class, interface或enum
    while(l<=r)
    ^
0_0_31669668_30839\Main.java:15: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++)
                    ^
0_0_31669668_30839\Main.java:15: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++)
                         ^
0_0_31669668_30839\Main.java:18: 错误: 需要class, interface或enum
            for(j=nxt[q[l]],k=lnk[j][i];j!=1&&(k==0);j=nxt[j],k=lnk[j][i]);
                                        ^
0_0_31669668_30839\Main.java:18: 错误: 需要class, interface或enum
            for(j=nxt[q[l]],k=lnk[j][i];j!=1&&(k==0);j=nxt[j],k=lnk[j][i]);
                                                     ^
0_0_31669668_30839\Main.java:19: 错误: 需要class, interface或enum
            if(k!=lnk[q[l]][i]&&k!=0)nxt[lnk[q[l]][i]]=k;q[++r]=lnk[q[l]][i];
            ^
0_0_31669668_30839\Main.java:19: 错误: 需要class, interface或enum
            if(k!=lnk[q[l]][i]&&k!=0)nxt[lnk[q[l]][i]]=k;q[++r]=lnk[q[l]][i];
                                                         ^
0_0_31669668_30839\Main.java:20: 错误: 需要class, interface或enum
        }
        ^
0_0_31669668_30839\Main.java:22: 错误: 需要class, interface或enum
    }
    ^
0_0_31669668_30839\Main.java:28: 错误: 需要class, interface或enum
    while(T--)
    ^
0_0_31669668_30839\Main.java:30: 错误: 需要class, interface或enum
        ans=0;sset(lnk);
              ^
0_0_31669668_30839\Main.java:31: 错误: 需要class, interface或enum
        sset(q);cnt=0;sset(num);
        ^
0_0_31669668_30839\Main.java:31: 错误: 需要class, interface或enum
        sset(q);cnt=0;sset(num);
                ^
0_0_31669668_30839\Main.java:31: 错误: 需要class, interface或enum
        sset(q);cnt=0;sset(num);
                      ^
0_0_31669668_30839\Main.java:32: 错误: 需要class, interface或enum
        scanf("%d",&n);
        ^
0_0_31669668_30839\Main.java:33: 错误: 需要class, interface或enum
        num[1]=0;tot=1;
        ^
0_0_31669668_30839\Main.java:33: 错误: 需要class, interface或enum
        num[1]=0;tot=1;
                 ^
0_0_31669668_30839\Main.java:34: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_31669668_30839\Main.java:34: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_31669668_30839\Main.java:34: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_31669668_30839\Main.java:37: 错误: 需要class, interface或enum
            m=strlen(s);
            ^
0_0_31669668_30839\Main.java:38: 错误: 需要class, interface或enum
            now=1;
            ^
0_0_31669668_30839\Main.java:39: 错误: 需要class, interface或enum
            for(j=0;j<m;j++)
            ^
0_0_31669668_30839\Main.java:39: 错误: 需要class, interface或enum
            for(j=0;j<m;j++)
                    ^
0_0_31669668_30839\Main.java:39: 错误: 需要class, interface或enum
            for(j=0;j<m;j++)
                        ^
0_0_31669668_30839\Main.java:42: 错误: 需要class, interface或enum
                if(lnk[now][s[j]-'a']){now=lnk[now][s[j]-'a'];}
                ^
0_0_31669668_30839\Main.java:42: 错误: 需要class, interface或enum
                if(lnk[now][s[j]-'a']){now=lnk[now][s[j]-'a'];}
                                                              ^
0_0_31669668_30839\Main.java:43: 错误: 需要class, interface或enum
                else{tot++;lnk[now][s[j]-'a']=tot;now=tot;}
                           ^
0_0_31669668_30839\Main.java:43: 错误: 需要class, interface或enum
                else{tot++;lnk[now][s[j]-'a']=tot;now=tot;}
                                                  ^
0_0_31669668_30839\Main.java:43: 错误: 需要class, interface或enum
                else{tot++;lnk[now][s[j]-'a']=tot;now=tot;}
                                                          ^
0_0_31669668_30839\Main.java:46: 错误: 需要class, interface或enum
        }
        ^
0_0_31669668_30839\Main.java:47: 错误: 需要class, interface或enum
        for(int i=1;i<=tot;i++)nxt[i]=1;
                    ^
0_0_31669668_30839\Main.java:47: 错误: 需要class, interface或enum
        for(int i=1;i<=tot;i++)nxt[i]=1;
                           ^
0_0_31669668_30839\Main.java:48: 错误: 需要class, interface或enum
        bfs();
        ^
0_0_31669668_30839\Main.java:49: 错误: 需要class, interface或enum
        scanf("%s",s);m=strlen(s);
        ^
0_0_31669668_30839\Main.java:49: 错误: 需要class, interface或enum
        scanf("%s",s);m=strlen(s);
                      ^
0_0_31669668_30839\Main.java:50: 错误: 需要class, interface或enum
        j=1;
        ^
0_0_31669668_30839\Main.java:51: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++)
        ^
0_0_31669668_30839\Main.java:51: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++)
                    ^
0_0_31669668_30839\Main.java:51: 错误: 需要class, interface或enum
        for(int i=0;i<m;i++)
                        ^
0_0_31669668_30839\Main.java:53: 错误: 需要class, interface或enum
            for(k=lnk[j][s[i]-'a'];k==0&&j!=1;j=nxt[j],k=lnk[j][s[i]-'a']);
                                   ^
0_0_31669668_30839\Main.java:53: 错误: 需要class, interface或enum
            for(k=lnk[j][s[i]-'a'];k==0&&j!=1;j=nxt[j],k=lnk[j][s[i]-'a']);
                                              ^
0_0_31669668_30839\Main.java:54: 错误: 需要class, interface或enum
            if(k!=0)j=k;else j=1;
            ^
0_0_31669668_30839\Main.java:54: 错误: 需要class, interface或enum
            if(k!=0)j=k;else j=1;
                        ^
0_0_31669668_30839\Main.java:55: 错误: 需要class, interface或enum
            for(k=j;k!=1;k=nxt[k])ans+=num[k],num[k]=0;
            ^
0_0_31669668_30839\Main.java:55: 错误: 需要class, interface或enum
            for(k=j;k!=1;k=nxt[k])ans+=num[k],num[k]=0;
                    ^
0_0_31669668_30839\Main.java:55: 错误: 需要class, interface或enum
            for(k=j;k!=1;k=nxt[k])ans+=num[k],num[k]=0;
                         ^
0_0_31669668_30839\Main.java:56: 错误: 需要class, interface或enum
        }
        ^
0_0_31669668_30839\Main.java:58: 错误: 需要class, interface或enum
    }
    ^
63 个错误


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 06:10:41, Gzip enabled