//
// Created by 蒲贺良 on 2022/8/29.
//
#include <iostream>
using namespace std;
bool iseql(int i)
{
int a = i / 100;//百位
int b = i % 100/10;//十位
int c = i % 100 % 10;//个位
if(a==b)
return true;
else if(a==c)
return true;
else if(b==c)
return true;
}
bool x2(int i)
{
for(int j = 1;j<100;j++)
{
if(i==j*j)
return true;
}
}
int main()
{
for(int i = 100;i<1000;i++)
{
if(iseql(i)&&x2(i))
{
cout<<i<<' ';
}
}
}

clion报错请大家帮我看看原因
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-