foo.cc: In function 'int main()':
foo.cc:80:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
80 | scanf("%d%d%d%d%d%d",&year,&month,&days,&hour,&minute,&second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:82:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
82 | scanf("%d%d%d%d%d%d",&year,&month,&days,&hour,&minute,&second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int get_day(int, int)':
foo.cc:28:5: warning: 'days' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | if(days==28&&year%4==0)days=29;
| ^~
[Hydro](https://hydro.ac)提供评测服务