printf("x=%f\na=%d\nb=%d\nc=%d\nd=%d\n",x,a,b,c,d);
double型的`~~应该是
printf("x=%lf\na=%d\nb=%d\nc=%d\nd=%d\n",x,a,b,c,d);