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_22500350_16207\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_22500350_16207\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_22500350_16207\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_22500350_16207\Main.java:3: 错误: 非法字符: '#'
#include <iostream>
^
0_0_22500350_16207\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_22500350_16207\Main.java:5: 错误: 非法字符: '#'
#include <vector>
^
0_0_22500350_16207\Main.java:9: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_22500350_16207\Main.java:10: 错误: 需要class, interface或enum
typedef pair<double, double> P;
^
0_0_22500350_16207\Main.java:11: 错误: 需要class, interface或enum
const int N = 1e5 + 5;
^
0_0_22500350_16207\Main.java:12: 错误: 需要class, interface或enum
const int V = 100;
^
0_0_22500350_16207\Main.java:14: 错误: 需要class, interface或enum
int n, m;
^
0_0_22500350_16207\Main.java:15: 错误: 需要class, interface或enum
int val[N*V], lson[N*V], rson[N*V], tot;
^
0_0_22500350_16207\Main.java:16: 错误: 需要class, interface或enum
int col[N], f[N], t1[N], t2[N], dep[N];
^
0_0_22500350_16207\Main.java:18: 错误: 需要class, interface或enum
int add(int pos, int v, int l, int r, int rt) {
^
0_0_22500350_16207\Main.java:19: 错误: 需要class, interface或enum
  int nrt = tot++,  mid; int ret = nrt;
                         ^
0_0_22500350_16207\Main.java:20: 错误: 需要class, interface或enum
  val[nrt] = val[rt] + v;
  ^
0_0_22500350_16207\Main.java:21: 错误: 需要class, interface或enum
  while (l < r) {
  ^
0_0_22500350_16207\Main.java:23: 错误: 需要class, interface或enum
    if (pos <= mid) {
    ^
0_0_22500350_16207\Main.java:24: 错误: 需要class, interface或enum
      lson[nrt] = tot++; rson[nrt] = rson[rt];
                         ^
0_0_22500350_16207\Main.java:25: 错误: 需要class, interface或enum
      nrt = lson[nrt]; rt = lson[rt];
      ^
0_0_22500350_16207\Main.java:25: 错误: 需要class, interface或enum
      nrt = lson[nrt]; rt = lson[rt];
                       ^
0_0_22500350_16207\Main.java:26: 错误: 需要class, interface或enum
      r = mid;
      ^
0_0_22500350_16207\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:29: 错误: 需要class, interface或enum
      lson[nrt] = lson[rt]; rson[nrt] = tot++;
                            ^
0_0_22500350_16207\Main.java:30: 错误: 需要class, interface或enum
      nrt = rson[nrt]; rt = rson[rt];
      ^
0_0_22500350_16207\Main.java:30: 错误: 需要class, interface或enum
      nrt = rson[nrt]; rt = rson[rt];
                       ^
0_0_22500350_16207\Main.java:31: 错误: 需要class, interface或enum
      l = mid + 1;
      ^
0_0_22500350_16207\Main.java:32: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:34: 错误: 需要class, interface或enum
  }
  ^
0_0_22500350_16207\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_22500350_16207\Main.java:40: 错误: 需要class, interface或enum
  int ret = 0, mid = l + r >> 1;
  ^
0_0_22500350_16207\Main.java:41: 错误: 需要class, interface或enum
  if (L <= mid) ret += query(L, R, l, mid, lson[rt]);
  ^
0_0_22500350_16207\Main.java:42: 错误: 需要class, interface或enum
  if (mid < R) ret += query(L, R, mid+1, r, rson[rt]);
  ^
0_0_22500350_16207\Main.java:43: 错误: 需要class, interface或enum
  return ret;
  ^
0_0_22500350_16207\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_22500350_16207\Main.java:48: 错误: 需要class, interface或enum
  int ret = tot++, mid = l + r >> 1;
  ^
0_0_22500350_16207\Main.java:49: 错误: 需要class, interface或enum
  val[ret] = val[r1] + val[r2];
  ^
0_0_22500350_16207\Main.java:50: 错误: 需要class, interface或enum
  if (l == r) return ret;
  ^
0_0_22500350_16207\Main.java:51: 错误: 需要class, interface或enum
  lson[ret] = merge1(l, mid, lson[r1], lson[r2]);
  ^
0_0_22500350_16207\Main.java:52: 错误: 需要class, interface或enum
  rson[ret] = merge1(mid+1, r, rson[r1], rson[r2]);
  ^
0_0_22500350_16207\Main.java:53: 错误: 需要class, interface或enum
  return ret;
  ^
0_0_22500350_16207\Main.java:54: 错误: 需要class, interface或enum
}
^
0_0_22500350_16207\Main.java:58: 错误: 需要class, interface或enum
  int ret = tot++, mid = l + r >> 1;
  ^
0_0_22500350_16207\Main.java:59: 错误: 需要class, interface或enum
  if (l == r) {
  ^
0_0_22500350_16207\Main.java:61: 错误: 需要class, interface或enum
    else if (val[r1] < val[r2]) {
    ^
0_0_22500350_16207\Main.java:63: 错误: 需要class, interface或enum
      t1[p] = add(val[r2], -1, 1, n, t1[p]);
      ^
0_0_22500350_16207\Main.java:64: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:67: 错误: 需要class, interface或enum
      t1[p] = add(val[r1], -1, 1, n, t1[p]);
      ^
0_0_22500350_16207\Main.java:68: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:70: 错误: 需要class, interface或enum
  }
  ^
0_0_22500350_16207\Main.java:72: 错误: 需要class, interface或enum
  rson[ret] = merge2(mid+1, r, rson[r1], rson[r2], p);
  ^
0_0_22500350_16207\Main.java:73: 错误: 需要class, interface或enum
  return ret;
  ^
0_0_22500350_16207\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_22500350_16207\Main.java:78: 错误: 需要class, interface或enum
  scanf("%d", &T);
  ^
0_0_22500350_16207\Main.java:79: 错误: 需要class, interface或enum
  while (T--) {
  ^
0_0_22500350_16207\Main.java:81: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) scanf("%d", col + i);
    ^
0_0_22500350_16207\Main.java:81: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) scanf("%d", col + i);
                    ^
0_0_22500350_16207\Main.java:81: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) scanf("%d", col + i);
                            ^
0_0_22500350_16207\Main.java:82: 错误: 需要class, interface或enum
    dep[1] = 1;
    ^
0_0_22500350_16207\Main.java:83: 错误: 需要class, interface或enum
    for (int i = 2; i <= n; ++i) {
    ^
0_0_22500350_16207\Main.java:83: 错误: 需要class, interface或enum
    for (int i = 2; i <= n; ++i) {
                    ^
0_0_22500350_16207\Main.java:83: 错误: 需要class, interface或enum
    for (int i = 2; i <= n; ++i) {
                            ^
0_0_22500350_16207\Main.java:85: 错误: 需要class, interface或enum
      dep[i] = dep[f[i]] + 1;
      ^
0_0_22500350_16207\Main.java:86: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:88: 错误: 需要class, interface或enum
    ++tot;
    ^
0_0_22500350_16207\Main.java:89: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) {
    ^
0_0_22500350_16207\Main.java:89: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) {
                    ^
0_0_22500350_16207\Main.java:89: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; ++i) {
                            ^
0_0_22500350_16207\Main.java:92: 错误: 需要class, interface或enum
      t2[i] = add(col[i], dep[i], 1, n, 0);
      ^
0_0_22500350_16207\Main.java:93: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:94: 错误: 需要class, interface或enum
    for (int i = n; i > 1; --i) {
                    ^
0_0_22500350_16207\Main.java:94: 错误: 需要class, interface或enum
    for (int i = n; i > 1; --i) {
                           ^
0_0_22500350_16207\Main.java:96: 错误: 需要class, interface或enum
      t2[f[i]] = merge2(1, n, t2[f[i]], t2[i], f[i]);
      ^
0_0_22500350_16207\Main.java:97: 错误: 需要class, interface或enum
    }
    ^
0_0_22500350_16207\Main.java:100: 错误: 需要class, interface或enum
      x ^= ans; y ^= ans;
      ^
0_0_22500350_16207\Main.java:100: 错误: 需要class, interface或enum
      x ^= ans; y ^= ans;
                ^
0_0_22500350_16207\Main.java:102: 错误: 需要class, interface或enum
      ans = query(dep[x], dep[x] + y, 1, n, t1[x]);
      ^
0_0_22500350_16207\Main.java:103: 错误: 需要class, interface或enum
      printf("%d\n", ans);
      ^
0_0_22500350_16207\Main.java:104: 错误: 需要class, interface或enum
    }
    ^
79 个错误


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-23 10:30:15, Gzip enabled