|
|
|
|
|
|
for (int r = 1; r < 18; r++) is going out of bounds on the array, arrays start at 0 and end at size-1, so in your case validtracks[0->16][0->1].if (validtracks[r][2] just like above is also going out of bounds on the array.
| For some reason it's detecting a match with elements in the array, when it shouldn't be: |
|
|
[] operator upon declaration. So in this persons case the last element they could retrieve from int validtracks[17][2]; would be validtracks[16][1].