foo.c: In function ‘main’:
foo.c:5:9: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration]
5 | scanf_s("%d %d %d", &a, &b, &c);
| ^~~~~~~
| scanf
foo.c:11:24: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
11 | printf("%d %d %d\n", ans, max);
| ~^
| |
| int
/nix/binutils-2.42/bin/ld: /tmp/ccv9G3MI.o: in function `main':
foo.c:(.text.startup+0x1b): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status