A build error occurs when using the scanf_s function. // error code (Implicit declaration of function 'scanf_s' is invalid in C99)
Why can't I use scanf_s function in xcode?
scanf_s is specific to Microsoft compilers, so you won't find it in Xcode.
Since scanf_s is Microsoft's "improved" version of scanf, you might try using scanf instead.