Sigma Designs interview question

Find errors in few sample programs.