[求助]错在哪里?
#include "Stdio.h"#include "Conio.h"
long f1(int a)
{
int k;
long b;
k=a*a;
b=f2(k);
return(b);
}
long f2(int c)
{
long fac;
if(c<0)
printf("error!");
else if(c==0||c==1)
fac=1;
else
fac=c*f2(c-1);
return(fac);
}
main(void)
{
int i,j;
long sum;
printf("input two number:");
scanf("%d%d\n",&i,&j);
sum=f1(i)+f1(j);
printf("%d 2!+%d 2!=%ld\n",i,j,sum);
getch();
return 0;
}
出现错误 noname.c 16: 与'f2'声明中的类型不匹配,是怎么回事?