I am using VScode in windows with mingw. I have installed the C/C++ extension and properly configured the Intellisense mode and tasks.json (I followed this tutorial https://code.visualstudio.com/docs/cpp/config-mingw#_build-helloworldcpp). Everything works fine until I use string. I am able to use other data types and containers without any problem.
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"working";
string s;
cin>>s;
cout<<s;
return 0;
}
The program terminates without printing anything, though it doesn't throw any error.