foo.c: In function ‘th’:
foo.c:17:25: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
17 | printf("%d %d %d", max, c, min);
| ^~~~~~
foo.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | void th(int a, int b, int c)
foo.c:17:25: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
17 | printf("%d %d %d", max, c, min);
| ^~~~~~
foo.c:17:25: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:19:25: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
19 | printf("%d %d %d", max, min, c);
| ^~~~~~
foo.c:19:25: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:21:17: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
21 | printf("%d %d %d", c, max, min);
| ^~~~~~
foo.c:21:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c: In function ‘main’:
foo.c:27:9: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
27 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
foo.c:27:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
foo.c:27:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
foo.c:27:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’