Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualJTippetts

Posted 16 December 2012 - 09:20 PM

In line 13, you should just be pushing a bool, not a vector of bools. You would only push a vector in that inner loop if you were implementing a vector of vectors of vectors of bools (a 3D array, in other words).

#2JTippetts

Posted 16 December 2012 - 09:19 PM

In line 13, you should just be pushing a bool, not a vector of bools. You would only push a vector in that inner loop if you were implementing a vector of vectors of vectors of bools (a 3D array, in other words).

Edit:
Also, in Line 10 you push a vector of bools, then you try to iterate that vector. Unfortunately, you didn't resize the vector, so the size of that new vector will be 0, and no elements will actually be pushed onto it.

In order for your inner vectors to have a non-0 size, you have to resize them either in the constructor or with an explicit resize() call.

#1JTippetts

Posted 16 December 2012 - 09:16 PM

In line 13, you should just be pushing a bool, not a vector of bools. You would only push a vector in that inner loop if you were implementing a vector of vectors of vectors of bools (a 3D array, in other words).

PARTNERS