题目如图,程序如下,程序一直出错,求解答
#include<bits/c++.h>
using namespace std;
int main(){
int m;
int k,ans=0;
cin>>m>>k;
if(m%19!=0 || m==0){
cout<<"NO";
return 0;
}
while(m/10!=0){
if(m%10==3) ans++;
m/=10;
}
if(ans==k) cout<<"YES";
else cout<<"NO";
return 0;
}