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_23357064_8728\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_23357064_8728\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_23357064_8728\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_23357064_8728\Main.java:3: 错误: 非法字符: '#'
#include <vector>
^
0_0_23357064_8728\Main.java:4: 错误: 非法字符: '#'
#include <cstring>
^
0_0_23357064_8728\Main.java:5: 错误: 非法字符: '#'
#include <cmath>
^
0_0_23357064_8728\Main.java:6: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_23357064_8728\Main.java:8: 错误: 非法字符: '#'
#define lowbit(x) ((x)&-(x))
^
0_0_23357064_8728\Main.java:8: 错误: 需要class, interface或enum
#define lowbit(x) ((x)&-(x))
        ^
0_0_23357064_8728\Main.java:9: 错误: 非法字符: '#'
#define lrt rt<<1
^
0_0_23357064_8728\Main.java:10: 错误: 非法字符: '#'
#define rrt rt<<1|1
^
0_0_23357064_8728\Main.java:12: 错误: 需要class, interface或enum
typedef pair<int, int> pii;
^
0_0_23357064_8728\Main.java:13: 错误: 需要class, interface或enum
const LL mod = 1e9 + 7;
^
0_0_23357064_8728\Main.java:14: 错误: 需要class, interface或enum
const int maxn = 1e5 + 10;
^
0_0_23357064_8728\Main.java:15: 错误: 需要class, interface或enum
int n, m, x, y, dw, up;
^
0_0_23357064_8728\Main.java:16: 错误: 需要class, interface或enum
int a[maxn];
^
0_0_23357064_8728\Main.java:17: 错误: 需要class, interface或enum
int dep[maxn], siz[maxn], fa[maxn], son[maxn];
^
0_0_23357064_8728\Main.java:18: 错误: 需要class, interface或enum
int top[maxn], tid[maxn], Rank[maxn], pos;
^
0_0_23357064_8728\Main.java:19: 错误: 需要class, interface或enum
vector<int> g[maxn];
^
0_0_23357064_8728\Main.java:20: 错误: 需要class, interface或enum
struct node
^
0_0_23357064_8728\Main.java:23: 错误: 需要class, interface或enum
    LL sum;
    ^
0_0_23357064_8728\Main.java:24: 错误: 需要class, interface或enum
}c[maxn << 2];
^
0_0_23357064_8728\Main.java:25: 错误: 需要class, interface或enum
void dfs1(int u, int f, int d)
^
0_0_23357064_8728\Main.java:27: 错误: 需要class, interface或enum
    dep[u] = d; fa[u] = f; siz[u] = 1;
                ^
0_0_23357064_8728\Main.java:27: 错误: 需要class, interface或enum
    dep[u] = d; fa[u] = f; siz[u] = 1;
                           ^
0_0_23357064_8728\Main.java:28: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
    ^
0_0_23357064_8728\Main.java:28: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
                   ^
0_0_23357064_8728\Main.java:28: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
                                    ^
0_0_23357064_8728\Main.java:31: 错误: 需要class, interface或enum
        if(v == f)continue;
        ^
0_0_23357064_8728\Main.java:32: 错误: 需要class, interface或enum
        dfs1(v, u, d + 1);
        ^
0_0_23357064_8728\Main.java:33: 错误: 需要class, interface或enum
        siz[u] += siz[v];
        ^
0_0_23357064_8728\Main.java:34: 错误: 需要class, interface或enum
        if(son[u] == -1 || siz[son[u]] < siz[v])son[u] = v;
        ^
0_0_23357064_8728\Main.java:35: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:40: 错误: 需要class, interface或enum
    tid[u] = pos++;
    ^
0_0_23357064_8728\Main.java:41: 错误: 需要class, interface或enum
    Rank[tid[u]] = u;
    ^
0_0_23357064_8728\Main.java:42: 错误: 需要class, interface或enum
    if(son[u] == -1)return;
    ^
0_0_23357064_8728\Main.java:43: 错误: 需要class, interface或enum
    dfs2(son[u], tp);
    ^
0_0_23357064_8728\Main.java:44: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
    ^
0_0_23357064_8728\Main.java:44: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
                   ^
0_0_23357064_8728\Main.java:44: 错误: 需要class, interface或enum
    for(int i = 0; i < g[u].size(); ++i)
                                    ^
0_0_23357064_8728\Main.java:47: 错误: 需要class, interface或enum
        if(v == fa[u] || v == son[u])continue;
        ^
0_0_23357064_8728\Main.java:48: 错误: 需要class, interface或enum
        dfs2(v, v);
        ^
0_0_23357064_8728\Main.java:49: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:56: 错误: 需要class, interface或enum
        return ;
        ^
0_0_23357064_8728\Main.java:57: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:59: 错误: 需要class, interface或enum
    build(l, mid, lrt); build(mid + 1, r, rrt);
    ^
0_0_23357064_8728\Main.java:59: 错误: 需要class, interface或enum
    build(l, mid, lrt); build(mid + 1, r, rrt);
                        ^
0_0_23357064_8728\Main.java:60: 错误: 需要class, interface或enum
    c[rt].mn = min(c[lrt].mn, c[rrt].mn);
    ^
0_0_23357064_8728\Main.java:61: 错误: 需要class, interface或enum
    c[rt].mx = max(c[lrt].mx, c[rrt].mx);
    ^
0_0_23357064_8728\Main.java:62: 错误: 需要class, interface或enum
    c[rt].sum = c[lrt].sum + c[rrt].sum;
    ^
0_0_23357064_8728\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_23357064_8728\Main.java:69: 错误: 需要class, interface或enum
        if(c[rt].mn >= dw && c[rt].mx <= up)return c[rt].sum;
        ^
0_0_23357064_8728\Main.java:70: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:72: 错误: 需要class, interface或enum
    LL ans = 0;
    ^
0_0_23357064_8728\Main.java:73: 错误: 需要class, interface或enum
    if(L <= mid)ans += query(l, mid, lrt, L, R);
    ^
0_0_23357064_8728\Main.java:74: 错误: 需要class, interface或enum
    if(R > mid)ans += query(mid + 1, r, rrt, L, R);
    ^
0_0_23357064_8728\Main.java:75: 错误: 需要class, interface或enum
    return ans;
    ^
0_0_23357064_8728\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_23357064_8728\Main.java:80: 错误: 需要class, interface或enum
    while(top[x] != top[y])
    ^
0_0_23357064_8728\Main.java:83: 错误: 需要class, interface或enum
        ans += query(1, n, 1, tid[top[x]], tid[x]);
        ^
0_0_23357064_8728\Main.java:84: 错误: 需要class, interface或enum
        x = fa[top[x]];
        ^
0_0_23357064_8728\Main.java:85: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:87: 错误: 需要class, interface或enum
    ans += query(1, n, 1, tid[x], tid[y]);
    ^
0_0_23357064_8728\Main.java:88: 错误: 需要class, interface或enum
    return ans;
    ^
0_0_23357064_8728\Main.java:89: 错误: 需要class, interface或enum
}
^
0_0_23357064_8728\Main.java:94: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++i)
                       ^
0_0_23357064_8728\Main.java:94: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++i)
                               ^
0_0_23357064_8728\Main.java:97: 错误: 需要class, interface或enum
            son[i] = -1;
            ^
0_0_23357064_8728\Main.java:98: 错误: 需要class, interface或enum
        }
        ^
0_0_23357064_8728\Main.java:99: 错误: 需要class, interface或enum
        for(int i = 1; i < n; ++i)
                       ^
0_0_23357064_8728\Main.java:99: 错误: 需要class, interface或enum
        for(int i = 1; i < n; ++i)
                              ^
0_0_23357064_8728\Main.java:102: 错误: 需要class, interface或enum
            g[x].push_back(y);
            ^
0_0_23357064_8728\Main.java:103: 错误: 需要class, interface或enum
            g[y].push_back(x);
            ^
0_0_23357064_8728\Main.java:104: 错误: 需要class, interface或enum
        }
        ^
0_0_23357064_8728\Main.java:106: 错误: 需要class, interface或enum
        pos = 1;
        ^
0_0_23357064_8728\Main.java:107: 错误: 需要class, interface或enum
        dfs2(1, 1);
        ^
0_0_23357064_8728\Main.java:108: 错误: 需要class, interface或enum
        build(1, n, 1);
        ^
0_0_23357064_8728\Main.java:109: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; ++i)
        ^
0_0_23357064_8728\Main.java:109: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; ++i)
                       ^
0_0_23357064_8728\Main.java:109: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; ++i)
                               ^
0_0_23357064_8728\Main.java:112: 错误: 需要class, interface或enum
            printf("%I64d%c", Change(x, y), i == m ? '\n' : ' ');
            ^
0_0_23357064_8728\Main.java:113: 错误: 需要class, interface或enum
        }
        ^
0_0_23357064_8728\Main.java:114: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++i)g[i].clear();
                       ^
0_0_23357064_8728\Main.java:114: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; ++i)g[i].clear();
                               ^
0_0_23357064_8728\Main.java:115: 错误: 需要class, interface或enum
    }
    ^
0_0_23357064_8728\Main.java:117: 错误: 需要class, interface或enum
}
^
86 个错误


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-04 10:56:41, Gzip enabled