so, im trying to setup a rule that would "update" lower array indexes with higher ones if the array is full and something needs to be stored ex( imgSet[x]=imgSet [ x + 1]) ) but I get '' error C2106: '=' : left operand must be l-value'

I try moving items around (even though the function would be incorrect)to see if it does anything but same code comes up

if (imgSet[9][2])
{ 

	x = 0;
	while (x < 9)
	{
	imgSet[x] = imgSet[x+1];//cause error code
	x += 1;
	}
	imgSet[9] = 0; // cause error code
	j = 9;
}

imgSet is a 2D array and you are treating it like a 1D array in both lines 7 and 10.