Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95990 | 杜春雨 | 满足条件的数II | C++ | Compile Error | 0 MS | 0 KB | 290 | 2024-11-02 16:58:50 |
#include<bits/stdc++.h> using namespace std; int main() { int m,y,k,sum=0; cin>>m>>k; if(m%19==0){ while(m!=0) y=m%10; m/=10; if(y==3){ sm++; } if(sum==k;) cout<<"YES"; } else cout<<"NO"; } return 0; }
Main.cc: In function 'int main()': Main.cc:12:7: error: 'sm' was not declared in this scope sm++; ^ Main.cc:14:15: error: expected ')' before ';' token if(sum==k;) ^ Main.cc:14:16: error: expected primary-expression before ')' token if(sum==k;) ^ Main.cc: At global scope: Main.cc:20:2: error: expected unqualified-id before 'return' return 0; ^ Main.cc:21:1: error: expected declaration before '}' token } ^