vector does not belong to the global namespace. Under your includes, add
If you do'nt add that using statement (or the more general [but less desirable] using namespace stdCode:using std::vector;then you must qualify your use of vector by its namespace:
A side note, why are you passing a vector by pointer?Code:void printarray(std::vector<int>* invector);




then you must qualify your use of vector by its namespace:
Reply With Quote