I'm having a problem with Visual Studio 2017.
This appears when I'm going to compile:
LNK2019 undefined external symbol _WinMain @ 16 referenced in function "int __cdecl invoke_main (void)" (? invoke_main @@ YAHXZ) Win32Project2
That was the code I wrote, simple just to start and test if everything was ok.
#include<stdio.h>
int main()
{
int n = 0;
scanf_s("%d", &n);
return 0;
}