Why am I getting errors on this code?

Printable View