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!