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_26306690_29305\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_26306690_29305\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_26306690_29305\Main.java:3: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_26306690_29305\Main.java:4: 错误: 非法字符: '#'
#define L(x) son[x][0]
^
0_0_26306690_29305\Main.java:4: 错误: 需要class, interface或enum
#define L(x) son[x][0]
        ^
0_0_26306690_29305\Main.java:5: 错误: 非法字符: '#'
#define R(x) son[x][1]
^
0_0_26306690_29305\Main.java:6: 错误: 非法字符: '#'
#define N 300010
^
0_0_26306690_29305\Main.java:8: 错误: 需要class, interface或enum
vector<int> e[N];
^
0_0_26306690_29305\Main.java:10: 错误: 需要class, interface或enum
struct LCT
^
0_0_26306690_29305\Main.java:13: 错误: 需要class, interface或enum
    int val[N],cov[N],maxval[N],sta[N];
    ^
0_0_26306690_29305\Main.java:14: 错误: 需要class, interface或enum
    bool rev[N];
    ^
0_0_26306690_29305\Main.java:15: 错误: 需要class, interface或enum
    void init(int n)
    ^
0_0_26306690_29305\Main.java:17: 错误: 需要class, interface或enum
        for(int i=0;i<=n;++i)
                    ^
0_0_26306690_29305\Main.java:17: 错误: 需要class, interface或enum
        for(int i=0;i<=n;++i)
                         ^
0_0_26306690_29305\Main.java:20: 错误: 需要class, interface或enum
            pre[i]=0;
            ^
0_0_26306690_29305\Main.java:21: 错误: 需要class, interface或enum
            rev[i]=false;
            ^
0_0_26306690_29305\Main.java:22: 错误: 需要class, interface或enum
            val[i]=cov[i]=maxval[i]=0;
            ^
0_0_26306690_29305\Main.java:23: 错误: 需要class, interface或enum
        }
        ^
0_0_26306690_29305\Main.java:28: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:32: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:36: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:40: 错误: 需要class, interface或enum
        if(L(x)) maxval[x]=max(maxval[x],maxval[L(x)]);
        ^
0_0_26306690_29305\Main.java:41: 错误: 需要class, interface或enum
        if(R(x)) maxval[x]=max(maxval[x],maxval[R(x)]);
        ^
0_0_26306690_29305\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:46: 错误: 需要class, interface或enum
        swap(L(x),R(x));
        ^
0_0_26306690_29305\Main.java:47: 错误: 需要class, interface或enum
        rev[x]^=1;
        ^
0_0_26306690_29305\Main.java:48: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:52: 错误: 需要class, interface或enum
        val[x]+=y;
        ^
0_0_26306690_29305\Main.java:53: 错误: 需要class, interface或enum
        cov[x]+=y;
        ^
0_0_26306690_29305\Main.java:54: 错误: 需要class, interface或enum
        maxval[x]+=y;
        ^
0_0_26306690_29305\Main.java:55: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:59: 错误: 需要class, interface或enum
        if(rev[x])
        ^
0_0_26306690_29305\Main.java:62: 错误: 需要class, interface或enum
            update_rev(R(x));
            ^
0_0_26306690_29305\Main.java:63: 错误: 需要class, interface或enum
            rev[x]=0;
            ^
0_0_26306690_29305\Main.java:64: 错误: 需要class, interface或enum
        }
        ^
0_0_26306690_29305\Main.java:68: 错误: 需要class, interface或enum
            update_add(R(x),cov[x]);
            ^
0_0_26306690_29305\Main.java:69: 错误: 需要class, interface或enum
            cov[x]=0;
            ^
0_0_26306690_29305\Main.java:70: 错误: 需要class, interface或enum
        }
        ^
0_0_26306690_29305\Main.java:76: 错误: 需要class, interface或enum
        sets(fa,son[x][d^1],d);
        ^
0_0_26306690_29305\Main.java:77: 错误: 需要class, interface或enum
        if(root(fa)) pre[x]=pre[fa];
        ^
0_0_26306690_29305\Main.java:78: 错误: 需要class, interface或enum
        else sets(pre[fa],x,which(fa));
        ^
0_0_26306690_29305\Main.java:79: 错误: 需要class, interface或enum
        sets(x,fa,d^1);
        ^
0_0_26306690_29305\Main.java:80: 错误: 需要class, interface或enum
        push_up(fa);
        ^
0_0_26306690_29305\Main.java:81: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:85: 错误: 需要class, interface或enum
        push_down(x);
        ^
0_0_26306690_29305\Main.java:86: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:90: 错误: 需要class, interface或enum
        while(!root(x))
        ^
0_0_26306690_29305\Main.java:93: 错误: 需要class, interface或enum
            else if(which(x)==which(pre[x]))
            ^
0_0_26306690_29305\Main.java:96: 错误: 需要class, interface或enum
                rot(x);
                ^
0_0_26306690_29305\Main.java:97: 错误: 需要class, interface或enum
            }
            ^
0_0_26306690_29305\Main.java:101: 错误: 需要class, interface或enum
                rot(x);
                ^
0_0_26306690_29305\Main.java:102: 错误: 需要class, interface或enum
            }
            ^
0_0_26306690_29305\Main.java:104: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:108: 错误: 需要class, interface或enum
        for(; x; x=pre[y=x])
        ^
0_0_26306690_29305\Main.java:108: 错误: 需要class, interface或enum
        for(; x; x=pre[y=x])
              ^
0_0_26306690_29305\Main.java:108: 错误: 需要class, interface或enum
        for(; x; x=pre[y=x])
                 ^
0_0_26306690_29305\Main.java:111: 错误: 需要class, interface或enum
            sets(x,y,1);
            ^
0_0_26306690_29305\Main.java:112: 错误: 需要class, interface或enum
            push_up(x);
            ^
0_0_26306690_29305\Main.java:113: 错误: 需要class, interface或enum
        }
        ^
0_0_26306690_29305\Main.java:115: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:118: 错误: 需要class, interface或enum
        for(x=Access(x);L(x);x=L(x));
                        ^
0_0_26306690_29305\Main.java:118: 错误: 需要class, interface或enum
        for(x=Access(x);L(x);x=L(x));
                             ^
0_0_26306690_29305\Main.java:119: 错误: 需要class, interface或enum
        return x;
        ^
0_0_26306690_29305\Main.java:120: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:124: 错误: 需要class, interface或enum
        Splay(x);
        ^
0_0_26306690_29305\Main.java:125: 错误: 需要class, interface或enum
        update_rev(x);
        ^
0_0_26306690_29305\Main.java:126: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:130: 错误: 需要class, interface或enum
        pre[x]=y;
        ^
0_0_26306690_29305\Main.java:131: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:135: 错误: 需要class, interface或enum
        Access(y);
        ^
0_0_26306690_29305\Main.java:136: 错误: 需要class, interface或enum
        Splay(y);
        ^
0_0_26306690_29305\Main.java:137: 错误: 需要class, interface或enum
        pre[x]=L(y)=0;
        ^
0_0_26306690_29305\Main.java:138: 错误: 需要class, interface或enum
        push_up(y);
        ^
0_0_26306690_29305\Main.java:139: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:143: 错误: 需要class, interface或enum
        Access(y);
        ^
0_0_26306690_29305\Main.java:144: 错误: 需要class, interface或enum
        Splay(y);
        ^
0_0_26306690_29305\Main.java:145: 错误: 需要class, interface或enum
        int z=L(y);
        ^
0_0_26306690_29305\Main.java:146: 错误: 需要class, interface或enum
        while(true)
        ^
0_0_26306690_29305\Main.java:149: 错误: 需要class, interface或enum
            if(R(z)) z=R(z);
            ^
0_0_26306690_29305\Main.java:150: 错误: 需要class, interface或enum
            else break;
            ^
0_0_26306690_29305\Main.java:151: 错误: 需要class, interface或enum
        }
        ^
0_0_26306690_29305\Main.java:153: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:157: 错误: 需要class, interface或enum
        Access(y);
        ^
0_0_26306690_29305\Main.java:158: 错误: 需要class, interface或enum
        Splay(y);
        ^
0_0_26306690_29305\Main.java:159: 错误: 需要class, interface或enum
        update_add(y,c);
        ^
0_0_26306690_29305\Main.java:160: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:164: 错误: 需要class, interface或enum
        Access(y);
        ^
0_0_26306690_29305\Main.java:165: 错误: 需要class, interface或enum
        Splay(y);
        ^
0_0_26306690_29305\Main.java:166: 错误: 需要class, interface或enum
        return maxval[y];
        ^
0_0_26306690_29305\Main.java:167: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:171: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:174: 错误: 需要class, interface或enum
void dfs(int x,int fa)
^
0_0_26306690_29305\Main.java:180: 错误: 需要class, interface或enum
        dfs(y,x);
        ^
0_0_26306690_29305\Main.java:181: 错误: 需要class, interface或enum
    }
    ^
0_0_26306690_29305\Main.java:188: 错误: 需要class, interface或enum
        for(int i=0;i<=n;++i) e[i].clear();
        ^
0_0_26306690_29305\Main.java:18


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-17 00:06:14, Gzip enabled