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_29336711_24740\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_29336711_24740\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_29336711_24740\Main.java:3: 错误: 非法字符: '#'
#ifdef LOCAL
^
0_0_29336711_24740\Main.java:4: 错误: 非法字符: '#'
#define debug(x) cout<<#x<<" = "<<(x)<<endl;
^
0_0_29336711_24740\Main.java:4: 错误: 非法字符: '#'
#define debug(x) cout<<#x<<" = "<<(x)<<endl;
                       ^
0_0_29336711_24740\Main.java:5: 错误: 非法字符: '#'
#else
^
0_0_29336711_24740\Main.java:6: 错误: 非法字符: '#'
#define debug(x) 1;
^
0_0_29336711_24740\Main.java:6: 错误: 需要class, interface或enum
#define debug(x) 1;
        ^
0_0_29336711_24740\Main.java:7: 错误: 非法字符: '#'
#endif
^
0_0_29336711_24740\Main.java:9: 错误: 非法字符: '#'
#define lson id<<1,l,mid
^
0_0_29336711_24740\Main.java:9: 错误: 需要class, interface或enum
#define lson id<<1,l,mid
        ^
0_0_29336711_24740\Main.java:10: 错误: 非法字符: '#'
#define rson id<<1|1,mid+1,r
^
0_0_29336711_24740\Main.java:11: 错误: 非法字符: '#'
#define lowbit(x) x&-x
^
0_0_29336711_24740\Main.java:12: 错误: 非法字符: '#'
#define mp make_pair
^
0_0_29336711_24740\Main.java:13: 错误: 非法字符: '#'
#define pb push_back
^
0_0_29336711_24740\Main.java:15: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_29336711_24740\Main.java:16: 错误: 需要class, interface或enum
typedef pair<int, int> pii;
^
0_0_29336711_24740\Main.java:17: 错误: 需要class, interface或enum
const int MOD = 1e9 + 7;
^
0_0_29336711_24740\Main.java:18: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_29336711_24740\Main.java:19: 错误: 需要class, interface或enum
const ll INFLL = 0x3f3f3f3f3f3f3f3fll;
^
0_0_29336711_24740\Main.java:20: 错误: 需要class, interface或enum
const int MAXN = 2e6 + 5;
^
0_0_29336711_24740\Main.java:21: 错误: 需要class, interface或enum
const int maxn = 2e6 + 100;
^
0_0_29336711_24740\Main.java:24: 错误: 需要class, interface或enum
const int SIGMA_SIZE = 26;
^
0_0_29336711_24740\Main.java:25: 错误: 需要class, interface或enum
const int MAXNODE = 100000 * 50;
^
0_0_29336711_24740\Main.java:26: 错误: 需要class, interface或enum
const int MAXS = 150 + 10;
^
0_0_29336711_24740\Main.java:27: 错误: 需要class, interface或enum
struct ACautomata {
^
0_0_29336711_24740\Main.java:30: 错误: 需要class, interface或enum
    int f[MAXNODE];    // fail函数
    ^
0_0_29336711_24740\Main.java:31: 错误: 需要class, interface或enum
    int val[MAXNODE];  // 每个字符串的结尾结点都有一个非0的val
    ^
0_0_29336711_24740\Main.java:32: 错误: 需要class, interface或enum
    int last[MAXNODE]; // 输出链表的下一个结点
    ^
0_0_29336711_24740\Main.java:33: 错误: 需要class, interface或enum
    int sz;
    ^
0_0_29336711_24740\Main.java:34: 错误: 需要class, interface或enum
    int d[MAXNODE];
    ^
0_0_29336711_24740\Main.java:35: 错误: 需要class, interface或enum
    void init() {
    ^
0_0_29336711_24740\Main.java:37: 错误: 需要class, interface或enum
        memset (ch[0], 0, sizeof (ch[0]) );
        ^
0_0_29336711_24740\Main.java:38: 错误: 需要class, interface或enum
        memset(d, 0, sizeof(d));
        ^
0_0_29336711_24740\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_29336711_24740\Main.java:44: 错误: 需要class, interface或enum
    }
    ^
0_0_29336711_24740\Main.java:49: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
        ^
0_0_29336711_24740\Main.java:49: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                        ^
0_0_29336711_24740\Main.java:49: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                               ^
0_0_29336711_24740\Main.java:52: 错误: 需要class, interface或enum
            if (!ch[u][c]) {
            ^
0_0_29336711_24740\Main.java:54: 错误: 需要class, interface或enum
                val[sz] = 0;
                ^
0_0_29336711_24740\Main.java:55: 错误: 需要class, interface或enum
                ch[u][c] = sz++;
                ^
0_0_29336711_24740\Main.java:56: 错误: 需要class, interface或enum
            }
            ^
0_0_29336711_24740\Main.java:60: 错误: 需要class, interface或enum
        }
        ^
0_0_29336711_24740\Main.java:62: 错误: 需要class, interface或enum
    }
    ^
0_0_29336711_24740\Main.java:68: 错误: 需要class, interface或enum
        }
        ^
0_0_29336711_24740\Main.java:74: 错误: 需要class, interface或enum
        int j = 0; // 当前结点编号,初始为根结点
        ^
0_0_29336711_24740\Main.java:75: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) { // 文本串当前指针
        ^
0_0_29336711_24740\Main.java:75: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) { // 文本串当前指针
                        ^
0_0_29336711_24740\Main.java:75: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) { // 文本串当前指针
                               ^
0_0_29336711_24740\Main.java:77: 错误: 需要class, interface或enum
            j = ch[j][c];
            ^
0_0_29336711_24740\Main.java:78: 错误: 需要class, interface或enum
            if (val[j]) print (i, j);
            ^
0_0_29336711_24740\Main.java:79: 错误: 需要class, interface或enum
            else if (last[j]) print (i, last[j]); // 找到了!
            ^
0_0_29336711_24740\Main.java:80: 错误: 需要class, interface或enum
        }
        ^
0_0_29336711_24740\Main.java:86: 错误: 需要class, interface或enum
        f[0] = 0;
        ^
0_0_29336711_24740\Main.java:88: 错误: 需要class, interface或enum
        for (int c = 0; c < SIGMA_SIZE; c++) {
        ^
0_0_29336711_24740\Main.java:88: 错误: 需要class, interface或enum
        for (int c = 0; c < SIGMA_SIZE; c++) {
                        ^
0_0_29336711_24740\Main.java:88: 错误: 需要class, interface或enum
        for (int c = 0; c < SIGMA_SIZE; c++) {
                                        ^
0_0_29336711_24740\Main.java:90: 错误: 需要class, interface或enum
            if (u) {
            ^
0_0_29336711_24740\Main.java:92: 错误: 需要class, interface或enum
                q.push (u);
                ^
0_0_29336711_24740\Main.java:93: 错误: 需要class, interface或enum
                last[u] = 0;
                ^
0_0_29336711_24740\Main.java:94: 错误: 需要class, interface或enum
            }
            ^
0_0_29336711_24740\Main.java:99: 错误: 需要class, interface或enum
            q.pop();
            ^
0_0_29336711_24740\Main.java:100: 错误: 需要class, interface或enum
            for (int c = 0; c < SIGMA_SIZE; c++) {
            ^
0_0_29336711_24740\Main.java:100: 错误: 需要class, interface或enum
            for (int c = 0; c < SIGMA_SIZE; c++) {
                            ^
0_0_29336711_24740\Main.java:100: 错误: 需要class, interface或enum
            for (int c = 0; c < SIGMA_SIZE; c++) {
                                            ^
0_0_29336711_24740\Main.java:102: 错误: 需要class, interface或enum
                if (!u) {
                ^
0_0_29336711_24740\Main.java:104: 错误: 需要class, interface或enum
                    continue;
                    ^
0_0_29336711_24740\Main.java:105: 错误: 需要class, interface或enum
                }
                ^
0_0_29336711_24740\Main.java:107: 错误: 需要class, interface或enum
                int v = f[r];
                ^
0_0_29336711_24740\Main.java:108: 错误: 需要class, interface或enum
                while (v && !ch[v][c]) v = f[v];
                ^
0_0_29336711_24740\Main.java:109: 错误: 需要class, interface或enum
                f[u] = ch[v][c];
                ^
0_0_29336711_24740\Main.java:110: 错误: 需要class, interface或enum
                last[u] = val[f[u]] ? f[u] : last[f[u]];
                ^
0_0_29336711_24740\Main.java:111: 错误: 需要class, interface或enum
            }
            ^
0_0_29336711_24740\Main.java:116: 错误: 需要class, interface或enum
        int now = 0;
        ^
0_0_29336711_24740\Main.java:117: 错误: 需要class, interface或enum
        int ans =0;
        ^
0_0_29336711_24740\Main.java:118: 错误: 需要class, interface或enum
        for(int i=0; i<len; i++) {
        ^
0_0_29336711_24740\Main.java:118: 错误: 需要class, interface或enum
        for(int i=0; i<len; i++) {
                     ^
0_0_29336711_24740\Main.java:118: 错误: 需要class, interface或enum
        for(int i=0; i<len; i++) {
                            ^
0_0_29336711_24740\Main.java:120: 错误: 需要class, interface或enum
            int tmp = now;
            ^
0_0_29336711_24740\Main.java:121: 错误: 需要class, interface或enum
            while(now) {
            ^
0_0_29336711_24740\Main.java:124: 错误: 需要class, interface或enum
                    val[now]=0;
                    ^
0_0_29336711_24740\Main.java:125: 错误: 需要class, interface或enum
                }
                ^
0_0_29336711_24740\Main.java:127: 错误: 需要class, interface或enum
            }
            ^
0_0_29336711_24740\Main.java:129: 错误: 需要class, interface或enum
        }
        ^
0_0_29336711_24740\Main.java:131: 错误: 需要class, interface或enum
    }
    ^
0_0_29336711_24740\Main.java:134: 错误: 需要class, interface或enum
char s[MAXN];
^
0_0_29336711_24740\Main.java:138: 错误: 需要class, interface或enum
int main() {
^
0_0_29336711_24740\Main.java:140:


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 16:09:32, Gzip enabled