[Solved] Access violation writing location 0x00000000 when reading/writing to vector
[ad_1] You need to allocate the vector elements before assigning values to them, when you do vector<int> arr; // defines an empty vector. arr[y] = … // access element at position y. arr here is empty, pointing to a zero array, you are trying to write at memory 0x0000. Checkout vector documentation, to see the … Read more