vector does not belong to the global namespace. Under your includes, add

Code:
using std::vector;
If you do'nt add that using statement (or the more general [but less desirable] using namespace std then you must qualify your use of vector by its namespace:

Code:
void printarray(std::vector<int>* invector);
A side note, why are you passing a vector by pointer?