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_22129926_17117\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_22129926_17117\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_22129926_17117\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_22129926_17117\Main.java:5: 错误: 非法字符: '#'
#define lson l,mid,id<<1
^
0_0_22129926_17117\Main.java:5: 错误: 需要class, interface或enum
#define lson l,mid,id<<1
        ^
0_0_22129926_17117\Main.java:6: 错误: 非法字符: '#'
#define rson mid+1,r,id<<1|1
^
0_0_22129926_17117\Main.java:7: 错误: 非法字符: '#'
#define ll long long
^
0_0_22129926_17117\Main.java:11: 错误: 需要class, interface或enum
typedef pair<int, int> pii;
^
0_0_22129926_17117\Main.java:13: 错误: 需要class, interface或enum
struct Trie {
^
0_0_22129926_17117\Main.java:15: 错误: 需要class, interface或enum
    int root, L;
    ^
0_0_22129926_17117\Main.java:16: 错误: 需要class, interface或enum
    int newnode()
    ^
0_0_22129926_17117\Main.java:18: 错误: 需要class, interface或enum
        for (int i = 0; i < 26; i++)
                        ^
0_0_22129926_17117\Main.java:18: 错误: 需要class, interface或enum
        for (int i = 0; i < 26; i++)
                                ^
0_0_22129926_17117\Main.java:20: 错误: 需要class, interface或enum
        end[L++] = 0;
        ^
0_0_22129926_17117\Main.java:21: 错误: 需要class, interface或enum
        return L - 1;
        ^
0_0_22129926_17117\Main.java:22: 错误: 需要class, interface或enum
    }
    ^
0_0_22129926_17117\Main.java:26: 错误: 需要class, interface或enum
        root = newnode();
        ^
0_0_22129926_17117\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22129926_17117\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
        ^
0_0_22129926_17117\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
                        ^
0_0_22129926_17117\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
                                 ^
0_0_22129926_17117\Main.java:36: 错误: 需要class, interface或enum
            now = next[now][buf[i] - 'a'];
            ^
0_0_22129926_17117\Main.java:37: 错误: 需要class, interface或enum
        }
        ^
0_0_22129926_17117\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_22129926_17117\Main.java:43: 错误: 需要class, interface或enum
        fail[root] = root;
        ^
0_0_22129926_17117\Main.java:44: 错误: 需要class, interface或enum
        for (int i = 0; i < 26; i++)
        ^
0_0_22129926_17117\Main.java:44: 错误: 需要class, interface或enum
        for (int i = 0; i < 26; i++)
                        ^
0_0_22129926_17117\Main.java:44: 错误: 需要class, interface或enum
        for (int i = 0; i < 26; i++)
                                ^
0_0_22129926_17117\Main.java:47: 错误: 需要class, interface或enum
            else {
            ^
0_0_22129926_17117\Main.java:49: 错误: 需要class, interface或enum
                Q.push(next[root][i]);
                ^
0_0_22129926_17117\Main.java:50: 错误: 需要class, interface或enum
            }
            ^
0_0_22129926_17117\Main.java:54: 错误: 需要class, interface或enum
                Q.pop();
                ^
0_0_22129926_17117\Main.java:55: 错误: 需要class, interface或enum
                for (int i = 0; i < 26; i++)
                ^
0_0_22129926_17117\Main.java:55: 错误: 需要class, interface或enum
                for (int i = 0; i < 26; i++)
                                ^
0_0_22129926_17117\Main.java:55: 错误: 需要class, interface或enum
                for (int i = 0; i < 26; i++)
                                        ^
0_0_22129926_17117\Main.java:58: 错误: 需要class, interface或enum
                    else {
                    ^
0_0_22129926_17117\Main.java:60: 错误: 需要class, interface或enum
                        Q.push(next[now][i]);
                        ^
0_0_22129926_17117\Main.java:61: 错误: 需要class, interface或enum
                    }
                    ^
0_0_22129926_17117\Main.java:68: 错误: 需要class, interface或enum
        int res = 0;
        ^
0_0_22129926_17117\Main.java:69: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
        ^
0_0_22129926_17117\Main.java:69: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
                        ^
0_0_22129926_17117\Main.java:69: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++)
                                 ^
0_0_22129926_17117\Main.java:72: 错误: 需要class, interface或enum
            int temp = now;
            ^
0_0_22129926_17117\Main.java:73: 错误: 需要class, interface或enum
            while (temp != root) {
            ^
0_0_22129926_17117\Main.java:75: 错误: 需要class, interface或enum
                end[temp] = 0;
                ^
0_0_22129926_17117\Main.java:76: 错误: 需要class, interface或enum
                temp = fail[temp];
                ^
0_0_22129926_17117\Main.java:77: 错误: 需要class, interface或enum
            }
            ^
0_0_22129926_17117\Main.java:80: 错误: 需要class, interface或enum
    }
    ^
0_0_22129926_17117\Main.java:82: 错误: 需要class, interface或enum
char s[2][MAXN];
^
0_0_22129926_17117\Main.java:84: 错误: 需要class, interface或enum
int main() {
^
0_0_22129926_17117\Main.java:86: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_22129926_17117\Main.java:87: 错误: 需要class, interface或enum
    while (T--) {
    ^
0_0_22129926_17117\Main.java:89: 错误: 需要class, interface或enum
        maxx = 0;
        ^
0_0_22129926_17117\Main.java:90: 错误: 需要class, interface或enum
        AC.init();
        ^
0_0_22129926_17117\Main.java:91: 错误: 需要class, interface或enum
        scanf("%d", &n);
        ^
0_0_22129926_17117\Main.java:92: 错误: 需要class, interface或enum
        getchar();
        ^
0_0_22129926_17117\Main.java:93: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; ++i) {
        ^
0_0_22129926_17117\Main.java:93: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; ++i) {
                        ^
0_0_22129926_17117\Main.java:93: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; ++i) {
                                ^
0_0_22129926_17117\Main.java:95: 错误: 需要class, interface或enum
            int len = strlen(s[now]);
            ^
0_0_22129926_17117\Main.java:96: 错误: 需要class, interface或enum
            AC.insert(s[now], len);
            ^
0_0_22129926_17117\Main.java:97: 错误: 需要class, interface或enum
            if (len > maxx) {
            ^
0_0_22129926_17117\Main.java:99: 错误: 需要class, interface或enum
                now ^= 1;
                ^
0_0_22129926_17117\Main.java:100: 错误: 需要class, interface或enum
            }
            ^
0_0_22129926_17117\Main.java:103: 错误: 需要class, interface或enum
        if (AC.query(s[now ^ 1],maxx) == n)puts(s[now ^ 1]);
        ^
0_0_22129926_17117\Main.java:104: 错误: 需要class, interface或enum
        else puts("No");
        ^
0_0_22129926_17117\Main.java:105: 错误: 需要class, interface或enum
    }
    ^
67 个错误


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-17 01:40:34, Gzip enabled