initialize size of vector pair of int cpp code example Example: vector of pairs declaration in cpp vector<pair<int,int>>v;