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_39717521_27025\Main.java:5: 错误: 类RomanCalculator是公共的, 应在名为 RomanCalculator.java 的文件中声明
public class RomanCalculator {
       ^
0_0_39717521_27025\Main.java:59: 错误: 不兼容的类型: Collection<Integer>无法转换为int[]
        int[] values = ROMAN_NUMERALS.values();
                                            ^
0_0_39717521_27025\Main.java:60: 错误: 不兼容的类型: 推论变量 T 具有不兼容的上限 int,Object
        int[] indices = ROMAN_NUMERALS.keySet().toArray(new String[0]);
                                                       ^
  其中, T是类型变量:
    T扩展已在方法 <T>toArray(T[])中声明的Object
3 个错误


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.001000(s) query 1, Server time : 2025-01-10 11:49:20, Gzip enabled