foo.c: In function 'main':
foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
5 | scanf("%d", &d);
| ^~~~~
foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | void SetInter(int a[], int b[], int c, int d);
foo.c:21:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
21 | printf("\n");
| ^~~~~~
foo.c:21:2: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:21:2: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c: In function 'SetInter':
foo.c:39:5: warning: incompatible implicit declaration of built-in function 'printf'
39 | printf("%d ", a[i]);
| ^~~~~~
foo.c:39:5: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务