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_26100803_3587\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_26100803_3587\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_26100803_3587\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_26100803_3587\Main.java:4: 错误: 需要class, interface或enum
int fa[N],ch[N][2],n,m,sfa[N],vis[N];bool rt[N];
^
0_0_26100803_3587\Main.java:4: 错误: 需要class, interface或enum
int fa[N],ch[N][2],n,m,sfa[N],vis[N];bool rt[N];
                                     ^
0_0_26100803_3587\Main.java:5: 错误: 需要class, interface或enum
int getSon(int x) {
^
0_0_26100803_3587\Main.java:7: 错误: 需要class, interface或enum
}
^
0_0_26100803_3587\Main.java:10: 错误: 需要class, interface或enum
    ch[f][d]=ch[x][d^1];
    ^
0_0_26100803_3587\Main.java:11: 错误: 需要class, interface或enum
    if(ch[x][d^1]) fa[ch[x][d^1]]=f;
    ^
0_0_26100803_3587\Main.java:12: 错误: 需要class, interface或enum
    ch[x][d^1]=f;fa[f]=x;fa[x]=ff;
    ^
0_0_26100803_3587\Main.java:12: 错误: 需要class, interface或enum
    ch[x][d^1]=f;fa[f]=x;fa[x]=ff;
                 ^
0_0_26100803_3587\Main.java:12: 错误: 需要class, interface或enum
    ch[x][d^1]=f;fa[f]=x;fa[x]=ff;
                         ^
0_0_26100803_3587\Main.java:13: 错误: 需要class, interface或enum
    if(rt[f]) rt[f]=0,rt[x]=1;
    ^
0_0_26100803_3587\Main.java:14: 错误: 需要class, interface或enum
    else ch[ff][d2]=x;
    ^
0_0_26100803_3587\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_26100803_3587\Main.java:17: 错误: 需要class, interface或enum
    for(int f,ff;!rt[x];rotate(x)) {
                 ^
0_0_26100803_3587\Main.java:17: 错误: 需要class, interface或enum
    for(int f,ff;!rt[x];rotate(x)) {
                        ^
0_0_26100803_3587\Main.java:18: 错误: 需要class, interface或enum
        f=fa[x];ff=fa[f];
                ^
0_0_26100803_3587\Main.java:19: 错误: 需要class, interface或enum
        if(rt[f]);
        ^
0_0_26100803_3587\Main.java:20: 错误: 需要class, interface或enum
        else if(getSon(x)==getSon(f)) rotate(f);
        ^
0_0_26100803_3587\Main.java:21: 错误: 需要class, interface或enum
        else rotate(x);
        ^
0_0_26100803_3587\Main.java:22: 错误: 需要class, interface或enum
    }
    ^
0_0_26100803_3587\Main.java:25: 错误: 需要class, interface或enum
    for(int y=0;x;x=fa[y=x]) {
                ^
0_0_26100803_3587\Main.java:25: 错误: 需要class, interface或enum
    for(int y=0;x;x=fa[y=x]) {
                  ^
0_0_26100803_3587\Main.java:27: 错误: 需要class, interface或enum
        rt[ch[x][1]]=1;
        ^
0_0_26100803_3587\Main.java:28: 错误: 需要class, interface或enum
        rt[ch[x][1]=y]=0;
        ^
0_0_26100803_3587\Main.java:29: 错误: 需要class, interface或enum
    }
    ^
0_0_26100803_3587\Main.java:32: 错误: 需要class, interface或enum
    access(x);splay(x);
              ^
0_0_26100803_3587\Main.java:33: 错误: 需要class, interface或enum
    for(;ch[x][0];x=ch[x][0]);return x;
    ^
0_0_26100803_3587\Main.java:33: 错误: 需要class, interface或enum
    for(;ch[x][0];x=ch[x][0]);return x;
         ^
0_0_26100803_3587\Main.java:33: 错误: 需要class, interface或enum
    for(;ch[x][0];x=ch[x][0]);return x;
                  ^
0_0_26100803_3587\Main.java:33: 错误: 需要class, interface或enum
    for(;ch[x][0];x=ch[x][0]);return x;
                              ^
0_0_26100803_3587\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_26100803_3587\Main.java:37: 错误: 需要class, interface或enum
    if(sfa[root]) return -1;
    ^
0_0_26100803_3587\Main.java:38: 错误: 需要class, interface或enum
    return root;
    ^
0_0_26100803_3587\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_26100803_3587\Main.java:42: 错误: 需要class, interface或enum
    if(x==root) sfa[x]=0;
    ^
0_0_26100803_3587\Main.java:43: 错误: 需要class, interface或enum
    else {
    ^
0_0_26100803_3587\Main.java:44: 错误: 需要class, interface或enum
        access(x);splay(x);
                  ^
0_0_26100803_3587\Main.java:45: 错误: 需要class, interface或enum
        rt[ch[x][0]]=1;fa[ch[x][0]]=0;
        ^
0_0_26100803_3587\Main.java:45: 错误: 需要class, interface或enum
        rt[ch[x][0]]=1;fa[ch[x][0]]=0;
                       ^
0_0_26100803_3587\Main.java:46: 错误: 需要class, interface或enum
        ch[x][0]=0;
        ^
0_0_26100803_3587\Main.java:47: 错误: 需要class, interface或enum
        if(sfa[root]&&find_root(sfa[root])==x) {
        ^
0_0_26100803_3587\Main.java:48: 错误: 需要class, interface或enum
            access(root);splay(root);
                         ^
0_0_26100803_3587\Main.java:49: 错误: 需要class, interface或enum
            fa[root]=sfa[root];
            ^
0_0_26100803_3587\Main.java:50: 错误: 需要class, interface或enum
            sfa[root]=0;
            ^
0_0_26100803_3587\Main.java:51: 错误: 需要class, interface或enum
        }
        ^
0_0_26100803_3587\Main.java:53: 错误: 需要class, interface或enum
    access(x);splay(x);
              ^
0_0_26100803_3587\Main.java:54: 错误: 需要class, interface或enum
    if(to&&find_root(to)==x) sfa[x]=to;
    ^
0_0_26100803_3587\Main.java:55: 错误: 需要class, interface或enum
    else fa[x]=to;
    ^
0_0_26100803_3587\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_26100803_3587\Main.java:59: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) scanf("%d",fa+i),rt[i]=1;
    ^
0_0_26100803_3587\Main.java:59: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) scanf("%d",fa+i),rt[i]=1;
                ^
0_0_26100803_3587\Main.java:59: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) scanf("%d",fa+i),rt[i]=1;
                     ^
0_0_26100803_3587\Main.java:60: 错误: 需要class, interface或enum
    int tot=0;
    ^
0_0_26100803_3587\Main.java:61: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) if(!vis[i]) {
    ^
0_0_26100803_3587\Main.java:61: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) if(!vis[i]) {
                ^
0_0_26100803_3587\Main.java:61: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++) if(!vis[i]) {
                     ^
0_0_26100803_3587\Main.java:62: 错误: 需要class, interface或enum
        int now=i,to;++tot;
                     ^
0_0_26100803_3587\Main.java:63: 错误: 需要class, interface或enum
        while(1) {
        ^
0_0_26100803_3587\Main.java:65: 错误: 需要class, interface或enum
            to=fa[now];
            ^
0_0_26100803_3587\Main.java:66: 错误: 需要class, interface或enum
            if(!to) break;
            ^
0_0_26100803_3587\Main.java:67: 错误: 需要class, interface或enum
            else if(!vis[to]) {
            ^
0_0_26100803_3587\Main.java:68: 错误: 需要class, interface或enum
                now=to;continue;
                       ^
0_0_26100803_3587\Main.java:69: 错误: 需要class, interface或enum
            }
            ^
0_0_26100803_3587\Main.java:71: 错误: 需要class, interface或enum
                sfa[now]=to;fa[to]=0;
                            ^
0_0_26100803_3587\Main.java:72: 错误: 需要class, interface或enum
            }
            ^
0_0_26100803_3587\Main.java:74: 错误: 需要class, interface或enum
        }
        ^
0_0_26100803_3587\Main.java:77: 错误: 需要class, interface或enum
    while(m--) {
    ^
0_0_26100803_3587\Main.java:79: 错误: 需要class, interface或enum
        if(op==2) printf("%d\n",query(x));
        ^
0_0_26100803_3587\Main.java:80: 错误: 需要class, interface或enum
        else {
        ^
0_0_26100803_3587\Main.java:82: 错误: 需要class, interface或enum
            update(x,y);
            ^
0_0_26100803_3587\Main.java:83: 错误: 需要class, interface或enum
        }
        ^
0_0_26100803_3587\Main.java:86: 错误: 需要class, interface或enum
}
^
74 个错误


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-27 05:37:05, Gzip enabled