Your field array cannot be declared with non-const values. Assuming that you--and not the program nor the user--manually set the values of width and height, simply append the "const" qualifier to the beginning:
1 2
constint height = 8;
constint width = 8;
These variables are now constant and their values may not be modified.