foo.c: In function 'main':
foo.c:21:17: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
21 | scanf_s("%d", &a[i]);
| ^~~~~~~
| scanf
foo.c:22:20: warning: passing argument 2 of 'Search' makes pointer from integer without a cast [-Wint-conversion]
22 | Search(n, a[10000], x);
| ~^~~~~~~
| |
| int
foo.c:3:23: note: expected 'int *' but argument is of type 'int'
3 | int Search(int n, int a[], int x)
| ~~~~^~~
/nix/store/3r87a2wq1w4l66wnsm7rqvy608mx23h6-binutils-2.40/bin/ld: /tmp/ccPYKruP.o: in function `main':
foo.c:(.text.startup+0x3e): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务