Adding #include<vector> declaration when array is translated as vector in C++