vector< vector<int> >* adjMatrix;
Then I initialize the vector like this:
adjMatrix = new vector< vector<int> >(x, vector<int>(x, 0));
I'm having trouble accessing elements in the vector. This is what I'm currently attempting:
cout << (*adjMatrix);
This code compiles, but when I run it, Visual Studio tells me something along the lines of "Debug Assertion Failed!" "vector subscript out of range."
Am I initializing the vector correctly? If so, am I accessing the elements correctly?