Main.c: In function 'main':
Main.c:7:12: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | while (scanf_s("%d", &n) != EOF) {
| ^~~~~~~
| scanf
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccjGlOGM.o: in function `main':
Main.c:(.text.startup+0x56): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status