/in/foo.c: In function 'main':
/in/foo.c:5:2: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
scanf_s("%d", &n);
^~~~~~~
/in/foo.c:15:12: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
int n = sqrt(h);
^~~~
/in/foo.c:15:12: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:15:12: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:31:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
printf("%d",¢);
^
/tmp/ccKg5Ua5.o: In function `main':
foo.c:(.text.startup+0x13): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status