I have a vector of structs that contain a vector, and i don't know how to initialize the fields inside the struct. I have the following code:
struct member {
vector<pair<int, int> > rival_result;
int matches;
}
vector<member> ranking(n);
I want to set the size of the vector inside the struct to the size of the other vector and have 0 in all the fields(matches and the integers of the pair vector). N can be a very big number so it can't be done manually. Thanks.