Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138727 刘益梵 水仙花数II C++ Compile Error 0 MS 0 KB 284 2025-11-29 16:17:51

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a,b,c,cnt=0; scanf("%d%d",&m,&n); for(int i=m;i<=n;i++){ a=i/100; b=i/10%10; c=i%10; if(pow(c,3)+pow(b,3)+pow(a,3)==i){ cout<<x<<" "; cnt++; } } if(cnt==0) cout<<"no"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:10: error: 'x' was not declared in this scope
    cout<