怎么错了???
#include <math.h>{ int prim( int x )
int i,glag;
flag=1;
i=2;
while(i<(int sqrt(x)&&flag)
{ if(x%i==0)
flag=1;
else ++i;
}
return flag;
}
main()
{ int y,s;
printf(" \n Please input a num:");
scanf("%d",&y);
y=prim(y);
if(y=1) printf("%d is prime num");
else printf("%d isn't prime num");
}
请指教这个程式的第二行怎么错了! TC上显示 Delearation....... 谢谢!