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

613639_0_0_25570\Main.java:17: 不兼容的类型
找到: double
需要: double[]
                storage = in.nextDouble();
                                       ^
613639_0_0_25570\Main.java:18: 不兼容的类型
找到: double
需要: double[]
                cost = in.nextDouble();
                                    ^
613639_0_0_25570\Main.java:40: 运算符 >= 不能应用于 int,double[]
                if(m >= cost){
                     ^
613639_0_0_25570\Main.java:41: 运算符 + 不能应用于 double,double[]
                    sum +=storage;
                        ^
613639_0_0_25570\Main.java:42: 运算符 - 不能应用于 int,double[]
                    m -= cost;
                      ^
613639_0_0_25570\Main.java:47: 运算符 * 不能应用于 int,double[]
                sum+= m*storage/cost;
                       ^
613639_0_0_25570\Main.java:47: 不可转换的类型
找到: <nulltype>
需要: double
                sum+= m*storage/cost;
                               ^
7 错误


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-23 13:41:31, Gzip enabled