I\'m trying to create an n x n vector that I can later cout as a table/matrix. Xcode points to the = in the for loop and tells me No
cout
=
for
No
Try the following
int n = 5; std::vector< std::vector > row(n); for (int i=0; i(n) ); }
or
int n = 5; std::vector< std::vector > row(n, std::vector( n ) );