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