I have to print the values of a pair. For showing the value of the first value of the pair there isn't any problem. But how I can print the second value of the pair? The representation can't be changed.
typedef vector<char> _vots;
typedef pair<string,_vots> PartitPolitic;
ostream& operator<<(ostream &o, PartitPolitic x){
o << x.first << endl;
o << x.second << endl;->>>>>>>>>>>>>>>>> ERROR
return o;
}
int main(){
vector<PartitPolitic> partit;
string q;
string s;
getline(cin,descripcio);
while (q!="*"){
getline(cin,s)
_vots v(s.begin(),s.end());
PartitPolitic f(descripcio,v);
partit.push_back(f);
getline(cin,descripcio);
}
vector<PartitPolitic>::iterator it =partit.begin();
while(it!=partit.end()){
cout << *it << endl;
it++;
}
return 0;
}