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_37183158_13081\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_37183158_13081\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_37183158_13081\Main.java:2: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_37183158_13081\Main.java:5: 错误: 需要class, interface或enum
const int MAX = 10010;
^
0_0_37183158_13081\Main.java:6: 错误: 需要class, interface或enum
struct element
^
0_0_37183158_13081\Main.java:9: 错误: 需要class, interface或enum
	double satisfaction;
	^
0_0_37183158_13081\Main.java:10: 错误: 需要class, interface或enum
};
^
0_0_37183158_13081\Main.java:12: 错误: 需要class, interface或enum
element Num[MAX][MAX]; //读入数据
^
0_0_37183158_13081\Main.java:13: 错误: 需要class, interface或enum
element Sum[MAX]; //存储最大的K个数据
^
0_0_37183158_13081\Main.java:14: 错误: 需要class, interface或enum
int Out[MAX]; //将最大的K个数据按顺序从大到小排列
^
0_0_37183158_13081\Main.java:16: 错误: 需要class, interface或enum
int cmp1(const element a, const element b)
^
0_0_37183158_13081\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_37183158_13081\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_37183158_13081\Main.java:29: 错误: 需要class, interface或enum
	while (cin >> N >> M >> K)
	^
0_0_37183158_13081\Main.java:32: 错误: 需要class, interface或enum
		for (int i = 1; i <= N; i++)
		^
0_0_37183158_13081\Main.java:32: 错误: 需要class, interface或enum
		for (int i = 1; i <= N; i++)
		                ^
0_0_37183158_13081\Main.java:32: 错误: 需要class, interface或enum
		for (int i = 1; i <= N; i++)
		                        ^
0_0_37183158_13081\Main.java:34: 错误: 需要class, interface或enum
			for (int j = 1; j <= M; j++)
			                ^
0_0_37183158_13081\Main.java:34: 错误: 需要class, interface或enum
			for (int j = 1; j <= M; j++)
			                        ^
0_0_37183158_13081\Main.java:37: 错误: 需要class, interface或enum
				Num[i][j].satisfaction = num;
				^
0_0_37183158_13081\Main.java:38: 错误: 需要class, interface或enum
			}
			^
0_0_37183158_13081\Main.java:42: 错误: 需要class, interface或enum
		for (int j = 1; j <= M; j++)
		^
0_0_37183158_13081\Main.java:42: 错误: 需要class, interface或enum
		for (int j = 1; j <= M; j++)
		                ^
0_0_37183158_13081\Main.java:42: 错误: 需要class, interface或enum
		for (int j = 1; j <= M; j++)
		                        ^
0_0_37183158_13081\Main.java:45: 错误: 需要class, interface或enum
			for (int i = 1; i <= N; i++)
			^
0_0_37183158_13081\Main.java:45: 错误: 需要class, interface或enum
			for (int i = 1; i <= N; i++)
			                ^
0_0_37183158_13081\Main.java:45: 错误: 需要class, interface或enum
			for (int i = 1; i <= N; i++)
			                        ^
0_0_37183158_13081\Main.java:48: 错误: 需要class, interface或enum
			}
			^
0_0_37183158_13081\Main.java:50: 错误: 需要class, interface或enum
			Sum[j].satisfaction = sum; //存储此列的和
			^
0_0_37183158_13081\Main.java:51: 错误: 需要class, interface或enum
		}
		^
0_0_37183158_13081\Main.java:54: 错误: 需要class, interface或enum
		for (int i = 1; i <= K; i++)
		^
0_0_37183158_13081\Main.java:54: 错误: 需要class, interface或enum
		for (int i = 1; i <= K; i++)
		                ^
0_0_37183158_13081\Main.java:54: 错误: 需要class, interface或enum
		for (int i = 1; i <= K; i++)
		                        ^
0_0_37183158_13081\Main.java:56: 错误: 需要class, interface或enum
		sort(Out + 1, Out + K + 1, cmp2); //将列的索引排序
		^
0_0_37183158_13081\Main.java:57: 错误: 需要class, interface或enum
		for (int i = 1; i < K; i++)
		^
0_0_37183158_13081\Main.java:57: 错误: 需要class, interface或enum
		for (int i = 1; i < K; i++)
		                ^
0_0_37183158_13081\Main.java:57: 错误: 需要class, interface或enum
		for (int i = 1; i < K; i++)
		                       ^
0_0_37183158_13081\Main.java:59: 错误: 需要class, interface或enum
		cout << Out[K] << endl;
		^
0_0_37183158_13081\Main.java:60: 错误: 需要class, interface或enum
	}
	^
0_0_37183158_13081\Main.java:62: 错误: 需要class, interface或enum
}
^
40 个错误


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-12-03 07:39:59, Gzip enabled