foo.c: In function 'main':
foo.c:18:1: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
18 | exit(1);
| ^~~~
foo.c:18:1: 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:14:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d %d %d",&year,&month,&day);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务