Added the function call to void init_vector() to the main function