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_38504680_5912\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_38504680_5912\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_38504680_5912\Main.java:3: 错误: 需要class, interface或enum
typedef pair<int, int> pii;
^
0_0_38504680_5912\Main.java:4: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_38504680_5912\Main.java:5: 错误: 需要class, interface或enum
const int N = 2e5 + 5;
^
0_0_38504680_5912\Main.java:6: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_38504680_5912\Main.java:8: 错误: 需要class, interface或enum
struct ACM {
^
0_0_38504680_5912\Main.java:10: 错误: 需要class, interface或enum
    int root, tot;
    ^
0_0_38504680_5912\Main.java:12: 错误: 需要class, interface或enum
    ACM()
    ^
0_0_38504680_5912\Main.java:15: 错误: 需要class, interface或enum
        root = add();
        ^
0_0_38504680_5912\Main.java:16: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:19: 错误: 需要class, interface或enum
        for (int i = 0; i < 30; i++) {
                        ^
0_0_38504680_5912\Main.java:19: 错误: 需要class, interface或enum
        for (int i = 0; i < 30; i++) {
                                ^
0_0_38504680_5912\Main.java:21: 错误: 需要class, interface或enum
        }
        ^
0_0_38504680_5912\Main.java:23: 错误: 需要class, interface或enum
        return tot++;
        ^
0_0_38504680_5912\Main.java:24: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:28: 错误: 需要class, interface或enum
        root = add();
        ^
0_0_38504680_5912\Main.java:29: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
        ^
0_0_38504680_5912\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
                        ^
0_0_38504680_5912\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
                                        ^
0_0_38504680_5912\Main.java:35: 错误: 需要class, interface或enum
            if (trie[p][x] == -1) {
            ^
0_0_38504680_5912\Main.java:37: 错误: 需要class, interface或enum
            }
            ^
0_0_38504680_5912\Main.java:39: 错误: 需要class, interface或enum
        }
        ^
0_0_38504680_5912\Main.java:41: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:45: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
        ^
0_0_38504680_5912\Main.java:45: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
                        ^
0_0_38504680_5912\Main.java:45: 错误: 需要class, interface或enum
        for (int i = 0; i < s.length(); i++) {
                                        ^
0_0_38504680_5912\Main.java:47: 错误: 需要class, interface或enum
            now = trie[now][x];
            ^
0_0_38504680_5912\Main.java:48: 错误: 需要class, interface或enum
            for(int j = now; j != -1 and cnt[j] != -1; j = fail[j])
            ^
0_0_38504680_5912\Main.java:48: 错误: 需要class, interface或enum
            for(int j = now; j != -1 and cnt[j] != -1; j = fail[j])
                             ^
0_0_38504680_5912\Main.java:48: 错误: 需要class, interface或enum
            for(int j = now; j != -1 and cnt[j] != -1; j = fail[j])
                                                       ^
0_0_38504680_5912\Main.java:51: 错误: 需要class, interface或enum
            }
            ^
0_0_38504680_5912\Main.java:54: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:58: 错误: 需要class, interface或enum
        for (int i = 0; i < 30; i++) {
        ^
0_0_38504680_5912\Main.java:58: 错误: 需要class, interface或enum
        for (int i = 0; i < 30; i++) {
                        ^
0_0_38504680_5912\Main.java:58: 错误: 需要class, interface或enum
        for (int i = 0; i < 30; i++) {
                                ^
0_0_38504680_5912\Main.java:61: 错误: 需要class, interface或enum
                q.push(trie[root][i]);
                ^
0_0_38504680_5912\Main.java:62: 错误: 需要class, interface或enum
            } else
            ^
0_0_38504680_5912\Main.java:64: 错误: 需要class, interface或enum
        }
        ^
0_0_38504680_5912\Main.java:67: 错误: 需要class, interface或enum
            q.pop();
            ^
0_0_38504680_5912\Main.java:68: 错误: 需要class, interface或enum
            for (int i = 0; i < 30; i++) {
            ^
0_0_38504680_5912\Main.java:68: 错误: 需要class, interface或enum
            for (int i = 0; i < 30; i++) {
                            ^
0_0_38504680_5912\Main.java:68: 错误: 需要class, interface或enum
            for (int i = 0; i < 30; i++) {
                                    ^
0_0_38504680_5912\Main.java:71: 错误: 需要class, interface或enum
                    q.push(trie[p][i]);
                    ^
0_0_38504680_5912\Main.java:72: 错误: 需要class, interface或enum
                } else {
                ^
0_0_38504680_5912\Main.java:74: 错误: 需要class, interface或enum
                }
                ^
0_0_38504680_5912\Main.java:80: 错误: 需要class, interface或enum
void solve()
^
0_0_38504680_5912\Main.java:83: 错误: 需要class, interface或enum
    int n, sz = 0;
    ^
0_0_38504680_5912\Main.java:84: 错误: 需要class, interface或enum
    cin >> n;
    ^
0_0_38504680_5912\Main.java:85: 错误: 需要class, interface或enum
    ac.clear();
    ^
0_0_38504680_5912\Main.java:86: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
    ^
0_0_38504680_5912\Main.java:86: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
                   ^
0_0_38504680_5912\Main.java:86: 错误: 需要class, interface或enum
    for(int i = 0; i < n; i++)
                          ^
0_0_38504680_5912\Main.java:89: 错误: 需要class, interface或enum
        cin >> s;
        ^
0_0_38504680_5912\Main.java:90: 错误: 需要class, interface或enum
        if(s.length() > sz)
        ^
0_0_38504680_5912\Main.java:93: 错误: 需要class, interface或enum
            key = s;
            ^
0_0_38504680_5912\Main.java:94: 错误: 需要class, interface或enum
        }
        ^
0_0_38504680_5912\Main.java:96: 错误: 需要class, interface或enum
    }
    ^
0_0_38504680_5912\Main.java:98: 错误: 需要class, interface或enum
    if(ac.find(key, n))
    ^
0_0_38504680_5912\Main.java:100: 错误: 需要class, interface或enum
    else
    ^
0_0_38504680_5912\Main.java:102: 错误: 需要class, interface或enum
}
^
0_0_38504680_5912\Main.java:107: 错误: 需要class, interface或enum
    std::cin.tie(nullptr);
    ^
0_0_38504680_5912\Main.java:108: 错误: 需要class, interface或enum
    std::cout.tie(nullptr);
    ^
0_0_38504680_5912\Main.java:109: 错误: 需要class, interface或enum
    int T = 1;
    ^
0_0_38504680_5912\Main.java:110: 错误: 需要class, interface或enum
    cin >> T;
    ^
0_0_38504680_5912\Main.java:111: 错误: 需要class, interface或enum
    while(T--)
    ^
0_0_38504680_5912\Main.java:113: 错误: 需要class, interface或enum
    return 0;
    ^
0_0_38504680_5912\Main.java:114: 错误: 需要class, interface或enum
}
^
69 个错误


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-25 13:30:26, Gzip enabled