foo.c: In function 'main':
foo.c:19:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
19 | exit(1);
| ^~~~
foo.c:19:9: warning: incompatible implicit declaration of built-in function 'exit'
foo.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
1 | #include <stdio.h>
+++ |+#include <stdlib.h>
2 | int pd(int year)
foo.c:15:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d %d %d",&year,&month,&day);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务