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_35105320_107\Main.java:1: 错误: 需要<标识符>
import?java.util.Calendar;?
      ^
0_0_35105320_107\Main.java:1: 错误: 需要class, interface或enum
import?java.util.Calendar;?
                          ^
0_0_35105320_107\Main.java:3: 错误: 需要<标识符>
import?java.util.Date;?
      ^
0_0_35105320_107\Main.java:3: 错误: 需要class, interface或enum
import?java.util.Date;?
                      ^
0_0_35105320_107\Main.java:7: 错误: 需要class, interface或enum
public?class?CalendarDemo?
      ^
0_0_35105320_107\Main.java:7: 错误: 需要<标识符>
public?class?CalendarDemo?
            ^
0_0_35105320_107\Main.java:7: 错误: 需要<标识符>
public?class?CalendarDemo?
                         ^
0_0_35105320_107\Main.java:8: 错误: 非法的表达式开始
{?
 ^
0_0_35105320_107\Main.java:10: 错误: 非法的表达式开始
public?static?void?main(String[]?args)?
^
0_0_35105320_107\Main.java:10: 错误: 非法的表达式开始
public?static?void?main(String[]?args)?
      ^
0_0_35105320_107\Main.java:10: 错误: 需要';'
public?static?void?main(String[]?args)?
       ^
0_0_35105320_107\Main.java:10: 错误: 非法的表达式开始
public?static?void?main(String[]?args)?
             ^
0_0_35105320_107\Main.java:10: 错误: 需要';'
public?static?void?main(String[]?args)?
              ^
0_0_35105320_107\Main.java:10: 错误: 非法的表达式开始
public?static?void?main(String[]?args)?
                  ^
0_0_35105320_107\Main.java:10: 错误: 需要';'
public?static?void?main(String[]?args)?
                       ^
0_0_35105320_107\Main.java:10: 错误: 不是语句
public?static?void?main(String[]?args)?
                              ^
0_0_35105320_107\Main.java:10: 错误: 需要';'
public?static?void?main(String[]?args)?
                                ^
0_0_35105320_107\Main.java:10: 错误: 不是语句
public?static?void?main(String[]?args)?
                                 ^
0_0_35105320_107\Main.java:10: 错误: 需要';'
public?static?void?main(String[]?args)?
                                     ^
0_0_35105320_107\Main.java:11: 错误: 非法的表达式开始
{?
 ^
0_0_35105320_107\Main.java:13: 错误: 需要:
Calendar?calendar=Calendar.getInstance();?
                                        ^
0_0_35105320_107\Main.java:15: 错误: 需要<标识符>
calendar.setTime(new?Date());?
                    ^
0_0_35105320_107\Main.java:15: 错误: 需要')'
calendar.setTime(new?Date());?
                     ^
0_0_35105320_107\Main.java:15: 错误: 需要:
calendar.setTime(new?Date());?
                         ^
0_0_35105320_107\Main.java:15: 错误: 非法的表达式开始
calendar.setTime(new?Date());?
                          ^
0_0_35105320_107\Main.java:15: 错误: 需要:
calendar.setTime(new?Date());?
                           ^
0_0_35105320_107\Main.java:15: 错误: 非法的表达式开始
calendar.setTime(new?Date());?
                            ^
0_0_35105320_107\Main.java:17: 错误: 需要<标识符>
System.out.println("现在时间是:"+new?Date());?
                                      ^
0_0_35105320_107\Main.java:17: 错误: 需要')'
System.out.println("现在时间是:"+new?Date());?
                                       ^
0_0_35105320_107\Main.java:17: 错误: 需要:
System.out.println("现在时间是:"+new?Date());?
                                           ^
0_0_35105320_107\Main.java:17: 错误: 非法的表达式开始
System.out.println("现在时间是:"+new?Date());?
                                            ^
0_0_35105320_107\Main.java:17: 错误: 需要';'
System.out.println("现在时间是:"+new?Date());?
                                             ^
0_0_35105320_107\Main.java:17: 错误: 非法的表达式开始
System.out.println("现在时间是:"+new?Date());?
                                               ^
0_0_35105320_107\Main.java:19: 错误: 需要:
String?year=String.valueOf(calendar.get(Calendar.YEAR));?
                                                       ^
0_0_35105320_107\Main.java:21: 错误: 需要:
String?month=String.valueOf(calendar.get(Calendar.MONTH)+1);?
                                                           ^
0_0_35105320_107\Main.java:23: 错误: 需要:
String?day=String.valueOf(calendar.get(Calendar.DAY_OF_MONTH));?
                                                              ^
0_0_35105320_107\Main.java:25: 错误: 需要:
String?week=String.valueOf(calendar.get(Calendar.DAY_OF_WEEK)-1);?
                                                                ^
0_0_35105320_107\Main.java:27: 错误: 非法字符: '\u201c'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                        ^
0_0_35105320_107\Main.java:27: 错误: 需要:
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                         ^
0_0_35105320_107\Main.java:27: 错误: 非法字符: '\u201c'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                          ^
0_0_35105320_107\Main.java:27: 错误: 非法字符: '#'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                             ^
0_0_35105320_107\Main.java:27: 错误: 需要:
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                                   ^
0_0_35105320_107\Main.java:27: 错误: 需要:
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                                    ^
0_0_35105320_107\Main.java:27: 错误: 需要';'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                                                                                                                                                                                                                                           ^
0_0_35105320_107\Main.java:27: 错误: 需要';'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                                                                                                                                                                                                                                                           ^
0_0_35105320_107\Main.java:27: 错误: 非法字符: '\u201c'
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long?year2009=calendar.getTimeInMillis();?calendar.set(1989,9,26);//这里与真实的月份之间相差1?long?year1989=calendar.getTimeInMillis();?long?days=(year2009-year1989)/(1000606024);?System.out.println("今天和1989年10月26日相隔"+days+“天,"+“也就是说我在这个美丽的星球上已经幸福的生活了"+days+“天。");?
                                                                                                                                                                                                                                                                                                              ^
0_0_35105320_107\Main.java:27: 错误: 不是语句
System.out.println("现在时间是:"+year+“年"+month+“月"+day+“日,星期"+week);?long


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-22 18:03:25, Gzip enabled