Doubt in the answer

please comment my errors

@Adhyayan,
https://ide.codingblocks.com/s/228137 corrected code.

I have commented the lines where there was an error.