Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119087 | 罗睿妍 | 满足条件的数II | C++ | Compile Error | 0 MS | 0 KB | 347 | 2025-05-14 21:30:55 |
#include <iostream> using namespace std ; int main() { int m,n,k,temp=0,i=0; cin>>m>>>k; if(m%19==0) { while(m!=0) { n=m%10; m=m/10; if(n==3) i++; } } if(i==k)cout<<"YES"<<endl: else cout<<"NO"<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:7:13: error: expected primary-expression before '>' token cin>>m>>>k; ^ Main.cc:18:30: error: expected ';' before ':' token if(i==k)cout<<"YES"<