Arduino raise the error "variable-sized object 'my2dArray' may not be initialized" while trying to change the elements of 2d array
The error is in this line:

  int my2dArray[2 + integer][2] = robot * my2dArray[2 + integer][2];


The presence of the word int there tells it to try and make a new variable. You don't want to do that, since it's an error.  Lose the int and it might work.