Same before.
I have compiled in Visual Studio for Windows, but causing same errors when i compile on Linux (Ubuntu, Kali).
What i want to say is Visual Studio can compiles it.
but others
ex) xCode for Mac(another user had asked here), gcc(c99) -o Filename Filename.c can't compile it.
There is a rule like Prasoon Saurav said above.
i hope this helpful.