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_39740882_3301\Main.java:15: 错误: 类HDU1873Solution是公共的, 应在名为 HDU1873Solution.java 的文件中声明
public class HDU1873Solution {
       ^
0_0_39740882_3301\Main.java:10: 错误: 无法从静态上下文中引用非静态 变量 this
        this.id = id;
        ^
0_0_39740882_3301\Main.java:11: 错误: 无法从静态上下文中引用非静态 变量 this
        this.priority = priority;
        ^
0_0_39740882_3301\Main.java:23: 错误: 找不到符号
            List<Patient> ordinaryQueue = new ArrayList<>();
                 ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
0_0_39740882_3301\Main.java:24: 错误: 找不到符号
            List<Patient> priorityQueue = new ArrayList<>();
                 ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
0_0_39740882_3301\Main.java:30: 错误: 找不到符号
                    Patient patient = new Patient(id, priority);
                    ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
0_0_39740882_3301\Main.java:30: 错误: 找不到符号
                    Patient patient = new Patient(id, priority);
                                          ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
0_0_39740882_3301\Main.java:38: 错误: 找不到符号
                        Patient patient = priorityQueue.remove(0);
                        ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
0_0_39740882_3301\Main.java:41: 错误: 找不到符号
                        Patient patient = ordinaryQueue.remove(0);
                        ^
  符号:   类 Patient
  位置: 类 HDU1873Solution
9 个错误


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-25 09:32:03, Gzip enabled