Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149544 向运淇 100~999的水仙花数 C++ Compile Error 0 MS 0 KB 216 2026-03-14 11:14:08

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int ge,shi,bai,i; for(i=100;i<100;i++){ bai=i/100; shi=(i/10)%10; ge=i%10; if(bai*bei*bei+shi*shi*shi+ge*ge*ge==i) cout<<i<<" "; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: 'bei' was not declared in this scope
  if(bai*bei*bei+shi*shi*shi+ge*ge*ge==i)
         ^
Main.cc:12:1: error: expected '}' at end of input
 }
 ^