foo.c: In function 'main':
foo.c:22:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
22 | printf("%d\n",result);
| ^~~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | int main()
foo.c:22:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
22 | printf("%d\n",result);
| ^~~~~~
foo.c:22:9: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务