I'm a begginer in C programming and I was trying to use VSC(Windows 10, 64) to compile and run c files that I did previously on CodeBlocks. So I installed VSC added the c/c++ and code runner extensions(checked the "run in terminal option on the runner extension),downloaded and installed MinGW and added new local variables corresponding to the bin folder of MinGW.
Still when I try to compile and run something on VSC I get undefined reference to `WinMain@16'. I've tried to reinstall both MinGW and VSC, updating my netframework... still, I can't even compile and run new files on VSC.
Help, please.