怎么都不呢不过运行?就是有一处错误?
#include<iostream>#include<math.h>
using namespace std;
int a(int x);
int main()
{
int m;
cout<<"enter m";
cin>>m;
if(a(m))
cout<<"m is sushu\n";
else
cout<<"m is not sushu\n";
return 0;
int a(int x)
{
int n,i;
n=sqrt(x);
for(i=2;i<=n;i++)
{
if(m%n==0)
return 0;
}
return 1;
}