Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7159 郑元泰 水仙花数II C++ Compile Error 0 MS 0 KB 354 2025-04-05 14:20:34

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int m,n; int g,s,b; bool f=flase; cin>>m>>n; for(int i=m;i<=n;i++){ g=i%10; s=i/10%10; b=i/100; if(i==g*g*g+s*s*s+b*b*b){ cout<<i<<" "; f=true; } } if(f==flase) cout<<"no"<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:12: error: 'flase' was not declared in this scope
     bool f=flase;
            ^