Undefined reference error

hello,

I get the follow error when i compile the code

Code:

`fctr.c: In function ‘main’:`

fctr.c:17: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘int’

/tmp/ccfw9Xlk.o: In function `num_zeroes':

fctr.c:(.text+0x33): undefined reference to `pow'

fctr.c:(.text+0x3e): undefined reference to `floor'

fctr.c:(.text+0x76): undefined reference to `pow'

/tmp/ccfw9Xlk.o: In function `main':

fctr.c:(.text+0x100): undefined reference to `numzeroes'

collect2: ld returned 1 exit status

My code is

Code:

`#include <stdio.h>`

#include <math.h>

long int num_zeroes(int num){

long int sum = 0;

int n;

for(n=0;num<pow(5,n);n++)

sum = sum + floor(num/pow(5,n));

return sum;

}

main(){

int cases,i;

long int num[100000];

scanf("%d",&cases);

for(i=0; i<cases; i++)

scanf("%ld",&num[i]);

for(i=0;i<cases;i++)

printf("%ld",num_zeroes(num[i]));

}

can any one guide me where i am going wrng