SIGFPE Runtime Error.

Can someone please tell me when does one get SIGFPE runtime error. I’m pretty sure i’m not dividing by zero at any point in my code.

On gcc -W and -Wall turn on different sets of warnings, so both of them are necessary.

For more Visit: Innovative Apps Here…

can you please elaborate. i’m a newbie. also can you tell me about the different set of warnings.

Hi. Could you please give a link to your code so we can see the code. It is difficult to say anything without that.


using namespace std;

int main()
int count,i,a;
unsigned int inputNumber;
int cnt[10];


for(i = 0;i<count;i++)
	cnt[i] = 0;
	a = 5;
	while(a < inputNumber)
		cnt[i] = cnt[i] + inputNumber/a;
		a = a * 5; 

for (int j = 0; j < i; j++)

return 0;


I am getting run time error … where is my mistake … i m not getting ???