foo.c: In function 'main':
foo.c:11:3: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
scanf_s("%d", &a[i]);
^~~~~~~
scanf
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^~~~~~~~~~~~~~~~~
/tmp/ccDi4Zsl.o: In function `main':
foo.c:(.text.startup+0x59): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务