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_21657016_11564\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_21657016_11564\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_21657016_11564\Main.java:2: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_21657016_11564\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_21657016_11564\Main.java:4: 错误: 非法字符: '#'
#include <iostream>
^
0_0_21657016_11564\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_21657016_11564\Main.java:6: 错误: 非法字符: '#'
#include <map>
^
0_0_21657016_11564\Main.java:7: 错误: 非法字符: '#'
#include <vector>
^
0_0_21657016_11564\Main.java:11: 错误: 非法字符: '#'
#define PB push_back
^
0_0_21657016_11564\Main.java:11: 错误: 需要class, interface或enum
#define PB push_back
        ^
0_0_21657016_11564\Main.java:12: 错误: 非法字符: '#'
#define MS(x, y) memset(x, y, sizeof(x))
^
0_0_21657016_11564\Main.java:15: 错误: 需要class, interface或enum
typedef pair<int, int> pi;
^
0_0_21657016_11564\Main.java:16: 错误: 需要class, interface或enum
const int MAXN = 1e5 + 5;
^
0_0_21657016_11564\Main.java:17: 错误: 需要class, interface或enum
const int MAXM = 5e5 + 5;
^
0_0_21657016_11564\Main.java:18: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_21657016_11564\Main.java:19: 错误: 需要class, interface或enum
const int P = 31, D = 1000173169;
^
0_0_21657016_11564\Main.java:21: 错误: 需要class, interface或enum
int n, m, Q;
^
0_0_21657016_11564\Main.java:22: 错误: 需要class, interface或enum
int pa[MAXM], ch[MAXM][26], alp[MAXM], t1, root1, is_str[MAXM];
^
0_0_21657016_11564\Main.java:23: 错误: 需要class, interface或enum
int son[MAXM << 1][26], val[MAXM << 1], t2, root2;
^
0_0_21657016_11564\Main.java:24: 错误: 需要class, interface或enum
char str[MAXN];
^
0_0_21657016_11564\Main.java:25: 错误: 需要class, interface或enum
char pstr[MAXM], sstr[MAXM];
^
0_0_21657016_11564\Main.java:26: 错误: 需要class, interface或enum
int pbeg[MAXN], pend[MAXN], sbeg[MAXN], send[MAXN];
^
0_0_21657016_11564\Main.java:27: 错误: 需要class, interface或enum
int clk, ID_cnt;
^
0_0_21657016_11564\Main.java:28: 错误: 需要class, interface或enum
LL pre_val[MAXN], suf_val[MAXN];
^
0_0_21657016_11564\Main.java:29: 错误: 需要class, interface或enum
LL bits[MAXN];
^
0_0_21657016_11564\Main.java:30: 错误: 需要class, interface或enum
map<LL, int> pref1, pref2, cnt_str, sur_ID;
^
0_0_21657016_11564\Main.java:31: 错误: 需要class, interface或enum
vector<pi> nodes[MAXN];
^
0_0_21657016_11564\Main.java:33: 错误: 需要class, interface或enum
LL Pow(LL a, LL b) {
^
0_0_21657016_11564\Main.java:35: 错误: 需要class, interface或enum
  for (; b; b >>= 1) {
  ^
0_0_21657016_11564\Main.java:35: 错误: 需要class, interface或enum
  for (; b; b >>= 1) {
         ^
0_0_21657016_11564\Main.java:35: 错误: 需要class, interface或enum
  for (; b; b >>= 1) {
            ^
0_0_21657016_11564\Main.java:37: 错误: 需要class, interface或enum
    (a *= a) %= D;
    ^
0_0_21657016_11564\Main.java:38: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:44: 错误: 需要class, interface或enum
  MS(ch[t1], -1);
  ^
0_0_21657016_11564\Main.java:45: 错误: 需要class, interface或enum
  is_str[t1] = 0;
  ^
0_0_21657016_11564\Main.java:46: 错误: 需要class, interface或enum
  alp[t1] = AL;
  ^
0_0_21657016_11564\Main.java:47: 错误: 需要class, interface或enum
  return t1++;
  ^
0_0_21657016_11564\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:52: 错误: 需要class, interface或enum
  LL hsh = 0;
  ^
0_0_21657016_11564\Main.java:53: 错误: 需要class, interface或enum
  for (int i = 0; str[i]; ++i) {
  ^
0_0_21657016_11564\Main.java:53: 错误: 需要class, interface或enum
  for (int i = 0; str[i]; ++i) {
                  ^
0_0_21657016_11564\Main.java:53: 错误: 需要class, interface或enum
  for (int i = 0; str[i]; ++i) {
                          ^
0_0_21657016_11564\Main.java:55: 错误: 需要class, interface或enum
    hsh = (hsh * P + nxt) % D;
    ^
0_0_21657016_11564\Main.java:56: 错误: 需要class, interface或enum
    if (ch[now][nxt] == -1) ch[now][nxt] = newnode1(now, nxt);
    ^
0_0_21657016_11564\Main.java:57: 错误: 需要class, interface或enum
    now = ch[now][nxt];
    ^
0_0_21657016_11564\Main.java:58: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:60: 错误: 需要class, interface或enum
  if (cnt_str.find(hsh) == cnt_str.end()) cnt_str[hsh] = 0;
  ^
0_0_21657016_11564\Main.java:61: 错误: 需要class, interface或enum
  cnt_str[hsh] += 1;
  ^
0_0_21657016_11564\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:66: 错误: 需要class, interface或enum
  MS(son[t2], -1);
  ^
0_0_21657016_11564\Main.java:67: 错误: 需要class, interface或enum
  return t2++;
  ^
0_0_21657016_11564\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:72: 错误: 需要class, interface或enum
  for (int i = strlen(str) - 1; i >= 0; --i) {
  ^
0_0_21657016_11564\Main.java:72: 错误: 需要class, interface或enum
  for (int i = strlen(str) - 1; i >= 0; --i) {
                                ^
0_0_21657016_11564\Main.java:72: 错误: 需要class, interface或enum
  for (int i = strlen(str) - 1; i >= 0; --i) {
                                        ^
0_0_21657016_11564\Main.java:74: 错误: 需要class, interface或enum
    if (son[now][nxt] == -1) son[now][nxt] = newnode2();
    ^
0_0_21657016_11564\Main.java:75: 错误: 需要class, interface或enum
    now = son[now][nxt];
    ^
0_0_21657016_11564\Main.java:76: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:81: 错误: 需要class, interface或enum
  for (int i = 0; i < 26; ++i) son[t2][i] = son[x][i];
  ^
0_0_21657016_11564\Main.java:81: 错误: 需要class, interface或enum
  for (int i = 0; i < 26; ++i) son[t2][i] = son[x][i];
                  ^
0_0_21657016_11564\Main.java:81: 错误: 需要class, interface或enum
  for (int i = 0; i < 26; ++i) son[t2][i] = son[x][i];
                          ^
0_0_21657016_11564\Main.java:82: 错误: 需要class, interface或enum
  return t2++;
  ^
0_0_21657016_11564\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:87: 错误: 需要class, interface或enum
  root2 = root;
  ^
0_0_21657016_11564\Main.java:88: 错误: 需要class, interface或enum
  int nxt, len = 0;
  ^
0_0_21657016_11564\Main.java:89: 错误: 需要class, interface或enum
  LL hsh = 0;
  ^
0_0_21657016_11564\Main.java:90: 错误: 需要class, interface或enum
  while (u != root1) {
  ^
0_0_21657016_11564\Main.java:92: 错误: 需要class, interface或enum
    son[root][nxt] = newnode3(son[root][nxt], v);
    ^
0_0_21657016_11564\Main.java:93: 错误: 需要class, interface或enum
    root = son[root][nxt];
    ^
0_0_21657016_11564\Main.java:94: 错误: 需要class, interface或enum
    hsh = (hsh + nxt * bits[len++] % D) % D;
    ^
0_0_21657016_11564\Main.java:95: 错误: 需要class, interface或enum
    if (sur_ID.find(hsh) != sur_ID.end()) nodes[sur_ID[hsh]].PB(pi(clk, val[root]));
    ^
0_0_21657016_11564\Main.java:96: 错误: 需要class, interface或enum
    u = pa[u];
    ^
0_0_21657016_11564\Main.java:97: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:102: 错误: 需要class, interface或enum
  if (is_str[u]) {
  ^
0_0_21657016_11564\Main.java:104: 错误: 需要class, interface或enum
    insert3(u, is_str[u]);
    ^
0_0_21657016_11564\Main.java:105: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:106: 错误: 需要class, interface或enum
  for (int i = 0; i < 26; ++i) if (ch[u][i] != -1) {
                  ^
0_0_21657016_11564\Main.java:106: 错误: 需要class, interface或enum
  for (int i = 0; i < 26; ++i) if (ch[u][i] != -1) {
                          ^
0_0_21657016_11564\Main.java:108: 错误: 需要class, interface或enum
  }
  ^
0_0_21657016_11564\Main.java:110: 错误: 需要class, interface或enum
}
^
0_0_21657016_11564\Main.java:114: 错误: 需要class, interface或enum
  for (int i = bits[0] = 1; i < MAXN; ++i) bits[i] = (bits[i - 1] * P) % D;
  ^
0_0_21657016_11564\Main.java:114: 错误: 需要class, interface或enum
  for (int i = bits[0] = 1; i < MAXN; ++i) bits[i] = (bits[i - 1] * P) % D;
                            ^
0_0_21657016_11564\Main.java:114: 错误: 需要class, interface或enum
  for (int i = bits[0] = 1; i < MAXN; ++i) bits[i] = (bits[i - 1] * P) % D;
                                      ^
0_0_21657016_11564\Main.java:115: 错误: 需要class, interface或enum
  int T;
  ^
0_0_21657016_11564\Main.java:116: 错误: 需要class, interface或enum
  scanf("%d", &T);
  ^
0_0_21657016_11564\Main.java:117: 错误: 需要class, interface或enum
  while (T--) {
  ^
0_0_21657016_11564\Main.java:119: 错误: 需要class, interface或enum
    t1 = 0;
    ^
0_0_21657016_11564\Main.java:120: 错误: 需要class, interface或enum
    root1 = newnode1(0, -1);
    ^
0_0_21657016_11564\Main.java:121: 错误: 需要class, interface或enum
    t2 = 0;
    ^
0_0_21657016_11564\Main.java:122: 错误: 需要class, interface或enum
    root2 = newnode2();
    ^
0_0_21657016_11564\Main.java:123: 错误: 需要class, interface或enum
    cnt_str.clear();
    ^
0_0_21657016_11564\Main.java:124: 错误: 需要class, interface或enum
    for (int i = 0; i < n; ++i) {
    ^
0_0_2165701


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-03 01:12:06, Gzip enabled