I suspect you intend to divide each array entry by 10. I also assume that your gave your array a size (in the brackets). I also assume that length
is correct.
Still there are multiple errors.
First the array should be defined unsigned int
instead of const unsigned in
(remove the const and fix the typo) otherwise it can not be modified.
Then remove the type declaration in the loop and use array[i] /= 10;
instead of const unsigned int array[i] /= 10;
.
Additionally I wonder why you try to use two nested loops? Simply remove the while loop entirely:
for (int i=0; i<length; i++)
{
array[i] /= 10;
}