How to remove Runtime SIGFPE error?

Why am I getting RUNTIME(SIGFPE) error? can anyone help??

Link to my code: WATERCOOLER2 Problem - CodeChef
Thanks in advance!

this code is right code . i also run this code .