The first screenshot tells it all. You have compiler errors. Since your code doesn't compile then no exe can be produced. You have to fix the compiler errors.
The actual error is that it cannot find the crtdbg.h
system header file. It sounds like maybe you don't have the Windows SDK installed as that is where the header file resides. Run the VS Installer and modify your installation. Then go to Workloads and find the Windows 10 SDK. If it is not checked then check it and install. Once it is done then rebuild your code.
If it is installed then the issue might be your project is targeting a version of the SDK that isn't installed. Open your project's property settings. One of the first options is the version of the SDK to target. You should ensure it matches the version of the SDK that you do have installed.