Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118674 | 马珺宇 | 水仙花数II | C++ | Compile Error | 0 MS | 0 KB | 363 | 2025-05-10 09:27:18 |
#include<bits/stdc++.h> using naespace std; int main(){ int m,n; bool flag=0; cin>>m>>n; for(int i=m;i<=n;i++){ int a,b,c; a=i%10; b=i/10%10; c=i/100; if(a*a*a+b*b*b+c*c*c==i){ cout<<i<<" "; sum=1; } } if(!sum){ cout<<"no'; } return 0; }
Main.cc:18:9: warning: missing terminating " character cout<<"no'; ^ Main.cc:18:3: error: missing terminating " character cout<<"no'; ^ Main.cc:2:7: error: expected nested-name-specifier before 'naespace' using naespace std; ^ Main.cc: In function 'int main()': Main.cc:6:5: error: 'cin' was not declared in this scope cin>>m>>n; ^ Main.cc:6:5: note: suggested alternative: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0, from Main.cc:1: /usr/include/c++/5/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ Main.cc:13:13: error: 'cout' was not declared in this scope cout<