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_8356040_24515\Main.java:2: 需要为 class、interface 或 enum
 2 import java.util.Scanner;
 ^
0_0_8356040_24515\Main.java:3: 需要为 class、interface 或 enum
 3 public class Main{
 ^
0_0_8356040_24515\Main.java:4: 非法的类型开始
 4     public static double Sum(int n,int m){
 ^
0_0_8356040_24515\Main.java:4: 需要 ';'
 4     public static double Sum(int n,int m){
  ^
0_0_8356040_24515\Main.java:5: 不是语句
 5         double sum = 0;
 ^
0_0_8356040_24515\Main.java:5: 需要 ';'
 5         double sum = 0;
  ^
0_0_8356040_24515\Main.java:6: 不是语句
 6         double temp = n;
 ^
0_0_8356040_24515\Main.java:6: 需要 ';'
 6         double temp = n;
  ^
0_0_8356040_24515\Main.java:7: 不是语句
 7         for(int i=1;i<=m;i++){
 ^
0_0_8356040_24515\Main.java:7: 需要 ';'
 7         for(int i=1;i<=m;i++){
  ^
0_0_8356040_24515\Main.java:8: 不是语句
 8             sum += temp;
 ^
0_0_8356040_24515\Main.java:8: 需要 ';'
 8             sum += temp;
  ^
0_0_8356040_24515\Main.java:9: 不是语句
 9             temp = Math.sqrt(temp);
 ^
0_0_8356040_24515\Main.java:9: 需要 ';'
 9             temp = Math.sqrt(temp);
  ^
0_0_8356040_24515\Main.java:10: 不是语句
10         }
^
0_0_8356040_24515\Main.java:10: 需要 ';'
10         }
  ^
0_0_8356040_24515\Main.java:11: 不是语句
11         return sum;
^
0_0_8356040_24515\Main.java:11: 需要 ';'
11         return sum;
  ^
0_0_8356040_24515\Main.java:12: 不是语句
12     }
^
0_0_8356040_24515\Main.java:12: 需要 ';'
12     }
  ^
0_0_8356040_24515\Main.java:13: 非法的类型开始
13     public static void main(String[] args) {
^
0_0_8356040_24515\Main.java:13: 需要 ';'
13     public static void main(String[] args) {
  ^
0_0_8356040_24515\Main.java:14: 不是语句
14         Scanner scan = new Scanner(System.in);
^
0_0_8356040_24515\Main.java:14: 需要 ';'
14         Scanner scan = new Scanner(System.in);
  ^
0_0_8356040_24515\Main.java:15: 不是语句
15         int m,n;
^
0_0_8356040_24515\Main.java:15: 需要 ';'
15         int m,n;
  ^
0_0_8356040_24515\Main.java:16: 不是语句
16         while(scan.hasNextInt()){
^
0_0_8356040_24515\Main.java:16: 需要 ';'
16         while(scan.hasNextInt()){
  ^
0_0_8356040_24515\Main.java:17: 不是语句
17             n = scan.nextInt();
^
0_0_8356040_24515\Main.java:17: 需要 ';'
17             n = scan.nextInt();
  ^
0_0_8356040_24515\Main.java:18: 不是语句
18             m = scan.nextInt();
^
0_0_8356040_24515\Main.java:18: 需要 ';'
18             m = scan.nextInt();
  ^
0_0_8356040_24515\Main.java:19: 不是语句
19             DecimalFormat mydf = new  DecimalFormat("#####0.00");
^
0_0_8356040_24515\Main.java:19: 需要 ';'
19             DecimalFormat mydf = new  DecimalFormat("#####0.00");
  ^
0_0_8356040_24515\Main.java:20: 不是语句
20             System.out.println(mydf.format(Sum(n,m)));
^
0_0_8356040_24515\Main.java:20: 需要 ';'
20             System.out.println(mydf.format(Sum(n,m)));
  ^
0_0_8356040_24515\Main.java:21: 不是语句
21         }
^
0_0_8356040_24515\Main.java:21: 需要 ';'
21         }
  ^
0_0_8356040_24515\Main.java:22: 不是语句
22     }
^
0_0_8356040_24515\Main.java:22: 需要 ';'
22     }
  ^
0_0_8356040_24515\Main.java:23: 非法的类型开始
23 }


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-15 23:18:11, Gzip enabled