foo.cc: In function 'int main()':
foo.cc:52:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%4d%2d%2d",&year,&month,&days);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:55:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
55 | scanf("%d",&cnt);
| ~~~~~^~~~~~~~~~~
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)提供评测服务