求助,我这个程序哪里错了?
#include<stdio.h>int main()
{
int a,b,c,s,d,k,m,n,t=0;
while (scanf("&d,&d",&m,&n)!=EOF)
{
if (m>n)
{
m=d;
m=n;
n=d;
}
for (k=m;k<=n;k++)
{ a=k/100;
b=k%100/10;
c=k%10;
s=a*a*a+b*b*b+c*c*c;
if(s==d)
printf("%d",k);
t++;
}
if (t==0)
printf ("no\n");
else
printf ("\n");
}
return 0;
}
这个是求水仙花数的