'Build Errors C++ Visual Studio 2022

I'm trying to implement a resizable array class in C++. I started out with a basic C++ Console Application Template. I'm unable to build the basic Hello World program in Visual Studio 2022. This is all the code in my main.cpp file-

#include <iostream>

using namespace std;

int main()
{
    std::cout << "Hello World!\n";
    return 0;
}

And these are my build logs for the above project.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source