| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66144 | 刘宇轩 | 水仙花数II | C++ | Compile Error | 0 MS | 0 KB | 355 | 2024-03-02 16:13:01 |
# include<iostream> # include<cstdio> using namespace std; int main(){ int a,b,c=0; int n,m, bool f=0; cin>>n>>m; for(int i=n;i<=m;i++){ a=i%10; b=(i/10)%10; c=i/100; if((a*a*a+b*b*b+c*c*c)==i){ cout<<i<<' '; f=1; } } if(f=0){ cout<<"no"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:2: error: expected unqualified-id before 'bool'
bool f=0;
^
Main.cc:15:7: error: 'f' was not declared in this scope
f=1;
^
Main.cc:19:8: error: 'f' was not declared in this scope
if(f=0){
^