I am attempting to access ALL 8 neighbors of an index on a 2D vector.
I then try to do the following pseudocode to find all 8 neighbors
cout << grid[columnindex-(-1->1)][rowIndex-(-1->1)] << endl;
However, when I do this I get a segmentation fault. I am unsure why.