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_32291509_19156.cpp:6:38: error: stray '@' in program
     return(year%4==0&&year0!=0)||year@0==0;
                                      ^
0_0_32291509_19156.cpp: In function 'bool leapyear(int)':
0_0_32291509_19156.cpp:6:23: error: 'year0' was not declared in this scope
     return(year%4==0&&year0!=0)||year@0==0;
                       ^
0_0_32291509_19156.cpp:6:39: error: expected ';' before numeric constant
     return(year%4==0&&year0!=0)||year@0==0;
                                       ^
0_0_32291509_19156.cpp: At global scope:
0_0_32291509_19156.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_32291509_19156.cpp:9:19: error: 'intmon' has not been declared
 void pre(int year,intmon,int day,int d){
                   ^
0_0_32291509_19156.cpp: In function 'void pre(int, int, int, int)':
0_0_32291509_19156.cpp:12:29: error: 'mon' was not declared in this scope
        if(leapyear(year) && mon ==2){
                             ^
0_0_32291509_19156.cpp:17:19: error: 'month' was not declared in this scope
            day -= month[mon++];
                   ^
0_0_32291509_19156.cpp:24:11: error: 'month' was not declared in this scope
    if(day>month[mon]){
           ^
0_0_32291509_19156.cpp:24:17: error: 'mon' was not declared in this scope
    if(day>month[mon]){
                 ^
0_0_32291509_19156.cpp:27:25: error: 'mon' was not declared in this scope
    printf("d/d/d ",year,mon,day);
                         ^
0_0_32291509_19156.cpp: In function 'void post(int, int, int, int)':
0_0_32291509_19156.cpp:38:19: error: 'month' was not declared in this scope
            day += month[mon--];
                   ^
0_0_32291509_19156.cpp: In function 'int main()':
0_0_32291509_19156.cpp:53:5: error: 'intn' was not declared in this scope
     intn,d;
     ^
0_0_32291509_19156.cpp:53:10: error: 'd' was not declared in this scope
     intn,d;
          ^
0_0_32291509_19156.cpp:54:16: error: 'n' was not declared in this scope
    scanf("%d",&n);
                ^
0_0_32291509_19156.cpp:61:5: 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-11-29 11:46:19, Gzip enabled