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_24982903_7771\Main.java:1: 错误: 需要class, interface或enum
public static void main(String[] args) {
              ^
0_0_24982903_7771\Main.java:3: 错误: 需要class, interface或enum
		int C = sc.nextInt();
		^
0_0_24982903_7771\Main.java:5: 错误: 需要class, interface或enum
		int[] arr = new int[C];
		^
0_0_24982903_7771\Main.java:6: 错误: 需要class, interface或enum
		int[] pos = new int[C];
		^
0_0_24982903_7771\Main.java:8: 错误: 需要class, interface或enum
		for (int i = 0; i < C; i++){
		^
0_0_24982903_7771\Main.java:8: 错误: 需要class, interface或enum
		for (int i = 0; i < C; i++){
		                ^
0_0_24982903_7771\Main.java:8: 错误: 需要class, interface或enum
		for (int i = 0; i < C; i++){
		                       ^
0_0_24982903_7771\Main.java:10: 错误: 需要class, interface或enum
			pos[i] = sc.nextInt();
			^
0_0_24982903_7771\Main.java:12: 错误: 需要class, interface或enum
			int N = arr[i];
			^
0_0_24982903_7771\Main.java:13: 错误: 需要class, interface或enum
			int K = pos[i];
			^
0_0_24982903_7771\Main.java:14: 错误: 需要class, interface或enum
			int[] temp = new int[N];
			^
0_0_24982903_7771\Main.java:15: 错误: 需要class, interface或enum
			for (int j = 0; j < N ;j++){
			^
0_0_24982903_7771\Main.java:15: 错误: 需要class, interface或enum
			for (int j = 0; j < N ;j++){
			                ^
0_0_24982903_7771\Main.java:15: 错误: 需要class, interface或enum
			for (int j = 0; j < N ;j++){
			                       ^
0_0_24982903_7771\Main.java:17: 错误: 需要class, interface或enum
			}
			^
0_0_24982903_7771\Main.java:19: 错误: 需要class, interface或enum
			sort(sub);
			^
0_0_24982903_7771\Main.java:20: 错误: 需要class, interface或enum
			System.out.println(sub[K - 1]);
			^
0_0_24982903_7771\Main.java:21: 错误: 需要class, interface或enum
		}
		^
0_0_24982903_7771\Main.java:24: 错误: 需要class, interface或enum
	}
	^
0_0_24982903_7771\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < arr.length; i++){
		^
0_0_24982903_7771\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < arr.length; i++){
		                ^
0_0_24982903_7771\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < arr.length; i++){
		                                ^
0_0_24982903_7771\Main.java:29: 错误: 需要class, interface或enum
			for (int j = i + 1; j < arr.length; j++){
			                    ^
0_0_24982903_7771\Main.java:29: 错误: 需要class, interface或enum
			for (int j = i + 1; j < arr.length; j++){
			                                    ^
0_0_24982903_7771\Main.java:31: 错误: 需要class, interface或enum
			}
			^
0_0_24982903_7771\Main.java:35: 错误: 需要class, interface或enum
		for (int i = 0; i < subList.size(); i++) {
		^
0_0_24982903_7771\Main.java:35: 错误: 需要class, interface或enum
		for (int i = 0; i < subList.size(); i++) {
		                ^
0_0_24982903_7771\Main.java:35: 错误: 需要class, interface或enum
		for (int i = 0; i < subList.size(); i++) {
		                                    ^
0_0_24982903_7771\Main.java:37: 错误: 需要class, interface或enum
		}
		^
0_0_24982903_7771\Main.java:39: 错误: 需要class, interface或enum
	}
	^
0_0_24982903_7771\Main.java:44: 错误: 需要class, interface或enum
		for (int i = 1; i < arr.length; i++){
		^
0_0_24982903_7771\Main.java:44: 错误: 需要class, interface或enum
		for (int i = 1; i < arr.length; i++){
		                ^
0_0_24982903_7771\Main.java:44: 错误: 需要class, interface或enum
		for (int i = 1; i < arr.length; i++){
		                                ^
0_0_24982903_7771\Main.java:46: 错误: 需要class, interface或enum
			for (j = i ; j > 0 && arr[j - 1] < copy; j--){
			^
0_0_24982903_7771\Main.java:46: 错误: 需要class, interface或enum
			for (j = i ; j > 0 && arr[j - 1] < copy; j--){
			             ^
0_0_24982903_7771\Main.java:46: 错误: 需要class, interface或enum
			for (j = i ; j > 0 && arr[j - 1] < copy; j--){
			                                         ^
0_0_24982903_7771\Main.java:48: 错误: 需要class, interface或enum
			}
			^
0_0_24982903_7771\Main.java:50: 错误: 需要class, interface或enum
		}
		^
0_0_24982903_7771\Main.java:53: 错误: 需要class, interface或enum
	}
	^
39 个错误


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-16 07:44:22, Gzip enabled