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_31930129_24551\Main.java:51: 错误: 需要class, interface或enum
	private int num;  //编号	private String doctor = null;//医生的编号这里就是(1,2,3)
	        ^
0_0_31930129_24551\Main.java:52: 错误: 需要class, interface或enum
	private String Priority = null; //优先级(根据题目给的)
	        ^
0_0_31930129_24551\Main.java:54: 错误: 需要class, interface或enum
	public patient(int num, String doctor, String priority) {
	       ^
0_0_31930129_24551\Main.java:56: 错误: 需要class, interface或enum
	this.doctor = doctor;
	^
0_0_31930129_24551\Main.java:57: 错误: 需要class, interface或enum
	Priority = priority;
	^
0_0_31930129_24551\Main.java:58: 错误: 需要class, interface或enum
	}
	^
0_0_31930129_24551\Main.java:59: 错误: 需要class, interface或enum
	public int getNum() { //获取病人编号
	       ^
0_0_31930129_24551\Main.java:60: 错误: 需要class, interface或enum
	return num;	}
	           	^
0_0_31930129_24551\Main.java:61: 错误: 需要class, interface或enum
	public String getDoctor() { //获取医生编号
	       ^
0_0_31930129_24551\Main.java:62: 错误: 需要class, interface或enum
	return doctor;	}
	              	^
0_0_31930129_24551\Main.java:63: 错误: 需要class, interface或enum
	public String getPriority() {
	       ^
0_0_31930129_24551\Main.java:66: 错误: 需要class, interface或enum
	}
	^
12 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 00:30:06, Gzip enabled