为什么是compile error 求大神指导 感激不尽
#include<stdio.h>#include<math.h>
#define ss 0.000001
int main(){
double s;
double n;
while(scanf("%lf",&s)!=EOF&&(fabs(s)>ss)){
n=0;
for(int i=2;;++i){
n=1.0/i+n;
if(n>s)
break;
}
i--;
printf("%d ",i);
printf("card(s)\n");
}
return 0;
}
poj1003