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_33853260_16877.cpp:5:86: error: too many initializers for 'std::string [6] {aka std::basic_string<char> [6]}'
 string DAY[6]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
                                                                                      ^
0_0_33853260_16877.cpp:6:131: error: too many initializers for 'std::string [12] {aka std::basic_string<char> [12]}'
 string MONTH[12]={"","January","February","March","April","May","June","July","August","September","October","November","December"};  
                                                                                                                                   ^
0_0_33853260_16877.cpp:7:51: error: too many initializers for 'int [12]'
 int Day[12]={0,31,28,31,30,31,30,31,31,30,31,30,31}; 
                                                   ^
0_0_33853260_16877.cpp: In function 'int main()':
0_0_33853260_16877.cpp:31:57: error: invalid types 'int[int]' for array subscript
   if (year<=0||month<=0||month>12||day<=0||day>day[month]||(year==1752&&day>=3&&month==9&&day<=13)) 
                                                         ^
0_0_33853260_16877.cpp:32:9: error: 'm' was not declared in this scope
   cout<<m<<"/"<<day<<"/"<<year<<" is an invalid date."<<endl;
         ^
0_0_33853260_16877.cpp:37:8: error: 'm' was not declared in this scope
    if (m>2&&RUN(year))
        ^


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-16 07:59:03, Gzip enabled