foo.cc: In function 'int main()':
foo.cc:26:15: error: 'year' cannot be used as a function
26 | day=year(year);
| ^
foo.cc:29:18: error: 'month' cannot be used as a function
29 | day=month(month);
| ^
foo.cc:33:25: error: expected ';' before '}' token
33 | date+=month-month1*31
| ^
| ;
34 | }
| ~
foo.cc:35:22: error: 'month' cannot be used as a function
35 | else if(month(month)==2)
| ^
foo.cc:46:9: error: 'yeay' was not declared in this scope; did you mean 'year'?
46 | date+=yeay-year1*365;
| ^~~~
| year
foo.cc:47:17: error: 'month' cannot be used as a function
47 | if(month(month)==1)
| ^
foo.cc:49:25: error: expected ';' before '}' token
49 | date+=month-month1*31
| ^
| ;
50 | }
| ~
foo.cc:51:22: error: 'month' cannot be used as a function
51 | else if(month(month)==2)
| ^
[Hydro](https://hydro.ac)提供评测服务