vector is a template, not a type. Define your specific specialization:
void askForVector(std::vector<int> * vector);
or make a generic function
template <typename T> void askForVector(std::vector<T> * vector);
You might be better off using a link rather than a pointer:
void askForVector(std::vector<int> & vector);
or returning a vector by value:
std::vector<int> askForVector() { std::vector<int> vector;
to avoid mistakes like
std::cin >> vector[i];
Mike seymour
source share