Help create maxSize sketch

Krupski:
/usr/share/arduino-1.0.3/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: region text is full (test.cpp.elf section .text)

That's the error I get with the above code (compiled for the UNO and MEGA2560 both do the same thing).

(That's a different problem)

Have you tried compiling the original?