Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113793 陈铎文 水仙花数II C++ Compile Error 0 MS 0 KB 263 2025-03-16 15:09:12

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int m,n,a,b,c; int t=0; cin>>m>>n; for(int i=n;i<=m;i++){ a=i/100; b=i/10%10; c=i%100 if(a+b+c==i){ t=1; cout<<i<<" "; } } if(t==0) cout<<"No"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:3: error: expected ';' before 'if'
   if(a+b+c==i){
   ^