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_29379578_27365\Main.java:4: 错误: 需要class, interface或enum
int leapyear(int year)
^
0_0_29379578_27365\Main.java:9: 错误: 需要class, interface或enum
else return 0;
^
0_0_29379578_27365\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_29379578_27365\Main.java:19: 错误: 需要class, interface或enum
	int sum;
	^
0_0_29379578_27365\Main.java:23: 错误: 需要class, interface或enum
	scanf("%d",&t);
	^
0_0_29379578_27365\Main.java:25: 错误: 需要class, interface或enum
while(t--){
^
0_0_29379578_27365\Main.java:29: 错误: 需要class, interface或enum
if( month==2 && day==29) printf("-1\n"); 
^
0_0_29379578_27365\Main.java:30: 错误: 需要class, interface或enum
else
^
0_0_29379578_27365\Main.java:35: 错误: 需要class, interface或enum
if(month>=3){
^
0_0_29379578_27365\Main.java:37: 错误: 需要class, interface或enum
for(y=year+1;y<=year+18;y++){
             ^
0_0_29379578_27365\Main.java:37: 错误: 需要class, interface或enum
for(y=year+1;y<=year+18;y++){
                        ^
0_0_29379578_27365\Main.java:41: 错误: 需要class, interface或enum
else sum+=365;
^
0_0_29379578_27365\Main.java:42: 错误: 需要class, interface或enum
				}
				^
0_0_29379578_27365\Main.java:47: 错误: 需要class, interface或enum
for(y=year;y<=year+17;y++)  {
           ^
0_0_29379578_27365\Main.java:47: 错误: 需要class, interface或enum
for(y=year;y<=year+17;y++)  {
                      ^
0_0_29379578_27365\Main.java:51: 错误: 需要class, interface或enum
else sum+=365;
^
0_0_29379578_27365\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_29379578_27365\Main.java:59: 错误: 需要class, interface或enum
	}
	^
18 个错误


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-25 19:50:19, Gzip enabled