Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Getting SIGFPE Runtime Error

Revision en1, by 8shubham, 2017-06-20 16:43:13

While solving this question on spoj when I am declaring array as long long I am getting SIGFPE Runtime error and as soon as I change it to int, it is getting accepted.

Error Code

ACed Code

I am unable to understand why this is happening because SIGFPE error occurs when we divide by zero.

Can anyone help on it ?

Tags undefined behavior, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 8shubham 2017-06-20 16:43:13 448 Initial revision (published)