Sigma Designs Interview Question

Find errors in few sample programs.