I am new to c++ and installed MinGW on Windows 11 and if I type g++ — version into my command prompt everything seems to be normal as it should be:
g++ (Rev3, Built by MSYS2 project) 14.1.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
but when i run this code on vscode nothing gets printed
#include <iostream>
int main(){
std::cout <<"hello world";
return 0;
}
I installed MinGW again and nothing changed
Max Mustermann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3