Error!

What is the error in this piece of code?
vector< vector<int> > mat(5,5),crtLvl(25,2),nxtLvl(25,2);
Error is : 28 expected constructor, destructor, or type conversion before '<' token
Maybe it is the result that you neither specified nested nema as for example

std::vector< std::vector<int> > mat(5,5),crtLvl(25,2),nxtLvl(25,2);

nor the directive using namespace std;
Last edited on
Topic archived. No new replies allowed.