SIGFPE error somebody plz help

is p ever equal to 0 (zero)