for(auto it: mp) { cout<<it.first<<" "<<it.second; cout<<endl; } why can’t i use it->first and it->second ?
@dare_devil_007 refer this i hope its clear if yes dont forget to mark it as resolved