Error in the program

hello @sraj39273
check now
https://ide.codingblocks.com/s/474323

sir is this a right way of implementing dynamically if not can you just send me the right way

yeah it is correct
…