Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
15 邓小龙 水仙花数II C++ Compile Error 0 MS 0 KB 425 2022-07-17 08:48:18

Tests(0/0):


Code:

#include<iostream> using namespace std; int maim(){ int m,n,j; int a; bool f=false; cin>>m>>n; for(int i=m;i<=n;i++) { a=0; j=i; while(j) { a+=j%10*j%10*j%10; j=j/10; } if(a==i) { cout<<i<<" "; f=true; } } if(!f) cout<<"no"; return 0; }


Run Info:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status