调试代码总显示[Error] ld returned 1 exit status
调试以下代码总显示: [Error] ld returned 1 exit status
无法运行。
#include<stdio.h>
int shuixianhua(int x);
int main()
{
int g,s,b;
int result;
printf("请输入一个三位数字:");
scanf("%d%d%d",&g,&s,&b);
result=shuxianhua(g,s,b);
return 0;
}
shuixianhua(x)
{
int g1,s1,b1;
g1=x%10;
s1=x/10%10;
b1=x/100;
if(b1*b1*b1+s1*s1*s1+g1*g1*g1==x)
return 1;
else
return 0;
}