mercredi 24 janvier 2018

How to reset a vector which is was declared globaly [duplicate]

This question already has an answer here:

when using the fill method or clear the following error appears

request for member ‘clear’ in ‘adj’, which is of non-class type ‘std::vector [1000005]

the declaration is as follows:

vector<int> adj[1000005];

Aucun commentaire:

Enregistrer un commentaire