foo.c:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include
| ^
foo.c:2:6: warning: return type of 'main' is not 'int' [-Wmain]
2 | void main()
| ^~~~
foo.c: In function 'main':
foo.c:5:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | printf("请输入年份:");
| ^~~~~~
foo.c:5:1: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | #include
foo.c:6:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
6 | scanf("%d",&year);
| ^~~~~
foo.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
[Hydro](https://hydro.ac)提供评测服务