The gets() function has been removed from the C language. No such function exists in the standard.
gets()
Yet I compile the following code:
#in
The key line of your code is:
#include
Did you update your system's C library and headers? They're also part of the C implementation, along with the compiler.