#include<bits/stdc++.h>
using namespace std;
int start,end;
bool ws(int a)
{
if((1000<=a&&a<=9999)||(100000<=a&&a<=999999))
{
return 0;
}
return 1;
}
bool hw(int a)
{
int x[101],f=1;
while(a>0)
{
x[f]=a%10;
a=a/10;
f+=1;
}
for(int i=1;i<=f/2;i++)
{
if(x[i]!=x[f-i])
{
return 0;
}
}
return 1;
}
bool zs(int a)
{
if(a==2)
{
return 1;
}
for(int i=2;i<=sqrt(a);i++)
{
if(a%i==0)
{
return 0;
}
}
return 1;
}
int main()
{
cin>>start>>end;
if(start==2)
{
cout<<2<<endl;
}
if(start%2==0)
{
start=start+1;
}
for(int i=1;i<=end;i=i+2)
{
if(ws(i)==0) continue;
if(hw(i)==0) continue;
if(zs(i)==0) continue;
cout<<i<<endl;
}
return 0;
}
为什么我用这个 Code CE报错了?为什么我在Dev-C++上运行是正确的,为什么报了个“对“end”的应用有歧义”?