#include #include using namespace std; /* * function : print a vector * param nums : the vector to be printed * return : --- */ void Out(vector &nums) { for (int i = 0; i < static_cast(nums.size()); i++) cout << nums[i] << " "; cout << endl; }