Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years. ×

8shubham's blog

By 8shubham, history, 3 years ago, In English,

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 ?

Read more »

 
 
 
 
  • Vote: I like it
  • +3
  • Vote: I do not like it