Getting correct output in other IDE but in Interview Bit it is showing error


#1

When I try the same code on other IDEs I am getting 0 as output for -1146467285 but in interviewbit it is showing as error. Wht do I do


#2

I am also facing the issue!! Let me know if you were able to resolve it


#3

Share your code. I will go through it, meanwhile check these cases in your code.

  1. Make sure terminating condition of while loop is A!=0.
  2. Check when integer overflows.

#4

yes, me too. for the same value -1146467285.