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_22124370_11056\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_22124370_11056\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_22124370_11056\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_22124370_11056\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_22124370_11056\Main.java:4: 错误: 非法字符: '#'
#include <cmath>
^
0_0_22124370_11056\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_22124370_11056\Main.java:6: 错误: 非法字符: '#'
#include <queue>
^
0_0_22124370_11056\Main.java:7: 错误: 非法字符: '#'
#include <map>
^
0_0_22124370_11056\Main.java:9: 错误: 需要class, interface或enum
const int maxn = 1e5 * 6;
^
0_0_22124370_11056\Main.java:10: 错误: 需要class, interface或enum
struct Trie
^
0_0_22124370_11056\Main.java:13: 错误: 需要class, interface或enum
    int root, L;
    ^
0_0_22124370_11056\Main.java:14: 错误: 需要class, interface或enum
    int newnode()
    ^
0_0_22124370_11056\Main.java:16: 错误: 需要class, interface或enum
        for(int i = 0; i < 26; i ++)
                       ^
0_0_22124370_11056\Main.java:16: 错误: 需要class, interface或enum
        for(int i = 0; i < 26; i ++)
                               ^
0_0_22124370_11056\Main.java:19: 错误: 需要class, interface或enum
        }
        ^
0_0_22124370_11056\Main.java:21: 错误: 需要class, interface或enum
        return L - 1;
        ^
0_0_22124370_11056\Main.java:22: 错误: 需要class, interface或enum
    }
    ^
0_0_22124370_11056\Main.java:26: 错误: 需要class, interface或enum
        root = newnode();
        ^
0_0_22124370_11056\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22124370_11056\Main.java:31: 错误: 需要class, interface或enum
        int now = root;
        ^
0_0_22124370_11056\Main.java:32: 错误: 需要class, interface或enum
        for(int i =  0; i < len ; i ++)
        ^
0_0_22124370_11056\Main.java:32: 错误: 需要class, interface或enum
        for(int i =  0; i < len ; i ++)
                        ^
0_0_22124370_11056\Main.java:32: 错误: 需要class, interface或enum
        for(int i =  0; i < len ; i ++)
                                  ^
0_0_22124370_11056\Main.java:36: 错误: 需要class, interface或enum
            now = nxt[now][buf[i] - 'a'];
            ^
0_0_22124370_11056\Main.java:37: 错误: 需要class, interface或enum
        }
        ^
0_0_22124370_11056\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_22124370_11056\Main.java:43: 错误: 需要class, interface或enum
        fail[root] = root;
        ^
0_0_22124370_11056\Main.java:44: 错误: 需要class, interface或enum
        for(int i = 0; i < 26; i ++)
        ^
0_0_22124370_11056\Main.java:44: 错误: 需要class, interface或enum
        for(int i = 0; i < 26; i ++)
                       ^
0_0_22124370_11056\Main.java:44: 错误: 需要class, interface或enum
        for(int i = 0; i < 26; i ++)
                               ^
0_0_22124370_11056\Main.java:48: 错误: 需要class, interface或enum
            else
            ^
0_0_22124370_11056\Main.java:51: 错误: 需要class, interface或enum
                Q.push(nxt[root][i]);
                ^
0_0_22124370_11056\Main.java:52: 错误: 需要class, interface或enum
            }
            ^
0_0_22124370_11056\Main.java:57: 错误: 需要class, interface或enum
            Q.pop();
            ^
0_0_22124370_11056\Main.java:58: 错误: 需要class, interface或enum
            for(int i = 0; i < 26; i ++)
            ^
0_0_22124370_11056\Main.java:58: 错误: 需要class, interface或enum
            for(int i = 0; i < 26; i ++)
                           ^
0_0_22124370_11056\Main.java:58: 错误: 需要class, interface或enum
            for(int i = 0; i < 26; i ++)
                                   ^
0_0_22124370_11056\Main.java:63: 错误: 需要class, interface或enum
                }
                ^
0_0_22124370_11056\Main.java:67: 错误: 需要class, interface或enum
                    Q.push(nxt[now][i]);
                    ^
0_0_22124370_11056\Main.java:68: 错误: 需要class, interface或enum
                }
                ^
0_0_22124370_11056\Main.java:75: 错误: 需要class, interface或enum
        int now = root;
        ^
0_0_22124370_11056\Main.java:76: 错误: 需要class, interface或enum
        int res = 0;
        ^
0_0_22124370_11056\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 0; i < len; i ++)
        ^
0_0_22124370_11056\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 0; i < len; i ++)
                       ^
0_0_22124370_11056\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 0; i < len; i ++)
                                ^
0_0_22124370_11056\Main.java:80: 错误: 需要class, interface或enum
            int temp = now;
            ^
0_0_22124370_11056\Main.java:81: 错误: 需要class, interface或enum
            while(temp != root)
            ^
0_0_22124370_11056\Main.java:84: 错误: 需要class, interface或enum
                end[temp] = 0;
                ^
0_0_22124370_11056\Main.java:85: 错误: 需要class, interface或enum
                temp = fail[temp];
                ^
0_0_22124370_11056\Main.java:86: 错误: 需要class, interface或enum
            }
            ^
0_0_22124370_11056\Main.java:90: 错误: 需要class, interface或enum
    }
    ^
0_0_22124370_11056\Main.java:93: 错误: 需要class, interface或enum
struct node
^
0_0_22124370_11056\Main.java:96: 错误: 需要class, interface或enum
}p[1010];
^
0_0_22124370_11056\Main.java:97: 错误: 需要class, interface或enum
char buf[100010];
^
0_0_22124370_11056\Main.java:98: 错误: 需要class, interface或enum
char a[100010];
^
0_0_22124370_11056\Main.java:99: 错误: 需要class, interface或enum
Trie ac;
^
0_0_22124370_11056\Main.java:101: 错误: 需要class, interface或enum
void kmp_pre(char x[], int m, int nxt[])
^
0_0_22124370_11056\Main.java:104: 错误: 需要class, interface或enum
    j = nxt[0]=-1;
    ^
0_0_22124370_11056\Main.java:105: 错误: 需要class, interface或enum
    i = 0;
    ^
0_0_22124370_11056\Main.java:106: 错误: 需要class, interface或enum
    while(i < m)
    ^
0_0_22124370_11056\Main.java:110: 错误: 需要class, interface或enum
        nxt[++i] = ++j;
        ^
0_0_22124370_11056\Main.java:111: 错误: 需要class, interface或enum
    }
    ^
0_0_22124370_11056\Main.java:129: 错误: 需要class, interface或enum
int KMP_Count(char x[], int m, char y[], int n)
^
0_0_22124370_11056\Main.java:132: 错误: 需要class, interface或enum
    int ans = 0;
    ^
0_0_22124370_11056\Main.java:133: 错误: 需要class, interface或enum
    kmp_pre(x, m, nxt);
    ^
0_0_22124370_11056\Main.java:134: 错误: 需要class, interface或enum
    i = j = 0;
    ^
0_0_22124370_11056\Main.java:135: 错误: 需要class, interface或enum
    while(i < n)
    ^
0_0_22124370_11056\Main.java:139: 错误: 需要class, interface或enum
        i ++; 
        ^
0_0_22124370_11056\Main.java:140: 错误: 需要class, interface或enum
        j ++;
        ^
0_0_22124370_11056\Main.java:141: 错误: 需要class, interface或enum
        if(j >= m)
        ^
0_0_22124370_11056\Main.java:144: 错误: 需要class, interface或enum
            break;
            ^
0_0_22124370_11056\Main.java:145: 错误: 需要class, interface或enum
            j = nxt[j];
            ^
0_0_22124370_11056\Main.java:146: 错误: 需要class, interface或enum
        }
        ^
0_0_22124370_11056\Main.java:149: 错误: 需要class, interface或enum
}
^
0_0_22124370_11056\Main.java:153: 错误: 需要class, interface或enum
    int n;
    ^
0_0_22124370_11056\Main.java:155: 错误: 需要class, interface或enum
    scanf("%d", &t);
    ^
0_0_22124370_11056\Main.java:156: 错误: 需要class, interface或enum
    while(t --)
    ^
0_0_22124370_11056\Main.java:159: 错误: 需要class, interface或enum
        ac.init();
        ^
0_0_22124370_11056\Main.java:160: 错误: 需要class, interface或enum
       int len;
       ^
0_0_22124370_11056\Main.java:161: 错误: 需要class, interface或enum
       len = -1;
       ^
0_0_22124370_11056\Main.java:162: 错误: 需要class, interface或enum
       int len1;
       ^
0_0_22124370_11056\Main.java:163: 错误: 需要class, interface或enum
       int cmplen = 10;
       ^
0_0_22124370_11056\Main.java:164: 错误: 需要class, interface或enum
       int cc = 0;
       ^
0_0_22124370_11056\Main.java:165: 错误: 需要class, interface或enum
        for(int i = 0; i < n; i ++)
        ^
0_0_22124370_11056\Main.java:165: 错误: 需要class, interface或enum
        for(int i = 0; i < n; i ++)
                       ^
0_0_22124370_11056\Main.java:165: 错误: 需要class, interface或enum
        for(int i = 0; i < n; i ++)
                              ^
0_0_22124370_11056\Main.java:168: 错误: 需要class, interface或enum
            len1 = strlen(buf);
            ^
0_0_22124370_11056\Main.java:170: 错误: 需要class, interface或enum
            if(len1 >= cmplen)
            ^
0_0_22124370_11056\Main.java:173: 错误: 需要class, interface或enum
            }
            ^
0_0_22124370_11056\Main.java:179: 错误: 需要class, interface或enum
            }
            ^
0_0_22124370_11056\Main.java:185: 错误: 需要class, interface或enum
                strcpy(a, buf);
                ^
0_0_22124370_11056\Main.java:186: 错误: 需要class, interface或enum
            }
            ^
0_0_22124370_11056\Main.java:


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-30 02:47:31, Gzip enabled