大神们看看,怎么会这样子
#include"stdio.h"long sum(int a,int b);
long factorial(int n);
main()
{ int n1,n2;
long a;
long sum(int a,int b);
scanf("%d,%d"&n1,&n2);
a=sum(n1,n2);
printf("%ld",a);
}
long sum(int a,int b)
{
long factorial(int n);
long c1,c2;
c1=factorial(a);
c2=factorial(b);
return(c1+c2);
}
//有错误scanf那一行,这个程序是求和的吗?