Here is some code that I am trying to use. Why wouldn't this work the way I am assuming it should?
here is a sample of vector<string> mine:
***
*2*
*1*
so mine[1][1] = 2.
// In a function that has passed in vector<string> &mine
int dist[2000][100];
cout << mine[1][1] << endl; // This correctly displays 2
cout << dist[1][1] << endl; // This correctly displays 0 (not initiallized yet)
dist[1][1] = mine[1][1];
cout << mine[1][1] << endl; // This correctly displays 2
cout << dist[1][1] << endl; // This incorrectly displays 50