vector implication using c++