Hello madmark,
you have declared 'a' twice,one in the begining and other in the for loop. So the compiler will throw an error("multiple declaration error").
Try this...
for(a=0;a<1000;a++)
{ c=(a*a*a)-(a*a);
if(b==c)
{
printf("%d",a);
}
}