I compiled your code, and got the following error message
Sketch uses 1726 bytes (5%) of program storage space. Maximum is 32256 bytes.
Global variables use 257 bytes (12%) of dynamic memory, leaving 1791 bytes for local variables. Maximum is 2048 bytes.