What is the error?

hello @garganshul151 i have corrected and commented your mistake https://ide.codingblocks.com/s/338204
.
if you feel your doubt is resolved please mark this as resolved .
Happy Learning !!