我建议return应该移到后面
scanf("%d,%d,%d",&a,&b,&c);
total=sum(int x,int y,int z);
输的abc变量没有被sum函数引用
xyz没有值