I have a vector of pair like such:
vector
pair
vector> revenue;
I want to add a string and a doub
Try using another temporary pair:
pair temp; vector> revenue; // Inside the loop temp.first = "string"; temp.second = map[i].second; revenue.push_back(temp);