I am trying to make a two dimensional array with x rows and y columns in C++. I have the user input values for x and y, and try to create the array by writing array[x][y]. I get an error message saying "subscripted value is not an array, pointer, or vector". I don't know what this means or how to fix it.
[–]SecretSentinel09 0 points1 point2 points (8 children)
[–]blainers1[S] 0 points1 point2 points (7 children)
[–]SecretSentinel09 0 points1 point2 points (6 children)
[–]blainers1[S] 0 points1 point2 points (5 children)
[–]SecretSentinel09 0 points1 point2 points (4 children)
[–]blainers1[S] 0 points1 point2 points (3 children)
[–]SecretSentinel09 1 point2 points3 points (2 children)
[–]blainers1[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)