Code written in C++ does not run in vs code, but the file is compiled. When I try to open it, just a.exe closes immediately

#include <iostream>
using namespace std;


int main() {
    
    cout << "Hello, World!" << endl;

    return 0;
}
PS C:\Users\Данил\Desktop\егэ> g++ c.cpp
PS C:\Users\Данил\Desktop\егэ> .\a  
PS C:\Users\Данил\Desktop\егэ> 

Ответы (0 шт):