/in/foo.c: In function 'main':
/in/foo.c:7:5: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
scanf_s("%d", &n);
^~~~~~~
/in/foo.c:12:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s", x);
^
/tmp/ccSKm2lK.o: In function `main':
foo.c:(.text.startup+0x17): undefined reference to `scanf_s'
foo.c:(.text.startup+0x2a): undefined reference to `scanf_s'
foo.c:(.text.startup+0x51): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status