Didn't know C syntax so had to fix 1 and finished upto 4.