0_0_25035253_8900\Main.java:1: 错误: 需要class, interface或enum
public static void main(String[] arg0){
^
0_0_25035253_8900\Main.java:3: 错误: 需要class, interface或enum
int drag[] = new int[20000];
^
0_0_25035253_8900\Main.java:4: 错误: 需要class, interface或enum
int knight[] = new int[20000];
^
0_0_25035253_8900\Main.java:5: 错误: 需要class, interface或enum
Scanner sc = new Scanner(System.in);
^
0_0_25035253_8900\Main.java:6: 错误: 需要class, interface或enum
while((n=sc.nextInt())!=0 && (m=sc.nextInt())!=0){
^
0_0_25035253_8900\Main.java:9: 错误: 需要class, interface或enum
}else {
^
0_0_25035253_8900\Main.java:10: 错误: 需要class, interface或enum
for(int i=0;i<n;i++){
^
0_0_25035253_8900\Main.java:10: 错误: 需要class, interface或enum
for(int i=0;i<n;i++){
^
0_0_25035253_8900\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:13: 错误: 需要class, interface或enum
for(int i=0;i<m;i++){
^
0_0_25035253_8900\Main.java:13: 错误: 需要class, interface或enum
for(int i=0;i<m;i++){
^
0_0_25035253_8900\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:17: 错误: 需要class, interface或enum
quickSort(knight,0,m-1);
^
0_0_25035253_8900\Main.java:18: 错误: 需要class, interface或enum
if(drag[n-1]>knight[m-1]){
^
0_0_25035253_8900\Main.java:20: 错误: 需要class, interface或enum
} else{
^
0_0_25035253_8900\Main.java:22: 错误: 需要class, interface或enum
int j=0;
^
0_0_25035253_8900\Main.java:23: 错误: 需要class, interface或enum
int i=0;
^
0_0_25035253_8900\Main.java:24: 错误: 需要class, interface或enum
for(;i<n;i++){
^
0_0_25035253_8900\Main.java:24: 错误: 需要class, interface或enum
for(;i<n;i++){
^
0_0_25035253_8900\Main.java:24: 错误: 需要class, interface或enum
for(;i<n;i++){
^
0_0_25035253_8900\Main.java:25: 错误: 需要class, interface或enum
for(;j<m;j++){
^
0_0_25035253_8900\Main.java:25: 错误: 需要class, interface或enum
for(;j<m;j++){
^
0_0_25035253_8900\Main.java:28: 错误: 需要class, interface或enum
break;
^
0_0_25035253_8900\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:33: 错误: 需要class, interface或enum
return;
^
0_0_25035253_8900\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:45: 错误: 需要class, interface或enum
public static void print(int a[],int n){
^
0_0_25035253_8900\Main.java:47: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_25035253_8900\Main.java:47: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_25035253_8900\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:53: 错误: 需要class, interface或enum
public static void quickSort(int a[],int left,int right){
^
0_0_25035253_8900\Main.java:57: 错误: 需要class, interface或enum
if (left < right) {
^
0_0_25035253_8900\Main.java:59: 错误: 需要class, interface或enum
quickSort(a,left,partion-1);
^
0_0_25035253_8900\Main.java:60: 错误: 需要class, interface或enum
quickSort(a,partion+1,right);
^
0_0_25035253_8900\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:65: 错误: 需要class, interface或enum
public static int partition(int a[],int left,int right){
^
0_0_25035253_8900\Main.java:67: 错误: 需要class, interface或enum
while(left<right){
^
0_0_25035253_8900\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:73: 错误: 需要class, interface或enum
left++;
^
0_0_25035253_8900\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:81: 错误: 需要class, interface或enum
right--;
^
0_0_25035253_8900\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_25035253_8900\Main.java:86: 错误: 需要class, interface或enum
return left;
^
0_0_25035253_8900\Main.java:88: 错误: 需要class, interface或enum
}
^
47 个错误
|