foo.cc: In function 'int main()':
foo.cc:39:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
39 | scanf("%d%d%d",&year1,&month1,&day1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:40:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d%d%d",&year2,&month2,&day2);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务