How to declare pair of array and how can we take input after that.
How to declare pair of array and how can we take input after that
pair<int,int> arr[10];
for(int i=0;i<n;i++)
cin>>arr[i].first>>arr[i].second;
How to declare pair of array and how can we take input after that.
pair<int,int> arr[10];
for(int i=0;i<n;i++)
cin>>arr[i].first>>arr[i].second;