If I have a set of type : set< pair < int, char> > s;
auto f = s.begin();
char node = f->second;
int dist = f->first;
this is working fine
but why is : set< pair < int , pair<int, char>>> s;
auto f = s.begin();
char node = f->second->second;
int dist = f->second->first;
giving error?