关于[Error] ld returned 1 exit status的编译错误
int main(int argc, char *argv[]) { int n,i;
while(scanf("%d",&i)!=EOF){
for(n=2;n<(i/2+1);n++) {
if(i%n==0)
break;
}
if(n==(i/2+1)) {
printf("yes\n"); }
else
printf("no\n");}
return 0;
}
源代码如上,开始没问题,后来就出现[Error] ld returned 1 exit status,求指点