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_22456369_28762\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_22456369_28762\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_22456369_28762\Main.java:2: 错误: 非法字符: '#'
#define pb push_back
^
0_0_22456369_28762\Main.java:3: 错误: 非法字符: '#'
#define ls p<<1
^
0_0_22456369_28762\Main.java:4: 错误: 非法字符: '#'
#define rs p<<1|1
^
0_0_22456369_28762\Main.java:6: 错误: 需要class, interface或enum
void Max(int &x,int y){
^
0_0_22456369_28762\Main.java:8: 错误: 需要class, interface或enum
}
^
0_0_22456369_28762\Main.java:10: 错误: 需要class, interface或enum
struct node{
^
0_0_22456369_28762\Main.java:12: 错误: 需要class, interface或enum
};
^
0_0_22456369_28762\Main.java:13: 错误: 需要class, interface或enum
struct Tree{
^
0_0_22456369_28762\Main.java:15: 错误: 需要class, interface或enum
    void Up(int p){
    ^
0_0_22456369_28762\Main.java:17: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:20: 错误: 需要class, interface或enum
        if(l==r){
        ^
0_0_22456369_28762\Main.java:22: 错误: 需要class, interface或enum
            return ;
            ^
0_0_22456369_28762\Main.java:23: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:25: 错误: 需要class, interface或enum
        Build(l,mid,ls);
        ^
0_0_22456369_28762\Main.java:26: 错误: 需要class, interface或enum
        Build(mid+1,r,rs);
        ^
0_0_22456369_28762\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:31: 错误: 需要class, interface或enum
            return ;
            ^
0_0_22456369_28762\Main.java:32: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:34: 错误: 需要class, interface或enum
        if(x>mid) Update(x,a,rs);
        ^
0_0_22456369_28762\Main.java:35: 错误: 需要class, interface或enum
        else Update(x,a,ls);
        ^
0_0_22456369_28762\Main.java:36: 错误: 需要class, interface或enum
        Up(p);
        ^
0_0_22456369_28762\Main.java:37: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:41: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:43: 错误: 需要class, interface或enum
        if(l>mid) return Query(l,r,rs);
        ^
0_0_22456369_28762\Main.java:44: 错误: 需要class, interface或enum
        else if(r<=mid) return Query(l,r,ls);
        ^
0_0_22456369_28762\Main.java:45: 错误: 需要class, interface或enum
        else{
        ^
0_0_22456369_28762\Main.java:47: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:50: 错误: 需要class, interface或enum
int dfn,n,m;
^
0_0_22456369_28762\Main.java:51: 错误: 需要class, interface或enum
struct Node{
^
0_0_22456369_28762\Main.java:53: 错误: 需要class, interface或enum
};
^
0_0_22456369_28762\Main.java:54: 错误: 需要class, interface或enum
int fa[N][20],dep[N],ID[N],sz[N],son[N],Top[N];
^
0_0_22456369_28762\Main.java:55: 错误: 需要class, interface或enum
vector<int>E[N];
^
0_0_22456369_28762\Main.java:56: 错误: 需要class, interface或enum
vector<Node>Q[N];
^
0_0_22456369_28762\Main.java:57: 错误: 需要class, interface或enum
void dfs(int x,int f){
^
0_0_22456369_28762\Main.java:60: 错误: 需要class, interface或enum
    dep[x]=dep[f]+1;
    ^
0_0_22456369_28762\Main.java:61: 错误: 需要class, interface或enum
    sz[x]=1;
    ^
0_0_22456369_28762\Main.java:62: 错误: 需要class, interface或enum
    int Mxsz=0,Son=0;
    ^
0_0_22456369_28762\Main.java:64: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
    ^
0_0_22456369_28762\Main.java:64: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                ^
0_0_22456369_28762\Main.java:64: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                              ^
0_0_22456369_28762\Main.java:66: 错误: 需要class, interface或enum
        if(V==f) continue;
        ^
0_0_22456369_28762\Main.java:67: 错误: 需要class, interface或enum
        dfs(V,x);
        ^
0_0_22456369_28762\Main.java:68: 错误: 需要class, interface或enum
        sz[x]+=sz[V];
        ^
0_0_22456369_28762\Main.java:69: 错误: 需要class, interface或enum
        if(sz[V]>Mxsz){
        ^
0_0_22456369_28762\Main.java:71: 错误: 需要class, interface或enum
            Son=V;  
            ^
0_0_22456369_28762\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_22456369_28762\Main.java:78: 错误: 需要class, interface或enum
    Top[x]=top;
    ^
0_0_22456369_28762\Main.java:79: 错误: 需要class, interface或enum
    if(son[x]){
    ^
0_0_22456369_28762\Main.java:81: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:82: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                ^
0_0_22456369_28762\Main.java:82: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                              ^
0_0_22456369_28762\Main.java:84: 错误: 需要class, interface或enum
        if(V==f) continue;
        ^
0_0_22456369_28762\Main.java:85: 错误: 需要class, interface或enum
        if(V==son[x]) continue;
        ^
0_0_22456369_28762\Main.java:86: 错误: 需要class, interface或enum
        rdfs(V,V,x);
        ^
0_0_22456369_28762\Main.java:87: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:93: 错误: 需要class, interface或enum
    rdfs(1,1,0);
    ^
0_0_22456369_28762\Main.java:94: 错误: 需要class, interface或enum
    for(int i=1;i<=19;i++){
    ^
0_0_22456369_28762\Main.java:94: 错误: 需要class, interface或enum
    for(int i=1;i<=19;i++){
                ^
0_0_22456369_28762\Main.java:94: 错误: 需要class, interface或enum
    for(int i=1;i<=19;i++){
                      ^
0_0_22456369_28762\Main.java:95: 错误: 需要class, interface或enum
        for(int j=1;j<=n;j++){
                    ^
0_0_22456369_28762\Main.java:95: 错误: 需要class, interface或enum
        for(int j=1;j<=n;j++){
                         ^
0_0_22456369_28762\Main.java:97: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:102: 错误: 需要class, interface或enum
    memset(fa,0,sizeof(fa));
    ^
0_0_22456369_28762\Main.java:103: 错误: 需要class, interface或enum
    memset(dep,0,sizeof(dep));
    ^
0_0_22456369_28762\Main.java:104: 错误: 需要class, interface或enum
    memset(son,0,sizeof(son));
    ^
0_0_22456369_28762\Main.java:105: 错误: 需要class, interface或enum
    memset(sz,0,sizeof(sz));
    ^
0_0_22456369_28762\Main.java:106: 错误: 需要class, interface或enum
    memset(Top,0,sizeof(Top));
    ^
0_0_22456369_28762\Main.java:107: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) E[i].clear(),Q[i].clear(); 
    ^
0_0_22456369_28762\Main.java:107: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) E[i].clear(),Q[i].clear(); 
                ^
0_0_22456369_28762\Main.java:107: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) E[i].clear(),Q[i].clear(); 
                     ^
0_0_22456369_28762\Main.java:108: 错误: 需要class, interface或enum
    dfn=0;
    ^
0_0_22456369_28762\Main.java:109: 错误: 需要class, interface或enum
}
^
0_0_22456369_28762\Main.java:111: 错误: 需要class, interface或enum
    for(int i=0;i<=19;i++){
                ^
0_0_22456369_28762\Main.java:111: 错误: 需要class, interface或enum
    for(int i=0;i<=19;i++){
                      ^
0_0_22456369_28762\Main.java:114: 错误: 需要class, interface或enum
        }
        ^
0_0_22456369_28762\Main.java:119: 错误: 需要class, interface或enum
    Up(x,dep[x]-dep[y]);
    ^
0_0_22456369_28762\Main.java:120: 错误: 需要class, interface或enum
    if(x!=y){
    ^
0_0_22456369_28762\Main.java:121: 错误: 需要class, interface或enum
        for(int i=19;i>=0;i--){
                     ^
0_0_22456369_28762\Main.java:121: 错误: 需要class, interface或enum
        for(int i=19;i>=0;i--){
                          ^
0_0_22456369_28762\Main.java:124: 错误: 需要class, interface或enum
            }
            ^
0_0_22456369_28762\Main.java:127: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:129: 错误: 需要class, interface或enum
}
^
0_0_22456369_28762\Main.java:132: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
    ^
0_0_22456369_28762\Main.java:132: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                ^
0_0_22456369_28762\Main.java:132: 错误: 需要class, interface或enum
    for(int i=0;i<E[x].size();i++){
                              ^
0_0_22456369_28762\Main.java:134: 错误: 需要class, interface或enum
        if(V==f) continue;
        ^
0_0_22456369_28762\Main.java:135: 错误: 需要class, interface或enum
        DP(V,x);
        ^
0_0_22456369_28762\Main.java:136: 错误: 需要class, interface或enum
        Sum+=dp.Query(ID[V],ID[V],1);
        ^
0_0_22456369_28762\Main.java:137: 错误: 需要class, interface或enum
    }
    ^
0_0_22456369_28762\Main.java:139: 错误: 需要class, interface或enum
    dp.Update(ID[x],Sum,1);
    ^
0_0_22456369_28762\Main.java:144: 错误: 需要class, interface或enum
    for(int i=0;i<Q[x].size();i++){
    ^
0_0_22456369_28762\Mai


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-29 02:32:47, Gzip enabled