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_9858450_3791\Main.java:1: 需要为 class、interface 或 enum
include<iostream>
^
0_0_9858450_3791\Main.java:3: 需要为 class、interface 或 enum
bool leapyear(const int &year)  //修改了函数
^
0_0_9858450_3791\Main.java:6: 需要为 class、interface 或 enum
}
^
0_0_9858450_3791\Main.java:11: 需要为 class、interface 或 enum
    const char *s[]= {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Satursday",};
    ^
0_0_9858450_3791\Main.java:12: 需要为 class、interface 或 enum
    int a[]= {0,31,28,31,30,31,30,31,31,30,31,30,31};
    ^
0_0_9858450_3791\Main.java:13: 需要为 class、interface 或 enum
    int m,d,y;
    ^
0_0_9858450_3791\Main.java:14: 需要为 class、interface 或 enum
    char ch=',';
    ^
0_0_9858450_3791\Main.java:15: 需要为 class、interface 或 enum
    while(cin>>m>>d>>y,m+d+y) {
    ^
0_0_9858450_3791\Main.java:17: 需要为 class、interface 或 enum
        if(m<1||m>12||d<1||d>31) {
        ^
0_0_9858450_3791\Main.java:19: 需要为 class、interface 或 enum
            break;
            ^
0_0_9858450_3791\Main.java:20: 需要为 class、interface 或 enum
        } else if(leapyear(y)&&d>29&&m==2) {
        ^
0_0_9858450_3791\Main.java:22: 需要为 class、interface 或 enum
            break;
            ^
0_0_9858450_3791\Main.java:23: 需要为 class、interface 或 enum
        } else if(leapyear(y)!=1&&m==2&&d>28) {
        ^
0_0_9858450_3791\Main.java:25: 需要为 class、interface 或 enum
            break;
            ^
0_0_9858450_3791\Main.java:26: 需要为 class、interface 或 enum
        } else {
        ^
0_0_9858450_3791\Main.java:27: 需要为 class、interface 或 enum
            for(int i=0; i<y; i++) {
                         ^
0_0_9858450_3791\Main.java:27: 需要为 class、interface 或 enum
            for(int i=0; i<y; i++) {
                              ^
0_0_9858450_3791\Main.java:30: 需要为 class、interface 或 enum
                else
                ^
0_0_9858450_3791\Main.java:33: 需要为 class、interface 或 enum
            }
            ^
0_0_9858450_3791\Main.java:34: 需要为 class、interface 或 enum
            for(int i=0; i<m; i++)
                         ^
0_0_9858450_3791\Main.java:34: 需要为 class、interface 或 enum
            for(int i=0; i<m; i++)
                              ^
0_0_9858450_3791\Main.java:36: 需要为 class、interface 或 enum
            if(leapyear(y)&&m>2)
            ^
0_0_9858450_3791\Main.java:38: 需要为 class、interface 或 enum
            sum=sum+d;
            ^
0_0_9858450_3791\Main.java:39: 需要为 class、interface 或 enum
            cout<<month[m-1]<<" "<<d<<ch<<" "<<y<<" is a "<<s[sum%7]<<endl;
            ^
0_0_9858450_3791\Main.java:40: 需要为 class、interface 或 enum
        }
        ^
0_0_9858450_3791\Main.java:44: 需要为 class、interface 或 enum
}


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-29 03:01:01, Gzip enabled