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_14699610_28291\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h> 
^
0_0_14699610_28291\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> 
        ^
0_0_14699610_28291\Main.java:3: 错误: 非法字符: '#'
#include<algorithm> 
^
0_0_14699610_28291\Main.java:7: 错误: 非法字符: '#'
#define M 100005 
^
0_0_14699610_28291\Main.java:7: 错误: 需要class, interface或enum
#define M 100005 
        ^
0_0_14699610_28291\Main.java:11: 错误: 需要class, interface或enum
int toLeft[20][M]; 
^
0_0_14699610_28291\Main.java:13: 错误: 需要class, interface或enum
void build(int level,int left,int right){ 
^
0_0_14699610_28291\Main.java:17: 错误: 需要class, interface或enum
int mid=(left+right)>>1; 
^
0_0_14699610_28291\Main.java:19: 错误: 需要class, interface或enum
int i; 
^
0_0_14699610_28291\Main.java:21: 错误: 需要class, interface或enum
int suppose;//假设在中位数sorted[mid]左边的数都全部小于sorted[mid] 
^
0_0_14699610_28291\Main.java:23: 错误: 需要class, interface或enum
suppose=mid-left+1; 
^
0_0_14699610_28291\Main.java:25: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
^
0_0_14699610_28291\Main.java:25: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
           ^
0_0_14699610_28291\Main.java:25: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
                    ^
0_0_14699610_28291\Main.java:31: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:43: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
^
0_0_14699610_28291\Main.java:43: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
           ^
0_0_14699610_28291\Main.java:43: 错误: 需要class, interface或enum
for(i=left;i<=right;i++){ 
                    ^
0_0_14699610_28291\Main.java:49: 错误: 需要class, interface或enum
}else{ 
^
0_0_14699610_28291\Main.java:53: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:59: 错误: 需要class, interface或enum
tree[level+1][lpos++]=tree[level][i]; 
^
0_0_14699610_28291\Main.java:61: 错误: 需要class, interface或enum
}else if(tree[level][i]>sorted[mid]){//划分到中位数右边 
^
0_0_14699610_28291\Main.java:65: 错误: 需要class, interface或enum
}else{//这里,suppose大于0的数划分到中位数的左边 
^
0_0_14699610_28291\Main.java:71: 错误: 需要class, interface或enum
toLeft[level][i]++; 
^
0_0_14699610_28291\Main.java:73: 错误: 需要class, interface或enum
tree[level+1][lpos++]=tree[level][i]; 
^
0_0_14699610_28291\Main.java:75: 错误: 需要class, interface或enum
}else{//表示 
^
0_0_14699610_28291\Main.java:79: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:87: 错误: 需要class, interface或enum
build(level+1,mid+1,right); 
^
0_0_14699610_28291\Main.java:89: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:99: 错误: 需要class, interface或enum
int s;//代表[left,qleft)之间有多个个元素被分到左边 
^
0_0_14699610_28291\Main.java:101: 错误: 需要class, interface或enum
int ss;//[qleft, qright]内将被划分到左子树的元素数目 
^
0_0_14699610_28291\Main.java:103: 错误: 需要class, interface或enum
int mid=(left+right)>>1; 
^
0_0_14699610_28291\Main.java:105: 错误: 需要class, interface或enum
if(left==qleft){ 
^
0_0_14699610_28291\Main.java:109: 错误: 需要class, interface或enum
ss=toLeft[level][qright]; 
^
0_0_14699610_28291\Main.java:111: 错误: 需要class, interface或enum
}else{ 
^
0_0_14699610_28291\Main.java:115: 错误: 需要class, interface或enum
ss=toLeft[level][qright]-s; 
^
0_0_14699610_28291\Main.java:117: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:121: 错误: 需要class, interface或enum
if(k<=ss){//查询左边 
^
0_0_14699610_28291\Main.java:125: 错误: 需要class, interface或enum
newr=left+s+ss-1; 
^
0_0_14699610_28291\Main.java:127: 错误: 需要class, interface或enum
return query(level+1,left,mid,newl,newr,k); 
^
0_0_14699610_28291\Main.java:129: 错误: 需要class, interface或enum
}else{//查询右边 
^
0_0_14699610_28291\Main.java:133: 错误: 需要class, interface或enum
newr=mid-left+1+qright-s-ss; 
^
0_0_14699610_28291\Main.java:135: 错误: 需要class, interface或enum
return query(level+1,mid+1,right,newl, newr,k - ss); 
^
0_0_14699610_28291\Main.java:137: 错误: 需要class, interface或enum
} 
^
0_0_14699610_28291\Main.java:145: 错误: 需要class, interface或enum
while(scanf("%d %d",&n,&m)!=EOF)
^
0_0_14699610_28291\Main.java:151: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++){ 
        ^
0_0_14699610_28291\Main.java:151: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++){ 
                ^
0_0_14699610_28291\Main.java:151: 错误: 需要class, interface或enum
        for(i=1;i<=n;i++){ 
                     ^
0_0_14699610_28291\Main.java:155: 错误: 需要class, interface或enum
            sorted[i]=tree[0][i]; 
            ^
0_0_14699610_28291\Main.java:157: 错误: 需要class, interface或enum
        } 
        ^
0_0_14699610_28291\Main.java:161: 错误: 需要class, interface或enum
        build(0,1,n); 
        ^
0_0_14699610_28291\Main.java:163: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){ 
        ^
0_0_14699610_28291\Main.java:163: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){ 
                ^
0_0_14699610_28291\Main.java:163: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){ 
                    ^
0_0_14699610_28291\Main.java:165: 错误: 需要class, interface或enum
            for(int j=1;j<=n;j++){ 
                        ^
0_0_14699610_28291\Main.java:165: 错误: 需要class, interface或enum
            for(int j=1;j<=n;j++){ 
                             ^
0_0_14699610_28291\Main.java:169: 错误: 需要class, interface或enum
            } 
            ^
0_0_14699610_28291\Main.java:173: 错误: 需要class, interface或enum
        } 
        ^
0_0_14699610_28291\Main.java:177: 错误: 需要class, interface或enum
        for(i=0;i<m;i++){ 
        ^
0_0_14699610_28291\Main.java:177: 错误: 需要class, interface或enum
        for(i=0;i<m;i++){ 
                ^
0_0_14699610_28291\Main.java:177: 错误: 需要class, interface或enum
        for(i=0;i<m;i++){ 
                    ^
0_0_14699610_28291\Main.java:181: 错误: 需要class, interface或enum
            printf("%d\n",query(0,1,n,ql,qr,k)); 
            ^
0_0_14699610_28291\Main.java:183: 错误: 需要class, interface或enum
        } 
        ^
0_0_14699610_28291\Main.java:189: 错误: 需要class, interface或enum
} 个数据被分到了左边(注意这里用的是闭区间)。
^
0_0_14699610_28291\Main.java:189: 错误: 非法字符: '\uff08'
} 个数据被分到了左边(注意这里用的是闭区间)。
           ^
0_0_14699610_28291\Main.java:189: 错误: 非法字符: '\uff09'
} 个数据被分到了左边(注意这里用的是闭区间)。
                      ^
0_0_14699610_28291\Main.java:189: 错误: 非法字符: '\u3002'
} 个数据被分到了左边(注意这里用的是闭区间)。
                       ^
67 个错误


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-26 12:49:51, Gzip enabled