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_38506327_28096\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_38506327_28096\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_38506327_28096\Main.java:4: 错误: 需要class, interface或enum
typedef pair<int, int> pii;
^
0_0_38506327_28096\Main.java:5: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_38506327_28096\Main.java:6: 错误: 需要class, interface或enum
const int N = 3e3 + 5;
^
0_0_38506327_28096\Main.java:7: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_38506327_28096\Main.java:8: 错误: 需要class, interface或enum
struct SAM
^
0_0_38506327_28096\Main.java:11: 错误: 需要class, interface或enum
    struct node
    ^
0_0_38506327_28096\Main.java:14: 错误: 需要class, interface或enum
    } tree[N << 1];
    ^
0_0_38506327_28096\Main.java:16: 错误: 需要class, interface或enum
    SAM()
    ^
0_0_38506327_28096\Main.java:19: 错误: 需要class, interface或enum
        add_node(0);
        ^
0_0_38506327_28096\Main.java:20: 错误: 需要class, interface或enum
    }
    ^
0_0_38506327_28096\Main.java:25: 错误: 需要class, interface或enum
        tree[tot].fa = -1;
        ^
0_0_38506327_28096\Main.java:26: 错误: 需要class, interface或enum
        memset(tree[tot].son, 0, sizeof tree[tot].son);
        ^
0_0_38506327_28096\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_38506327_28096\Main.java:32: 错误: 需要class, interface或enum
        add_node(0);
        ^
0_0_38506327_28096\Main.java:33: 错误: 需要class, interface或enum
    }
    ^
0_0_38506327_28096\Main.java:38: 错误: 需要class, interface或enum
        int p = last, cur = tot;
        ^
0_0_38506327_28096\Main.java:39: 错误: 需要class, interface或enum
        while (p != -1 and !tree[p].son[c])
        ^
0_0_38506327_28096\Main.java:42: 错误: 需要class, interface或enum
            p = tree[p].fa;
            ^
0_0_38506327_28096\Main.java:43: 错误: 需要class, interface或enum
        }
        ^
0_0_38506327_28096\Main.java:46: 错误: 需要class, interface或enum
        else
        ^
0_0_38506327_28096\Main.java:49: 错误: 需要class, interface或enum
            if (tree[q].len == tree[p].len + 1)
            ^
0_0_38506327_28096\Main.java:51: 错误: 需要class, interface或enum
            else
            ^
0_0_38506327_28096\Main.java:54: 错误: 需要class, interface或enum
                int nq = tot;
                ^
0_0_38506327_28096\Main.java:55: 错误: 需要class, interface或enum
                memcpy(tree[nq].son, tree[q].son, sizeof tree[q].son);
                ^
0_0_38506327_28096\Main.java:56: 错误: 需要class, interface或enum
                tree[nq].fa = tree[q].fa;
                ^
0_0_38506327_28096\Main.java:57: 错误: 需要class, interface或enum
                tree[cur].fa = tree[q].fa = nq;
                ^
0_0_38506327_28096\Main.java:58: 错误: 需要class, interface或enum
                while (p >= 0 and tree[p].son[c] == q)
                ^
0_0_38506327_28096\Main.java:61: 错误: 需要class, interface或enum
                }
                ^
0_0_38506327_28096\Main.java:65: 错误: 需要class, interface或enum
    }
    ^
0_0_38506327_28096\Main.java:68: 错误: 需要class, interface或enum
char s[N];
^
0_0_38506327_28096\Main.java:69: 错误: 需要class, interface或enum
int ans[N][N];
^
0_0_38506327_28096\Main.java:71: 错误: 需要class, interface或enum
void solve() {
^
0_0_38506327_28096\Main.java:73: 错误: 需要class, interface或enum
    cin >> s;
    ^
0_0_38506327_28096\Main.java:74: 错误: 需要class, interface或enum
    n = strlen(s);
    ^
0_0_38506327_28096\Main.java:75: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
    ^
0_0_38506327_28096\Main.java:75: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
                   ^
0_0_38506327_28096\Main.java:75: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
                          ^
0_0_38506327_28096\Main.java:78: 错误: 需要class, interface或enum
        for(int j = i; j < n; j++)
        ^
0_0_38506327_28096\Main.java:78: 错误: 需要class, interface或enum
        for(int j = i; j < n; j++)
                       ^
0_0_38506327_28096\Main.java:78: 错误: 需要class, interface或enum
        for(int j = i; j < n; j++)
                              ^
0_0_38506327_28096\Main.java:81: 错误: 需要class, interface或enum
            ans[i][j] = ans[i][j] + sam.tree[sam.last].len - sam.tree[sam.tree[last].fa].len;
            ^
0_0_38506327_28096\Main.java:82: 错误: 需要class, interface或enum
        }
        ^
0_0_38506327_28096\Main.java:85: 错误: 需要class, interface或enum
    cin >> q;
    ^
0_0_38506327_28096\Main.java:86: 错误: 需要class, interface或enum
    while(q--)
    ^
0_0_38506327_28096\Main.java:89: 错误: 需要class, interface或enum
        cout << ans[l][r] << "\n";
        ^
0_0_38506327_28096\Main.java:90: 错误: 需要class, interface或enum
    }
    ^
0_0_38506327_28096\Main.java:95: 错误: 需要class, interface或enum
    std::cin.tie(nullptr);
    ^
0_0_38506327_28096\Main.java:96: 错误: 需要class, interface或enum
    std::cout.tie(nullptr);
    ^
0_0_38506327_28096\Main.java:97: 错误: 需要class, interface或enum
    int T = 1;
    ^
0_0_38506327_28096\Main.java:98: 错误: 需要class, interface或enum
    cin >> T;
    ^
0_0_38506327_28096\Main.java:99: 错误: 需要class, interface或enum
    while (T--)
    ^
0_0_38506327_28096\Main.java:101: 错误: 需要class, interface或enum
    return 0;
    ^
0_0_38506327_28096\Main.java:102: 错误: 需要class, interface或enum
}
^
55 个错误


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-12-05 10:26:15, Gzip enabled