I am using the map with pair inside it,
but not able to figure out how to access with iterator of map

my map declaration

```
  map<ll,pair<ll,ll> > val;
  map<ll,pair<ll,ll> > ::iterator it;      

```

What i am using for accessing inserted values is 

```
   cout<<it->first<<" " <<it->second->first<<" " <<it->second->second<<endl;

```

But the compiler is showing this error

```
error: base operand of '->' has non-pointer type 'std::pair<long long unsigned int, long long unsigned int>'|

```