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