Getting floating point error

in the following solution iam getting error ,how to remove it:
code->https://ide.codingblocks.com/s/117667

what is written in the ide???
FPE arrises whrn you divide someyhing by 0