vector<int> vec; //Creates an empty (size 0) vector vector<int> vec(2); //Creates a vector with 2 elements. vector<int> vec(4, 3); //Creates a vector with 4 elements. //Each element is initialised to 3.