i'm making a simple snake game in c++. it compiles, but won't run. i'm using netbeans on a mac, and i've never had a problem like this before, so i assume it's a problem with my code:
#include <vector>
std::vector<std::vector<int> > snake;//the snake
int main(){
snake[0][0]=0;
}
i think it might be a problem with the 2d vector.