Modify c++ vector value using pass by reference I try to modify vector value use pass by reference in following code.