My question matches the title, also any insight how to fix problems like this in the future on my own would be great.
The code below is the function(odigravanje_poteza) which makes my program stop working, function called within it seems to run ok. I added main, and the other function used just to give perspective.
Thanks.
vector<vector<int> > tbl( 3 ,vector<int>(3,0));
matrix[ 3 ] //indices are beginning with 0, so vector with size of 3 will have 0, 1 and 2 as valid indices