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_2779308_10699\Main.java:4: 需要为 class、interface 或 enum
    public static boolean isLeapYear(int year) {
                  ^
0_0_2779308_10699\Main.java:6: 需要为 class、interface 或 enum
    }
    ^
0_0_2779308_10699\Main.java:14: 需要为 class、interface 或 enum
    public static int getDays(int bYear, int bMonth, int bDay) {
                  ^
0_0_2779308_10699\Main.java:19: 需要为 class、interface 或 enum
        int startYear = bYear;
        ^
0_0_2779308_10699\Main.java:20: 需要为 class、interface 或 enum
        int endYear = bYear + 18 - 1;
        ^
0_0_2779308_10699\Main.java:21: 需要为 class、interface 或 enum
        if (!isLeapYear(bYear) || bMonth > 2) {
        ^
0_0_2779308_10699\Main.java:23: 需要为 class、interface 或 enum
            endYear++;
            ^
0_0_2779308_10699\Main.java:24: 需要为 class、interface 或 enum
        }
        ^
0_0_2779308_10699\Main.java:28: 需要为 class、interface 或 enum
        }
        ^
0_0_2779308_10699\Main.java:32: 需要为 class、interface 或 enum
        int centuryYear = endYear / 100 * 100;
        ^
0_0_2779308_10699\Main.java:34: 需要为 class、interface 或 enum
        if (centuryYear >= startYear && centuryYear % 400 != 0)
        ^
0_0_2779308_10699\Main.java:37: 需要为 class、interface 或 enum
        System.out.println(bYear + "-" + bMonth + "-" + bDay + "至" + (bYear + 18) + "-" + bMonth + "-" + bDay + "\t共计" + days + "天");
        ^
0_0_2779308_10699\Main.java:38: 需要为 class、interface 或 enum
        for (int year = startYear; year <= endYear; year += 4)
        ^
0_0_2779308_10699\Main.java:38: 需要为 class、interface 或 enum
        for (int year = startYear; year <= endYear; year += 4)
                                   ^
0_0_2779308_10699\Main.java:38: 需要为 class、interface 或 enum
        for (int year = startYear; year <= endYear; year += 4)
                                                    ^
0_0_2779308_10699\Main.java:42: 需要为 class、interface 或 enum
        return days;
        ^
0_0_2779308_10699\Main.java:43: 需要为 class、interface 或 enum
    }
    ^
17 错误


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-24 23:55:16, Gzip enabled