Code runs fine but get compile error

Printable View