| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64555 | 夏轩淇 | 水仙花数II | C++ | Compile Error | 0 MS | 0 KB | 272 | 2024-01-21 16:46:49 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n,m; for(int i=n;i<=m;i++){ int g=i%10; int s=i/10%10; int b=i/100%10; if(g*g*g+s*s*s+b*b*b=i){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:10: warning: right operand of comma operator has no effect [-Wunused-value]
cin>>n,m;
^
Main.cc:12:23: error: lvalue required as left operand of assignment
if(g*g*g+s*s*s+b*b*b=i){
^