Language: C++

\#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
#define sz size()
#define pb(x) push_back(x) 
#define bg begin()
#define ed end()
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep1(i,n) for(ll i=1;i<=n;i++)
#define mp(x,y) make_pair(x,y)
const ll MOD=1000000007;

ll maxx(ll x,ll y,ll z){
	return max(max(x,y),z);
}
ll minn(ll x,ll y,ll z){
	return min(min(x,y),z);
}
ll gcd(ll x,ll y){
	if(x%y==0) return y;
    else return gcd(y,x%y);
}
ll lcm(ll x,ll y){
	return x*(y/gcd(x,y));
}
ll myceil(ll x,ll y){//yがいくつ集まったらx以上になるか
	if(x<=y) return 1;
	else if(x%y==0) return x/y;
	else return x/y+1;
}

vector<ll> time10(19,1);
vector<bool> d(10,true);

bool check(ll x,ll y){
	ll tmp=x;
	for(int i=y-1;i>=0;i--){
		if(d[tmp/time10[i]]==false) return false;
		tmp%=time10[i];
	}
	return true;
}

//a,b x
int main(){
	rep1(i,18) time10[i]=10*time10[i-1];
	ll N,K; cin>>N>>K;
	rep(i,K){
		ll tmp; cin>>tmp;
		d[tmp]=false;
	}
	ll i=0;
	while(time10[i]<=N){
		i++;
	}
	while(1){
		if(check(N,i)){
			cout<<N;
			return 0;
		}
		N++;
	}
}

Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \#include<bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include<bits/stdc++.h>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair<ll,ll> P;
      |         ^~~~
a.cc: In function 'll maxx(ll, ll, ll)':
a.cc:16:20: error: 'max' was not declared in this scope; did you mean 'maxx'?
   16 |         return max(max(x,y),z);
      |                    ^~~
      |                    maxx
a.cc:16:16: error: 'max' was not declared in this scope; did you mean 'maxx'?
   16 |         return max(max(x,y),z);
      |                ^~~
      |                maxx
a.cc: In function 'll minn(ll, ll, ll)':
a.cc:19:20: error: 'min' was not declared in this scope; did you mean 'minn'?
   19 |         return min(min(x,y),z);
      |                    ^~~
      |                    minn
a.cc:19:16: error: 'min' was not declared in this scope; did you mean 'minn'?
   19 |         return min(min(x,y),z);
      |                ^~~
      |                minn
a.cc: At global scope:
a.cc:34:1: error: 'vector' does not name a type
   34 | vector<ll> time10(19,1);
      | ^~~~~~
a.cc:35:1: error: 'vector' does not name a type
   35 | vector<bool> d(10,true);
      | ^~~~~~
a.cc: In function 'bool check(ll, ll)':
a.cc:40:20: error: 'd' was not declared in this scope
   40 |                 if(d[tmp/time10[i]]==false) return false;
      |                    ^
a.cc:40:26: error: 'time10' was not declared in this scope
   40 |                 if(d[tmp/time10[i]]==false) return false;
      |                          ^~~~~~
a.cc:41:22: error: 'time10' was not declared in this scope
   41 |                 tmp%=time10[i];
      |                      ^~~~~~
a.cc: In function 'int main()':
a.cc:48:20: error: 'time10' was not declared in this scope
   48 |         rep1(i,18) time10[i]=10*time10[i-1];
      |                    ^~~~~~
a.cc:49:17: error: 'cin' was not declared in this scope
   49 |         ll N,K; cin>>N>>K;
      |                 ^~~
a.cc:52:17: error: 'd' was not declared in this scope
   52 |                 d[tmp]=false;
      |                 ^
a.cc:55:15: error: 'time10' was not declared in this scope
   55 |         while(time10[i]<=N){
      |               ^~~~~~
a.cc:60:25: error: 'cout' was not declared in this scope
   60 |                         cout<<N;
      |                         ^~~~