1.After executing a.exe is not showing output in visual studio terminal and also in powershell admin mode.It is also not giving any error.
but when running hello world program it gives output.
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> g1;
for (int i = 1; i <= 5; i++)
g1.push_back(i);
cout << "Output of begin and end: ";
for (auto i = g1.begin(); i != g1.end(); ++i)
cout << *i << " ";
return 0;
}