Not able to solve the problem

please check what is the problem in my code

Pls add comments in your code so that I could understand it…

here it is https://ide.codingblocks.com/s/174422 i have done it exactly in the way mentioned in the video

https://ide.codingblocks.com/s/174438 i have made a few changes to my code. plz check this one