I'm facing a problem here, I've declared a pointer to a vector. After element insertion, it shows me this error
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Here is my code:
vector<string>* strategies;
cout << "Name of the player 1 : ";
cin >> name;
strategies->push_back(name);