Im installed mingw and vs code on my system , i followed all the steps,added to environment variable and all but when im running simple hello world program it gives this error: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status My code : #include<iostream using namespace std;
int main(){
cout<<"Hello World"<<endl;
return 0;
}