vector<pair<int,set<string>>>m1;
I am trying to insert an element where each int will hold several strings using set. How to insert an element in this?
I tried like this.
vector<pair<int,set<string>>>m1;
int p,n,i;
cin>>p>>n;
string s[n];
for(i=0;i<n;i++){
cin>>s[i];
m1.push_back(make_pair(p,insert(s[i])));
}
But it shows error. Help much appreciated. Thanks!!