#include<stdio.h>
int main()
{
int i1,i2,i3,i4,i5,i,sum;
for(i1=1,i1<=9,i1++)
{
for(i2=0,i2<=9,i2++)
{
for(i3=0,i3<=9,i3++)
{
for(i4=0,i4<=9,i4++)
{
for(i5=1,i5<=9,i5++)
{
sum=i1*10000+i2*1000+i3*100+i4*10+i5;
i=i5*100000+i5*10000+i5*1000+i5*100+i5*10+i5;
if(i==sum*i5)
{
printf("%d%d%d%d%d",i1,i2,i3,i4,i5);
printf(" %d",i5);
printf("*_________");
printf("%d",i);
}
}
}
}
}
}
return 0;
}
错误是
--------------------配置: mingw5 - CUI Debug, 编译器类型: MinGW--------------------
检查文件依赖性...
正在编译 C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp...
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:5: error: expected `;' before ')' token
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:9: error: expected primary-expression before "return"
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:9: error: expected `;' before "return"
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:9: error: expected primary-expression before "return"
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:9: error: expected `)' before "return"
[Warning] C:\Users\Administrator\Documents\C-Free\Temp\未命名3.cpp:10:2: warning: no newline at end of file
构建中止 未命名3: 5 个错误, 1 个警告
慕婉清8127533