Running simple c++ program (e.g. HelloWorld) has no problem, but when I use cin in my code, I see the following error
procedure entry point __gxx_personality_v0 could not be located in the dynamic link library C:\Users\username\Desktop\helloworld.exe
I use MinGW compiler, sublime text on windows 10
Code:
#include <iostream>
using namespace std;
int main()
{
int x = 1;
cin >> x;
cout << x << endl;
return 0;
}