Please tell me one more thing, how do I print a,b as a pair from vector v?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
int main()
{
vector<pair<int,int>> v;
int a,b;
for(int i=0; i<5; i++)
{
cin>>a>>b;
v.push_back(pair<int, int> (a,b));
}
//How do i print a,b as a pair from vector v?
return 0;
}