There is no spoon: Segmentation error !?!?

Hello everybody,

I have this message error:

Segmentatio error, at this line:

vector<vector<string>>  grille;



if (grille[i][j] == "0") return true;
                     ^



I dont know why ?

Thanks

I don’t which language you are using.

And what’s the size of grille?

When in doubt, use at().

if ( grille.at(i).at(j) == "0" ) return true;

It’s ok. thanks a lot. Excuse my english, I am french…