Fail to compile everytime creating new project

Everytime i make new C++ project, it always says “compile failed” “The project could not be compiled. Would you like to open it in Visual Studio 2022?”

and when i open on visual studio, i can’t open the project