Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100968 蔡佳轩 满足条件的数II C++ Compile Error 0 MS 0 KB 407 2024-12-14 11:51:34

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int m,k,sum=0; cin>>m>>k; if(m%19!=0){ cout<<"NO"; return 0; } else{ while(m!=0){ if(m%10==3){ suum++; } m = m/10; } if(sum==k){ cout<<"YES"; } else{ cout<<"NO"; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:17: error: 'suum' was not declared in this scope
                 suum++;
                 ^