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_19977812_27211\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_19977812_27211\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_19977812_27211\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_19977812_27211\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_19977812_27211\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_19977812_27211\Main.java:5: 错误: 非法字符: '#'
#define Key_value ch[ch[root][1]][0]
^
0_0_19977812_27211\Main.java:7: 错误: 需要class, interface或enum
const int maxn=100010;
^
0_0_19977812_27211\Main.java:8: 错误: 需要class, interface或enum
int pre[maxn],ch[maxn][2],size[maxn],rev[maxn],key[maxn];
^
0_0_19977812_27211\Main.java:9: 错误: 需要class, interface或enum
int root,tot1;
^
0_0_19977812_27211\Main.java:10: 错误: 需要class, interface或enum
int n;
^
0_0_19977812_27211\Main.java:11: 错误: 需要class, interface或enum
void debug(int x)
^
0_0_19977812_27211\Main.java:16: 错误: 需要class, interface或enum
        printf("结点 %2d:左儿子 %2d 右儿子 %2d  父结点 %2d key=%2d,size=%2d,rev=%2d\n",x,ch[x][0],ch[x][1],pre[x],key[x],size[x],rev[x]);
        ^
0_0_19977812_27211\Main.java:17: 错误: 需要class, interface或enum
        debug(ch[x][1]);
        ^
0_0_19977812_27211\Main.java:18: 错误: 需要class, interface或enum
    }
    ^
0_0_19977812_27211\Main.java:23: 错误: 需要class, interface或enum
    key[r]=k;
    ^
0_0_19977812_27211\Main.java:24: 错误: 需要class, interface或enum
    pre[r]=father;
    ^
0_0_19977812_27211\Main.java:25: 错误: 需要class, interface或enum
    ch[r][0]=ch[r][1]=0;
    ^
0_0_19977812_27211\Main.java:26: 错误: 需要class, interface或enum
    size[r]=1;
    ^
0_0_19977812_27211\Main.java:27: 错误: 需要class, interface或enum
    rev[r]=0;
    ^
0_0_19977812_27211\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:32: 错误: 需要class, interface或enum
    swap(ch[r][0],ch[r][1]);
    ^
0_0_19977812_27211\Main.java:33: 错误: 需要class, interface或enum
    rev[r]^=1;
    ^
0_0_19977812_27211\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:44: 错误: 需要class, interface或enum
        Update_Rev(ch[r][1]);
        ^
0_0_19977812_27211\Main.java:45: 错误: 需要class, interface或enum
        rev[r]=0;
        ^
0_0_19977812_27211\Main.java:46: 错误: 需要class, interface或enum
    }
    ^
0_0_19977812_27211\Main.java:51: 错误: 需要class, interface或enum
    int mid=(l+r)/2;
    ^
0_0_19977812_27211\Main.java:52: 错误: 需要class, interface或enum
    NewNode(x,father,mid);
    ^
0_0_19977812_27211\Main.java:53: 错误: 需要class, interface或enum
    Build(ch[x][0],l,mid-1,x);
    ^
0_0_19977812_27211\Main.java:54: 错误: 需要class, interface或enum
    Build(ch[x][1],mid+1,r,x);
    ^
0_0_19977812_27211\Main.java:55: 错误: 需要class, interface或enum
    Push_Up(x);
    ^
0_0_19977812_27211\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:60: 错误: 需要class, interface或enum
    ch[root][0]=ch[root][1]=0;
    ^
0_0_19977812_27211\Main.java:61: 错误: 需要class, interface或enum
    key[root]=pre[root]=size[root]=rev[root]=0;
    ^
0_0_19977812_27211\Main.java:62: 错误: 需要class, interface或enum
    NewNode(root,0,-1);
    ^
0_0_19977812_27211\Main.java:63: 错误: 需要class, interface或enum
    NewNode(ch[root][1],root,-1);
    ^
0_0_19977812_27211\Main.java:64: 错误: 需要class, interface或enum
    Build(Key_value,1,n,ch[root][1]);
    ^
0_0_19977812_27211\Main.java:65: 错误: 需要class, interface或enum
    Push_Up(ch[root][1]);
    ^
0_0_19977812_27211\Main.java:66: 错误: 需要class, interface或enum
    Push_Up(root);
    ^
0_0_19977812_27211\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:71: 错误: 需要class, interface或enum
    Push_down(y);
    ^
0_0_19977812_27211\Main.java:72: 错误: 需要class, interface或enum
    Push_down(x);
    ^
0_0_19977812_27211\Main.java:73: 错误: 需要class, interface或enum
    ch[y][!kind]=ch[x][kind];
    ^
0_0_19977812_27211\Main.java:74: 错误: 需要class, interface或enum
    pre[ch[x][kind]]=y;
    ^
0_0_19977812_27211\Main.java:75: 错误: 需要class, interface或enum
    if(pre[y])
    ^
0_0_19977812_27211\Main.java:77: 错误: 需要class, interface或enum
    pre[x]=pre[y];
    ^
0_0_19977812_27211\Main.java:78: 错误: 需要class, interface或enum
    ch[x][kind]=y;
    ^
0_0_19977812_27211\Main.java:79: 错误: 需要class, interface或enum
    pre[y]=x;
    ^
0_0_19977812_27211\Main.java:80: 错误: 需要class, interface或enum
    Push_Up(y);
    ^
0_0_19977812_27211\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:85: 错误: 需要class, interface或enum
    while(pre[r]!=goal)
    ^
0_0_19977812_27211\Main.java:90: 错误: 需要class, interface或enum
            Push_down(r);
            ^
0_0_19977812_27211\Main.java:91: 错误: 需要class, interface或enum
            Rotate(r,ch[pre[r]][0]==r);
            ^
0_0_19977812_27211\Main.java:92: 错误: 需要class, interface或enum
        }
        ^
0_0_19977812_27211\Main.java:96: 错误: 需要class, interface或enum
            Push_down(pre[r]);
            ^
0_0_19977812_27211\Main.java:97: 错误: 需要class, interface或enum
            Push_down(r);
            ^
0_0_19977812_27211\Main.java:98: 错误: 需要class, interface或enum
            int y=pre[r];
            ^
0_0_19977812_27211\Main.java:99: 错误: 需要class, interface或enum
            int kind=(ch[pre[y]][0]==y);
            ^
0_0_19977812_27211\Main.java:100: 错误: 需要class, interface或enum
            if(ch[y][kind]==r)
            ^
0_0_19977812_27211\Main.java:103: 错误: 需要class, interface或enum
                Rotate(r,kind);
                ^
0_0_19977812_27211\Main.java:104: 错误: 需要class, interface或enum
            }
            ^
0_0_19977812_27211\Main.java:108: 错误: 需要class, interface或enum
                Rotate(r,kind);
                ^
0_0_19977812_27211\Main.java:109: 错误: 需要class, interface或enum
            }
            ^
0_0_19977812_27211\Main.java:113: 错误: 需要class, interface或enum
    if(goal==0) root=r;
    ^
0_0_19977812_27211\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:118: 错误: 需要class, interface或enum
    int t=size[ch[r][0]]+1;
    ^
0_0_19977812_27211\Main.java:119: 错误: 需要class, interface或enum
    if(t==k) return r;
    ^
0_0_19977812_27211\Main.java:120: 错误: 需要class, interface或enum
    if(t>k) return get_kth(ch[r][0],k);
    ^
0_0_19977812_27211\Main.java:121: 错误: 需要class, interface或enum
    else return get_kth(ch[r][1],k-t);
    ^
0_0_19977812_27211\Main.java:122: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:126: 错误: 需要class, interface或enum
    Splay(get_kth(root,r+2),root);
    ^
0_0_19977812_27211\Main.java:127: 错误: 需要class, interface或enum
    int tmp=Key_value;
    ^
0_0_19977812_27211\Main.java:128: 错误: 需要class, interface或enum
    Key_value=0;
    ^
0_0_19977812_27211\Main.java:129: 错误: 需要class, interface或enum
    Push_Up(ch[root][1]);
    ^
0_0_19977812_27211\Main.java:130: 错误: 需要class, interface或enum
    Push_Up(root);
    ^
0_0_19977812_27211\Main.java:131: 错误: 需要class, interface或enum
    Splay(get_kth(root,c+1),0);
    ^
0_0_19977812_27211\Main.java:132: 错误: 需要class, interface或enum
    Splay(get_kth(root,c+2),root);
    ^
0_0_19977812_27211\Main.java:133: 错误: 需要class, interface或enum
    Key_value=tmp;
    ^
0_0_19977812_27211\Main.java:134: 错误: 需要class, interface或enum
    pre[Key_value]=ch[root][1];
    ^
0_0_19977812_27211\Main.java:135: 错误: 需要class, interface或enum
    Push_Up(ch[root][1]);
    ^
0_0_19977812_27211\Main.java:136: 错误: 需要class, interface或enum
    Push_Up(root);
    ^
0_0_19977812_27211\Main.java:137: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:141: 错误: 需要class, interface或enum
    Splay(get_kth(root,r+2),root);
    ^
0_0_19977812_27211\Main.java:142: 错误: 需要class, interface或enum
    Update_Rev(Key_value);
    ^
0_0_19977812_27211\Main.java:143: 错误: 需要class, interface或enum
    Push_Up(ch[root][1]);
    ^
0_0_19977812_27211\Main.java:144: 错误: 需要class, interface或enum
    Push_Up(root);
    ^
0_0_19977812_27211\Main.java:145: 错误: 需要class, interface或enum
}
^
0_0_19977812_27211\Main.java:147: 错误: 需要class, interface或enum
void Read(int r)
^
0_0_19977812_27211\Main.java:150: 错误: 需要class, interface或enum
    if(r)
    ^
0_0_19977812_27211\Main.java:153: 错误: 需要class, interface或enum
        if(key[r]>0)
        ^
0_0_19977812_27211\Main.java:156: 错误: 需要class, interface或enum
            printf("%d%c",key[r],cnt==n?'\n':' ');
            ^
0_0_19977812_27211\Main.java:157: 错误: 需要class, interface或enum
        }
        ^
0_0_19977812_27211\Main.java:159: 错误: 需要class, interface或enum
    }
    ^
0_0_19977812_27211\Main.java:164: 错误: 需要class, interface或enum
    int m,x,y,z;
    ^
0_0_19977812_27211\Main.java:165: 错误: 需要class, interface或enum
    while(~scanf("%d%d",&n,&m))
    ^
0_0_19977812_27211\Main.java:169: 错误: 需要


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-19 22:44:40, Gzip enabled