4
eve 78
bob 99
suzy 86
alice 86
Hey @tAkshat I think you mean vector<pair<string,int>>
Declare it like this vector<pair<string,int>> v(n);
For input
for(int i=0;i<n;++i)cin>>v[i].first>>v[i].second;
Hey @tAkshat If u dont have any other doubt in this then please mark it as resolved