哪位能帮我看一下代码?

//
// Created by fym on 2022/12/15.
//
#include 
using namespace std;
int main(){
    int m,k;
    cin>>m>>k;
    int s;
    if(m%19==0){
        s=m/19;
        if(s==k*3){
            cout<<"YES";
        }else{
            cout<<"NO";
        }
    }else{
        cout<<"NO";
    }
    return 0;
}

题目请见下面链接:
http://ybt.ssoier.cn:8088/problem_show.php?pid=1090

k个3必须获取m的每一位数字判断才行


#include <bits/stdc++.h>
using namespace std;

int func(int n)
{
    int count = 0;
    while(n>0)
    {
        if(n%10 == 3)
            count++;
        n/=10;
    }
    return count;
}

int main(){
    int m,k;
    cin>>m>>k;
    if(m%19==0 && func(m) == k)
        cout<<"YES";
    else
        cout<<"NO";
    return 0;
}