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))
^
|