potresti usare un'altra struttura dati più adatta a ciò che vuoi fare come il map o il multimap
Regole del Forum