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_36702539_24572.cpp:6:34: error: stray '@' in program
 return(year%4==0&&year0!=0)||year@0==0;
                                  ^
0_0_36702539_24572.cpp: In function 'bool leapyear(int)':
0_0_36702539_24572.cpp:6:19: error: 'year0' was not declared in this scope
 return(year%4==0&&year0!=0)||year@0==0;
                   ^
0_0_36702539_24572.cpp:6:35: error: expected ';' before numeric constant
 return(year%4==0&&year0!=0)||year@0==0;
                                   ^
0_0_36702539_24572.cpp: At global scope:
0_0_36702539_24572.cpp:8:1: error: 'intmonth' does not name a type
 intmonth[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
 ^
0_0_36702539_24572.cpp:9:19: error: 'intmon' has not been declared
 void pre(int year,intmon,int day,int d){
                   ^
0_0_36702539_24572.cpp: In function 'void pre(int, int, int, int)':
0_0_36702539_24572.cpp:12:22: error: 'mon' was not declared in this scope
 if(leapyear(year) && mon ==2){
                      ^
0_0_36702539_24572.cpp:17:8: error: 'month' was not declared in this scope
 day -= month[mon++];
        ^
0_0_36702539_24572.cpp:24:8: error: 'month' was not declared in this scope
 if(day>month[mon]){
        ^
0_0_36702539_24572.cpp:24:14: error: 'mon' was not declared in this scope
 if(day>month[mon]){
              ^
0_0_36702539_24572.cpp:27:22: error: 'mon' was not declared in this scope
 printf("d/d/d ",year,mon,day);
                      ^
0_0_36702539_24572.cpp: In function 'void post(int, int, int, int)':
0_0_36702539_24572.cpp:38:8: error: 'month' was not declared in this scope
 day += month[mon--];
        ^
0_0_36702539_24572.cpp: In function 'int main()':
0_0_36702539_24572.cpp:53:1: error: 'intn' was not declared in this scope
 intn,d;
 ^
0_0_36702539_24572.cpp:53:6: error: 'd' was not declared in this scope
 intn,d;
      ^
0_0_36702539_24572.cpp:54:13: error: 'n' was not declared in this scope
 scanf("%d",&n);
             ^
0_0_36702539_24572.cpp:61:1: error: 'return0' was not declared in this scope
 return0;
 ^


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-09-21 10:59:44, Gzip enabled