Https://ide.codingblocks.com/s/173976 Sum it up

I have no idea what is wrong, please check and also tell how do i remove duplicate cases