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_17182131_24628.cpp:96:17: error: redefinition of 'int month_day [13]'
 int month_day[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};//begin with 1
                 ^
0_0_17182131_24628.cpp:2:5: note: 'int month_day [13]' previously defined here
 int month_day[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};//begin with 1
     ^
0_0_17182131_24628.cpp:97:22: error: redefinition of 'int leap_month_day [13]'
 int leap_month_day[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};//begin with 1
                      ^
0_0_17182131_24628.cpp:3:5: note: 'int leap_month_day [13]' previously defined here
 int leap_month_day[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};//begin with 1
     ^
0_0_17182131_24628.cpp:98:16: error: redefinition of 'struct date'
 typedef struct date
                ^
0_0_17182131_24628.cpp:4:16: error: previous definition of 'struct date'
 typedef struct date
                ^
0_0_17182131_24628.cpp:104:6: error: invalid type in declaration before ',' token
 }date,* date_link;
      ^
0_0_17182131_24628.cpp:104:6: error: conflicting declaration 'typedef int date'
0_0_17182131_24628.cpp:10:2: note: previous declaration as 'typedef struct date date'
 }date,* date_link;
  ^
0_0_17182131_24628.cpp:104:9: error: conflicting declaration 'typedef int* date_link'
 }date,* date_link;
         ^
0_0_17182131_24628.cpp:10:9: note: previous declaration as 'typedef struct date* date_link'
 }date,* date_link;
         ^
0_0_17182131_24628.cpp:105:20: error: redefinition of 'char week_map [8][10]'
 char week_map[8][10]={"","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};//begin with 1
                    ^
0_0_17182131_24628.cpp:11:6: note: 'char week_map [8][10]' previously defined here
 char week_map[8][10]={"","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};//begin with 1
      ^
0_0_17182131_24628.cpp:106:22: error: redefinition of 'char month_map [13][10]'
 char month_map[13][10]={"","January","February","March","April","May","June","July","August","September","October","November","December"};//begin with 1
                      ^
0_0_17182131_24628.cpp:12:6: note: 'char month_map [13][10]' previously defined here
 char month_map[13][10]={"","January","February","March","April","May","June","July","August","September","October","November","December"};//begin with 1
      ^
0_0_17182131_24628.cpp:107:5: error: redefinition of 'int in_year'
 int in_year,in_month,in_day;
     ^
0_0_17182131_24628.cpp:13:5: note: 'int in_year' previously declared here
 int in_year,in_month,in_day;
     ^
0_0_17182131_24628.cpp:107:13: error: redefinition of 'int in_month'
 int in_year,in_month,in_day;
             ^
0_0_17182131_24628.cpp:13:13: note: 'int in_month' previously declared here
 int in_year,in_month,in_day;
             ^
0_0_17182131_24628.cpp:107:22: error: redefinition of 'int in_day'
 int in_year,in_month,in_day;
                      ^
0_0_17182131_24628.cpp:13:22: note: 'int in_day' previously declared here
 int in_year,in_month,in_day;
                      ^
0_0_17182131_24628.cpp:108:6: error: redefinition of 'date date_start'
 date date_start,special_date[5];//begin with 1
      ^
0_0_17182131_24628.cpp:14:6: note: 'date date_start' previously declared here
 date date_start;
      ^
0_0_17182131_24628.cpp: In function 'bool is_leap(int)':
0_0_17182131_24628.cpp:109:6: error: redefinition of 'bool is_leap(int)'
 bool is_leap(int year)
      ^
0_0_17182131_24628.cpp:15:6: note: 'bool is_leap(int)' previously defined here
 bool is_leap(int year)
      ^
0_0_17182131_24628.cpp: In function 'int comp_date(date, date)':
0_0_17182131_24628.cpp:126:5: error: redefinition of 'int comp_date(date, date)'
 int comp_date(date a,date b)
     ^
0_0_17182131_24628.cpp:20:5: note: 'int comp_date(date, date)' previously defined here
 int comp_date(date a,date b)
     ^
0_0_17182131_24628.cpp: In function 'bool is_valid_date(date)':
0_0_17182131_24628.cpp:333:6: error: redefinition of 'bool is_valid_date(date)'
 bool is_valid_date(date a)
      ^
0_0_17182131_24628.cpp:72:6: note: 'bool is_valid_date(date)' previously defined here
 bool is_valid_date(date a)
      ^
0_0_17182131_24628.cpp: In function 'int main()':
0_0_17182131_24628.cpp:341:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17182131_24628.cpp:80:5: note: 'int main()' previously defined here
 int main()
     ^


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-28 17:27:29, Gzip enabled