criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll,ll> 
#define rep(i,n) for(ll (i)=0; (i)<(n); ++(i))
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll N,k,d,ans=0;cin>>N>>k;
  ll l=to_string(N).length();
  set<ll> num{0,1,2,3,4,5,6,7,8,9};
  rep(i,k) {
    cin>>d;
    num.erase(d);
  }
  vector<set<ll>> V(l+2);
  bool is_continue=true;
  V[0].insert(0);
  for(ll i:num) {
    if(i<n) V[1].insert(i);
    else {
      ans=i;
      is_continue=false;
      break;}
  }
  if(!is_continue) {
    print(ans);
    return 0;
  }
  for(ll i=2;i<l+2;++i) {
    for(ll j:V[i-1]) {
      if(j==0) continue;
      for(ll k:num) {
        if(j*10+k<N) V[i].insert(j*10+k);
        else {
          ans=j*10+k;
          is_continue=false;
          break;
        }
      }
      if(!is_continue) break;
    }
    if(!is_continue) break;
  }
  print(ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'n' was not declared in this scope
   23 |     if(i<n) V[1].insert(i);
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define P pair<ll,ll> 
#define rep(i,n) for(ll (i)=0; (i)<(n); ++(i))
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll N,k,d,ans=0;cin>>N>>k;
  ll l=to_string(N).length();
  set<ll> num{0,1,2,3,4,5,6,7,8,9};
  rep(i,k) {
    cin>>d;
    num.erase(d);
  }
  vector<set<ll>> V(l+2);
  bool is_continue=true;
  V[0].insert(0);
  for(ll i:num) {
    if(i<n) V[1].insert(i);
    else {
      ans=i;
      is_continue=false;
      break;}
  }
  if(!is_continue) {print(ans);return;}
  for(ll i=2;i<l+2;++i) {
    for(ll j:V[i-1]) {
      if(j==0) continue;
      for(ll k:num) {
        if(j*10+k<N) V[i].insert(j*10+k);
        else {
          ans=j*10+k;
          is_continue=false;
          break;
        }
      }
      if(!is_continue) break;
    }
    if(!is_continue) break;
  }
  print(ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'n' was not declared in this scope
   23 |     if(i<n) V[1].insert(i);
      |          ^
a.cc:29:32: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |   if(!is_continue) {print(ans);return;}
      |                                ^~~~~~
Language: C++

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

bool check(int i, bool num[]){
  string pay = to_string(i);
  for(int p = 0; p < pay.size(); p++){
    if(num[pay[p]-'0']) return false;
  }
  return true;
}

int main(void){
    int N, K;
    cin >> N >> K;
    bool num(10);
    for(int i = 0; i < K; i++){
        int n;
      	cin >> n;
        num[n] = true;
    }

  	for(int i = N; i < 10000; i++){
      if(check(i, num)){
        cout << i << endl;
        break;
      }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: invalid types 'bool[int]' for array subscript
   19 |         num[n] = true;
      |            ^
a.cc:23:19: error: cannot convert 'bool' to 'bool*'
   23 |       if(check(i, num)){
      |                   ^~~
      |                   |
      |                   bool
a.cc:4:24: note:   initializing argument 2 of 'bool check(int, bool*)'
    4 | bool check(int i, bool num[]){
      |                   ~~~~~^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
using namespace std;

int main(void){
	int N,K,i;
	cin >> N >> K;
	string s;
	unordered_set(int) D;
	while(getline(cin, s, ' ')){
		D.insert(stoi(s));
	}
	int n = N;
	int a,b,c,d;
	for(;n < 10000;++n){
		a = n / 1000;
		b = (n - 1000 * a) / 100;
		c = (n - 1000 * a - 100 * b) / 10;
		d = n - 1000 * a - 100 * b - 10 * c;
		if(D.find(a) == D.end() && D.find(b) == D.end() && D.find(c) == D.end() && D.find(d) == D.end()){
			cout << n;
			break;
		}
	}






}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: missing template arguments before '(' token
   11 |         unordered_set(int) D;
      |                      ^
a.cc:11:23: error: expected primary-expression before 'int'
   11 |         unordered_set(int) D;
      |                       ^~~
a.cc:13:17: error: 'D' was not declared in this scope
   13 |                 D.insert(stoi(s));
      |                 ^
a.cc:22:20: error: 'D' was not declared in this scope
   22 |                 if(D.find(a) == D.end() && D.find(b) == D.end() && D.find(c) == D.end() && D.find(d) == D.end()){
      |                    ^
Language: C++

n, k = map(int,input().split())
d = list(map(str, input().split()))
while(n>0):
    S = str(n)
    t = 0
    for i in S:
        if i not in d:
            t += 1
    if t == len(S):
        print(int(S))
        break
    else:
        n += 1

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, k = map(int,input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool check_digit(int arr[], int, int);
int main(){
        int  K;
        string N;
        cin >> N >> K;
        int *arr = new int[K];
        int num = 0;
        int c, flag = 0;
        for(int i = 0; N[i] != '\0'; i++){
                c = (N[i] - '0')*pow(10,N.size()-i-1);
                num = num + c;
        }
        cout << num;
        for(int i = 0; i < K; i++){
                cin >> arr[i];
        }
        int digit;
        for(int i = num; ; i++){
                for(int j = i; j != 0; j /= 10){
                        digit = j%10;
                        if(!check_digit(arr, K, digit)){
                                break;
                        }
                        if(j < 10)
                                flag = 1;

                }
                if(flag == 1){
                        cout << i;
                        break;
                }
        }
                                             1,24          Top


Compiler output:
a.cc: In function 'int main()':
a.cc:35:50: error: expected ';' before 'Top'
   35 |                                              1,24          Top
      |                                                  ^         ~~~
      |                                                  ;
a.cc:35:63: error: expected '}' at end of input
   35 |                                              1,24          Top
      |                                                               ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int N,K;
  cin>>N>>K;
  vector<int> D(K);
  for(int i=0;i<K;i++){
    cin>>D.at(i);
  }
  
  
  while(1){
    bool flag=true;
    do{
      int x=N%10;
      for(int i=0;i<K;i++){
        if(x==D.at(i)){
          flag=false;
          break;
        }
      }
      if(!flag){
        break;
      }
      N/=10;
    }while(N!=0);
    if(falg){
      break;
    }
    N++;
  }
  
  cout<<N<<endl;
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: 'falg' was not declared in this scope; did you mean 'flag'?
   28 |     if(falg){
      |        ^~~~
      |        flag
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define mp make_pair
#define F first
#define S second
#define db double
#define pb push_back
using namespace std;

bool compare(const pair<ll,ll>&a,const pair<ll,ll>&b)
{
    return a.second<b.second;
}


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    ll tests=1;
    //cin>>tests;
    while(tests--)
    {
       ll n,k,i,t;
       cin>>n>>k;
       set<ll>like;
       for(i=0;i<k;i++){cin>>t;like.insert(t);}
       string ans;
       ll extra=0;
       ll small=0;
       while(small<10)
       {
           if(like.find(small)!=like.end()) small++;
           else {break;}
       } ll cnt=0;
       for(auto x:to_string(n))
       {
           t=(int)x-48;
           if(extra)
           {
               ll tmp
               ans+=to_string(small);
           }
           else if(like.find(t)!=like.end())
           {
               while(t<10)
               {
                   if(like.find(t)!=like.end())
                   {t++;}
                   else {ans=ans+to_string(t);break;}
                   if(t==10) 
                   {
                       if(cnt!=0)
                       t=0;
                       else t=1;
                   extra++;}
               }
           }
           else {ans+=to_string(t);} 
           cnt++;
           
       }
       if(extra) {ans+=to_string(small);}
       cout<<ans;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:16: error: expected initializer before 'ans'
   43 |                ans+=to_string(small);
      |                ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int k,s,n;
  //string s;
  cin>>s>>k;
  vector<bool> v(10);
  while(k--){
  	cin>>n;
    v[n]=true;
  }
  n=s;
  for(;n<=100000;n++){
  	bool x = true;
    string ks = n.to_string();
    for(int j=0;j<(int)ks.size();j++){
    	if(v[ks[j]-'0']) x=false;
    }
    if(x) break;
  }
  cout<<n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: request for member 'to_string' in 'n', which is of non-class type 'int'
   15 |     string ks = n.to_string();
      |                   ^~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <set>
using namespace std;
int n, k;
vector<int> ds;
int main() {
  cin>>n>>k;
  ds.clear();
  for (int i = 0; i < k; ++i) {
  	int d;
    cin>>d;
    ds.push_back(d);
  }
  set<int> dss(ds.begin(), ds.end());
  for (int i = n; i <= 1000000; ++i) {
  	vector<int> tds;
    tds.clear();
    int j =i;
    while(j) {
      tds.push_back(j % 10);
      j /= 10;
    }
    int t;
    for (t=0;t < tds.size(); ++t) {
      if (ds.find(t) != ds.end()) break;
    }
    if (t>=tds.size()) {
      cout<<i<<endl;
      break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:14: error: 'class std::vector<int>' has no member named 'find'
   29 |       if (ds.find(t) != ds.end()) break;
      |              ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
int n, k;
vector<int> ds;
int main() {
  cin>>n>>k;
  ds.clear();
  for (int i = 0; i < k; ++i) {
  	int d;
    cin>>d;
    ds.push_back(d);
  }
  set<int> dss(ds.begin(), ds.end());
  for (int i = n; i <= 1000000; ++i) {
  	vector<int> tds;
    tds.clear();
    int j =i;
    while(j) {
      tds.push_back(j % 10);
      j /= 10;
    }
    int t;
    for (t=0;t < tds.size(); ++t) {
      if (ds.find(t) != ds.end()) break;
    }
    if (t>=tds.size()) {
      cout<<i<<endl;
      break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'set' was not declared in this scope
   17 |   set<int> dss(ds.begin(), ds.end());
      |   ^~~
a.cc:6:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    5 | #include <vector>
  +++ |+#include <set>
    6 | using namespace std;
a.cc:17:7: error: expected primary-expression before 'int'
   17 |   set<int> dss(ds.begin(), ds.end());
      |       ^~~
a.cc:28:14: error: 'class std::vector<int>' has no member named 'find'
   28 |       if (ds.find(t) != ds.end()) break;
      |              ^~~~
Language: C++



#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;


int main()
{
	int N, K;
	cin >> N >> K;

	bool dis[10] = { };
	for (int i = 0; i < K; i++) {
		int D;
		cin >> D;
		dis[D] = true;
	}
	int num[4];
	int dig = 0;
	while (N > 0) {
		num[dig++] = N % 10;
		N /= 10;
	}
	int min;
	for (int i = 1; i < 10; i++) {
		if (!dis[i]) {
			min = i;
			break;
		}
	}
	int max;
	for (int i = 9; i >= 0; i--) {
		if (!dis[i]) {
			max = i;
			break;
		}
	}
	int maxnum = 0;
	for (int i = 0; i < dig; i++) {
		maxnum *= 10;
		maxnum += max;
	}
	int ans = 0;
	if (maxnum < K) {
		ans = min * (pow(10, dig));
	} else {
		bool same = true;
		dig--;
		for (int i = dig; i >= 0; i--) {
			if (same) {
				for (int j = num[i]; j < 10; j++) {
					if (!dis[j]) {
						ans *= 10;
						ans += j;
						break;
					}
					same = false;
				}
			} else {
				ans *= 10;
				if (dis[0]) ans += min;
				else ans += 0;
			}
		}
	}
	cout << ans << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:30: error: 'pow' was not declared in this scope
   49 |                 ans = min * (pow(10, dig));
      |                              ^~~
Language: Java

import java.util.Scanner;
public class Beginner042C {

	public static int checkNumber(int num,int[] arr,int k)
	{
		//System.out.println("First CAll");
		int flag=0,r;
		while(num>0)
		{
			r=num%10;
			for(int i=0;i<k;i++)
			{
				if(r==arr[i])
				{	
					flag=1;
					System.out.println(flag);
					return flag;
				}
			}
			num=num/10;
		}
		//System.out.println(flag);
		return flag;
	}
	public static void main(String[] args) {
		
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
			arr[i]=sc.nextInt();
		int num=n;
		//System.out.println("HELLO");
		if(checkNumber(n,arr,k)!=1)
			System.out.println(n);
		else
		{
			while(checkNumber(num,arr,k)==1)
			{
				num++;
			}
		}
		if(n!=num)
		{
			System.out.println(num);
		}
			

	}

}


Compiler output:
Main.java:2: error: class Beginner042C is public, should be declared in a file named Beginner042C.java
public class Beginner042C {
       ^
1 error
Language: C++

from itertools import *

if __name__=="__main__":
    n,k = map(int,input().split(' '))
    d = list(map(int,(input().split(' '))))
    d = [i for i in range(10) if i not in d]
    ans = 1e10
    keta = len(str(n))
    for perm in product(d,repeat=keta):
        num = 0
        for v in perm:
            num = 10*num+v
        if n <= num and num < ans:
            ans = num
    print(ans)



Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from itertools import *
      | ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>

int main(){
    int n, k;
    std::cin >> n >> k;

    std::vector<int> D(10)
    for(int i = 0; i < k; i++) std::cin >> D[i];

    for(int i = n; i <= 10 * n; i++){
        std::string s = std::to_string(i);
        bool ok = true;

        for(int j = 0; j < k; j++){
            if(std::count(s.begin(),s.end(),D[j] + '0')){
                ok = false;
                break;
            }
        }

        if(ok){
            std::cout << i << std::endl;
            return 0;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'for'
   11 |     for(int i = 0; i < k; i++) std::cin >> D[i];
      |     ^~~
a.cc:11:20: error: 'i' was not declared in this scope
   11 |     for(int i = 0; i < k; i++) std::cin >> D[i];
      |                    ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>

int main(){
    int n, k;
    std::cin >> n >> k;

    std::vector<int> D(10)
    for(int i = 0; i < k; i++) std::cin >> D[i];

    for(int i = n; i <= 10 * n; i++){
        std::string s = std::to_string(i);
        bool ok = true;

        for(int j = 0; j < k; j++){
            if(std::count(s.begin(),s.end(),D[j] + '0')){
                ok = false;
                break;
            }
        }

        if(ok){
            std::cout << i << std::endl;
            return 0;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'vector' is not a member of 'std'
    9 |     std::vector<int> D(10)
      |          ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include<algorithm>
  +++ |+#include <vector>
    4 | 
a.cc:9:17: error: expected primary-expression before 'int'
    9 |     std::vector<int> D(10)
      |                 ^~~
a.cc:10:20: error: 'i' was not declared in this scope
   10 |     for(int i = 0; i < k; i++) std::cin >> D[i];
      |                    ^
a.cc:17:45: error: 'D' was not declared in this scope
   17 |             if(std::count(s.begin(),s.end(),D[j] + '0')){
      |                                             ^
Language: C++

#include <iostream>
#include <vector>
#include <iostream>
#include <cstdio>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <algorithm>
#include <cmath>
#include <queue>
#include <deque>
#include <stack>
 
#define ll long long
#define pb push_back
#define vi vector<int>
#define sz(a) (int((a).size()))
#define mp make_pair
#define f first
#define s second
#define pii pair<int, int>
 
using namespace std;
 
const int mod = 998244353;
const int inf = (int)2e9;
const ll INF = (ll)2e18;
const int N = 100100;

int d[11];
int n, k;
vi dt;

bool present(int x) {
	for (int i = 1; i <= k; i++) {
		if (d[i] == x) return true;
	}
	return false;
}

int find_more(int x) {
	for (int i = 0; i < sz(dt); i++) {
		if (dt[i] > x) {
			return dt[i];
		}
	}
	assert(false);
}

vi ans;

int main() {
	ios_base::sync_with_stdio(0), cin.tie(0);
	cin >> n >> k;
	for (int i = 1; i <= k; i++) {
		cin >> d[i];
	}

	for (int i = 1; i <= 9; i++) {
		if (!present(i)) {
			dt.pb(i);
		}
	}

	while (n) {
		int x = n % 10;
		if (present(x)) {
			ans.pb(find_more(x));
		} else {
			ans.pb(x);
		}
		n /= 10;
	}
	for (int i = sz(ans) - 1; i >= 0; i--) {
		cout << ans[i];
	}
	cout << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int find_more(int)':
a.cc:48:9: error: 'assert' was not declared in this scope
   48 |         assert(false);
      |         ^~~~~~
a.cc:14:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
   13 | #include <stack>
  +++ |+#include <cassert>
   14 | 
a.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
   49 | }
      | ^
Language: C++

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

typedef long long ll;

bool path(vector<vector<int> > v, int a, int b)
{
  	bool vis[a][b];
  	memset(vis, false, sizeof(vis));
	queue<pair<int, int> > q;
  	q.push(make_pair(0, 0));
  	int r[2] = {0, 1};
  	int c[2] = {1, 0};
  	int count = 0;
  	while(!q.empty())
    {
    	pair<int, int> t = q.front();
      	q.pop();
      	int curx = t.first;
      	int cury = t.second;
      	vis[curx][cury] == true;
      	if(curx == a-1 && cury == b-1)
          	count++;
      	for(int i = 0; i < 2; i++)
        {
        	int nextx = curx + r[i];
          	int nexty = cury + c[i];
          	if((nextx >= 0 && nextx < a) && (nexty >= 0 && nexty < b) && !vis[nextx][nexty] && v[nextx][nexty] == 0)
            {
            	vis[nextx][nexty] = true;
              	q.push(make_pair(nextx, nexty));
            }
        }
    }
  	return (count % (10e9 + 7));
}

int main()
{
  	int a, b, c, d;
  	cin>>a>>b>>c>>d;
  	vector<vector<int> > v( a , vector<int> (b, 0));
  	int rs = a-c, rf = a-1, cs = 0, cf = b-d;
  	for(int i = rs; i <= rf; i++)
    	for(int j = cs; j <= cf; j++)
          	v[i][j] = 1;
  	ll res = path(v, a, b);
  	cout<<res<<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'bool path(std::vector<std::vector<int> >, int, int)':
a.cc:35:23: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   35 |         return (count % (10e9 + 7));
      |                 ~~~~~ ^ ~~~~~~~~~~
      |                 |             |
      |                 int           double
Language: C++

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

int dislike(int n,int* d,int k){
  int i,j,p,m=n,digit=0;
  while(m!=0){
    m/=10;
    dight++;
  }
  for(i=0;i<k;i++){
    p=n;
    for(j=0;j<digit;j++){
      for(int i2=0;i2<j;i2++){
        p/=10;
      }
      if(p%10!=d[i])return 1;
    }
  }
  return 0;
}

int main(){
  int i,j,cnt;
  int n,k;
  cin>>n>>k;
  int d[k];
  for(i=0;i<k;i++)cin>>d[i];
  for(i=0;i<100000;i++){
    if(n<=i && !dislike(i,d,k)){
      cout<<i;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int dislike(int, int*, int)':
a.cc:8:5: error: 'dight' was not declared in this scope; did you mean 'digit'?
    8 |     dight++;
      |     ^~~~~
      |     digit
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod = 1000000007;
#define rep(i, n) for(ll i = 0; i < (n); i++)
#define ALL(a)  (a).begin(),(a).end()
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

int main(){
  IOS;
  int n,k;
  cin>>n>>k;
  string d,a;
  for(int i=0;i<k;++i){
	cin>>d;
	a+=d;
  }
  while(npos!=to_string(n).find_first_of(a)) ++n;
  cout<<n;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'npos' was not declared in this scope
   18 |   while(npos!=to_string(n).find_first_of(a)) ++n;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  string d,a;
  for(int i=0;i<k;++i){
	cin>>d;
	a+=d;
  }
  while(string::npos!=to_string(N).find_first_of(a))++N;
  cout<<n;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'N' was not declared in this scope
   11 |   while(string::npos!=to_string(N).find_first_of(a))++N;
      |                                 ^
Language: C++

for (int j = 0; j < m; j++){
    if (t == 4){
        while (n/1000 == d[j] || n/100 == d[j] || n/10 == d[j] || n == d[j]){
        n++;
    }
}else if (t == 3){
    while (n/100 == d[j] || n/10 == d[j] || n == d[j]){
        n++;
}
    }else if (t == 2){
        while (n/10 == d[j] || n == d[j]){
        n++;
}
    }else{
        while (n == d[j]){
        n++;
}
    }
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for (int j = 0; j < m; j++){
      | ^~~
a.cc:1:17: error: 'j' does not name a type
    1 | for (int j = 0; j < m; j++){
      |                 ^
a.cc:1:24: error: 'j' does not name a type
    1 | for (int j = 0; j < m; j++){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n ,k;
  cin >> n >> k;
  vector<int> d(10);
  for (i=0;i<k;i++){
    int x;
    cin >> x;
    d.at(x)++;
  }
  for(i=n;;i++){
    string s = to_string(i);
    bool b = true;
    for(j=0;j<s.size();j++){
      if(d.at(s.at(j)-'0')){
        b = false;
      }
      if(b){
        cout << i << endl;
        break;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i=0;i<k;i++){
      |        ^
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=n;;i++){
      |       ^
a.cc:15:9: error: 'j' was not declared in this scope
   15 |     for(j=0;j<s.size();j++){
      |         ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	for(int i = 0; i < 10; i++) {
        	while(true) {
              	//System.out.println(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10);
              	if(Arrays.asList(dislikeNumberInteger).contains(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10) == false) {
                 	if(N < (int) Math.pow(10, i + 1)) {
                      	if(Arrays.asList(dislikeNumberInteger).contains(0)) {
                        	for(int j = 1; j < 10; j++) {
                              	int newJ = j;
                            	if(Arrays.asList(dislikeNumberInteger).contains(newJ) = false) {
                                	for(int k = i; k < -1; k--) {
                                    	int newN = newN + j * (int) Math.pow(10, i);
                                    }
                                }
                            }
                        } 
                    	System.out.println(N);
                      	return;
                    }
                  	break;
                }
              	N = N + (int) Math.pow(10, i);
            }
        }	
	}
}
 

 



Compiler output:
Main.java:24: error: unexpected type
                            	if(Arrays.asList(dislikeNumberInteger).contains(newJ) = false) {
                            	                                               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	for(int i = 0; i < 10; i++) {
        	while(true) {
              	//System.out.println(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10);
              	if(Arrays.asList(dislikeNumberInteger).contains(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10) == false) {
                 	if(N < (int) Math.pow(10, i + 1)) {
                      	if(Arrays.asList(dislikeNumberInteger).contains(0)) {
                        	for(int j = 1; j < 10; j++) {
                              	int newJ == j;
                            	if(Arrays.asList(dislikeNumberInteger).contains(newJ) = false) {
                                	for(int k = i; k < -1; k--) {
                                    	int newN = newN + j * (int) Math.pow(10, i);
                                    }
                                }
                            }
                        } 
                    	System.out.println(N);
                      	return;
                    }
                  	break;
                }
              	N = N + (int) Math.pow(10, i);
            }
        }	
	}
}
 

 



Compiler output:
Main.java:23: error: ';' expected
                              	int newJ == j;
                              	        ^
Main.java:23: error: not a statement
                              	int newJ == j;
                              	            ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	for(int i = 0; i < 10; i++) {
        	while(true) {
              	//System.out.println(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10);
              	if(Arrays.asList(dislikeNumberInteger).contains(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10) == false) {
                 	if(N < (int) Math.pow(10, i + 1)) {
                      	if(Arrays.asList(dislikeNumberInteger).contains(0)) {
                        	for(int j = 1; j < 10; j++) {
                            	if(Arrays.asList(dislikeNumberInteger).contains(j) = false) {
                                	for(int k = i; k < -1; k--) {
                                    	int newN = newN + j * (int) Math.pow(10, i);
                                    }
                                }
                            }
                        } 
                    	System.out.println(N);
                      	return;
                    }
                  	break;
                }
              	N = N + (int) Math.pow(10, i);
            }
        }	
	}
}
 

 



Compiler output:
Main.java:23: error: unexpected type
                            	if(Arrays.asList(dislikeNumberInteger).contains(j) = false) {
                            	                                               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	for(int i = 0; i < 10; i++) {
        	while(true) {
              	//System.out.println(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10);
              	if(Arrays.asList(dislikeNumberInteger).contains(N / (int) Math.pow(10, i) - (N / (int) Math.pow(10, i + 1)) * 10) == false) {
                 	if(N < (int) Math.pow(10, i + 1)) {
                      	if(Arrays.asList(dislikeNumberInteger).contains(0)) {
                        	for(int j = 1; j < 10; j++) {
                            	if(Arrays.asList(dislikeNumberInteger).contains(i) = false) {
                                	for(int k = i; k < -1; k--) {
                                    	int newN = newN + j * Math.pow(10, i);
                                    }
                                }
                            }
                        } 
                    	System.out.println(N);
                      	return;
                    }
                  	break;
                }
              	N = N + (int) Math.pow(10, i);
            }
        }	
	}
}
 

 



Compiler output:
Main.java:23: error: unexpected type
                            	if(Arrays.asList(dislikeNumberInteger).contains(i) = false) {
                            	                                               ^
  required: variable
  found:    value
Main.java:25: error: incompatible types: possible lossy conversion from double to int
                                    	int newN = newN + j * Math.pow(10, i);
                                    	                ^
2 errors
Language: C++

#include<algorithm>
#include<iostream>

int main(void)
{
  int n = 0;
  int k = 0;
  std::cin >> n >> k;
  
  std::vector<int> dis(k);
  for(int index = 0; k > index; ++index)
  {
    std::cin >> dis[index];
  }
  
  int base = 1;
  int upper = 10;
  for(int digit = 0; 5 > digit; ++digit)
  {
    while(dis.end() != std::find(dis.begin(), dis.end(), (n / base) % upper))
    {
      n += base;
    }
    if(upper > n)
    {
      break;
    }
  }
  std::cout << n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'vector' is not a member of 'std'
   10 |   std::vector<int> dis(k);
      |        ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<iostream>
  +++ |+#include <vector>
    3 | 
a.cc:10:15: error: expected primary-expression before 'int'
   10 |   std::vector<int> dis(k);
      |               ^~~
a.cc:13:17: error: 'dis' was not declared in this scope; did you mean 'div'?
   13 |     std::cin >> dis[index];
      |                 ^~~
      |                 div
a.cc:20:11: error: 'dis' was not declared in this scope; did you mean 'div'?
   20 |     while(dis.end() != std::find(dis.begin(), dis.end(), (n / base) % upper))
      |           ^~~
      |           div
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	int[] Narray = new int[3];
      	int devidedNumber = N;
      	for(int i = 3; i > -1; i--) {
        	int quotient = devidedNumber / (int) Math.pow(10, i);
          	Narray[3 - i] = quotient;
          	devidedNumber = devidedNumber % (int) Math.pow(10, i);
        }
      	
      	second:for(int i = 3; i > -1; i--) {
        	first:while(true) {
              	if(Arrays.asList(dislikeNumberInteger).contains(Narray[i])) {
                 	continue second; 	
                }
            	if(Arrays.asList(dislikeNumberInteger).contains(Narray[i]) && Narray[i] != 9) {
                	Narray[i] = Narray[i] + 1;
                  	continue first;
                } else if(Narray[i] == 9) {
                	Narray[i] = 0;
                  	Narray[i - 1] = Narray[i -1] + 1;
                  	continue first;
                }
            }
        }
      
      	String answer = Narray[0] + Narray[1] + Narray[2] + Narray[3];
          
       	System.out.println(answer);  	
	}
}
 

 



Compiler output:
Main.java:40: error: incompatible types: int cannot be converted to String
      	String answer = Narray[0] + Narray[1] + Narray[2] + Narray[3];
      	                                                  ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
   		//Listにうまく変換するため
      	Integer[] dislikeNumberInteger = new Integer[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumberInteger[i] = Integer.valueOf(scanner.nextInt());
        }

      	int[] Narray = new int[3];
      	int devidedNumber = N;
      	for(int i = 3; i > -1; i--) {
        	int quotient = devidedNumber / (int) Math.pow(10, i);
          	Narray[3 - i] = quotient;
          	devidedNumber = devidedNumber % (int) Math.pow(10, i);
        }
      	
      	second:for(int i = 3; i > -1; i--) {
        	first:while(true) {
              	if(Arrays.asList(dislikeNumberInteger).contains(Narray[i]) {
                 	continue second; 	
                }
            	if(Arrays.asList(dislikeNumberInteger).contains(Narray[i]) && Narray[i] != 9) {
                	Narray[i] = Narray[i] + 1;
                  	continue first;
                } else if(Narray[i] == 9) {
                	Narray[i] = 0;
                  	Narray[i - 1] = Narray[i -1] + 1;
                  	continue first;
                }
            }
        }
      
      	String answer = Narray[0] + Narray[1] + Narray[2] + Narray[3];
          
       	System.out.println(answer);  	
	}
}
 

 



Compiler output:
Main.java:26: error: ')' expected
              	if(Arrays.asList(dislikeNumberInteger).contains(Narray[i]) {
              	                                                          ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
      	int[] dislikeNumber = new int[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumber[i] = scanner.nextInt();
        }
      
      	int devidedNumber = N;
      	int answer = N;
      	for(int i = 3; i > -1; i--) {
          	int quotient = devidedNumber / Math.pow(10, i);
          	if(Arrays.asList(dislikeNumber).contains(quotient)) {
            	devidedNumber = devidedNumber + 1;
              	answer = answer + 1;
             	return;
            }
          	devidedNumber = devidedNumber % Math.pow(10, i);
        }
          
       	System.out.println(answer);  	
	}
}
 

 



Compiler output:
Main.java:18: error: incompatible types: possible lossy conversion from double to int
          	int quotient = devidedNumber / Math.pow(10, i);
          	                             ^
Main.java:24: error: incompatible types: possible lossy conversion from double to int
          	devidedNumber = devidedNumber % Math.pow(10, i);
          	                              ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner scanner = new Scanner(System.in);
      
      	int N = scanner.nextInt();
      	int K = scanner.nextInt();
      
      	int[] dislikeNumber = new int[K];

      	for(int i = 0; i < K; i++) {
          	dislikeNumber[i] = scanner.nextInt();
        }
      
      	int devidedNumber = N;
      	int answer = N;
      	for(int i = 3; i > -1; i--) {
          	int quotient = devidedNumber / Math.pow(10, i);
          	if(Arrays.asList(dislikeNumber).contains(quotient)) {
            	devidedNumber = devidedNumber + 1;
              	answer = answer + 1;
             	return;
            }
          	int devidedNumber = devidedNumber % Math.pow(10, i);
        }
          
       	System.out.println(answer);  	
	}
}
 

 



Compiler output:
Main.java:18: error: incompatible types: possible lossy conversion from double to int
          	int quotient = devidedNumber / Math.pow(10, i);
          	                             ^
Main.java:24: error: variable devidedNumber is already defined in method main(String[])
          	int devidedNumber = devidedNumber % Math.pow(10, i);
          	    ^
Main.java:24: error: incompatible types: possible lossy conversion from double to int
          	int devidedNumber = devidedNumber % Math.pow(10, i);
          	                                  ^
3 errors
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());
        int K = Integer.parseInt(scanner.next());

        List<Integer> dislikeList = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            dislikeList.add(Integer.parseInt(scanner.next()));)
        }

        scanner.close();

        // n 以上の整数
        for (int i = N; i < 100000; i++) {
            boolean isCompleted = true;
            String tmp = String.valueOf(i);

            for (int j = 0; j < tmp.length(); j++) {
                int d = Integer.parseInt(String.valueOf(tmp.charAt(j)));
                if (dislikeList.contains(d)) {
                    isCompleted = false;
                    break;
                }
            }

            if (isCompleted) {
                System.out.println(i);
                return;
            }
        }
    }
}


Compiler output:
Main.java:17: error: illegal start of expression
            dislikeList.add(Integer.parseInt(scanner.next()));)
                                                              ^
1 error
Language: C++

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

int main(){
  int n,k;
  cin >> n >> k;
  set<int> d;
  for(int i=0;i<k;i++){
    int dinput;
    cin >> dinput;
    d.insert(dinput);
  }
 for(int i=n;i<100000;i++){
   int k=i;
   set<int> nn;
   while(n > 0){
     nn.insert(k % 10);
     k /= 10; 
    }
    for(int j=0;j<nn.size();j++){
        if(d.count(nn.at(j))) break;
        if(j = nn.size()-1){
            cout << k << endl;
            return 0;
        }
    }
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:23: error: 'class std::set<int>' has no member named 'at'
   21 |         if(d.count(nn.at(j))) break;
      |                       ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <set>
#include <functional>
#include <cmath>
#include <numeric>
#include <iterator>

#define SIZE 100005
#define MOD 1000000007

using namespace std;

class CIrohasObsession {
public:
    int func(string price, int n, set<string> diff) {
        if(price != ""){
            int int_price = stoi(price);
            if (int_price >= n) {
                return int_price;
            }else if (int_price == 0){
                return 100000000;
            }
        }
        int ans = 100000000;
        for (const auto &item : diff) {
            ans = min(ans, func(price + item, n, diff));
        }
        return ans;
    }

    void solve(std::istream &cin, std::ostream &cout) {
        int n, k;
        cin >> n >> k;
        set<string> set_dont_use;
        set<string> set_all{"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};
        for (int i = 0; i < n; ++i) {
            string tmp;
            cin >> tmp;
            set_dont_use.insert(tmp);
        }
        set<string> set_diff;
        set_difference(set_all.begin(), set_all.end(), set_dont_use.begin(), set_dont_use.end(),
                       inserter(set_diff, set_diff.end()));
        cout << func("", n, set_diff) << endl;
    }
};

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author TM
 */


#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <set>
#include <functional>
#include <cmath>
#include <numeric>
#include <iterator>

#define SIZE 100005
#define MOD 1000000007

using namespace std;

class CIrohasObsession {
public:
    int func(string price, int n, set<string> diff) {
        if (price != "") {
            int int_price = stoi(price);
            if (int_price >= n) {
                return int_price;
            }
        }
        int ans = INT_MAX;
        for (const auto &item : diff) {
            ans = min(ans, func(price + item, n, diff));
        }
        return ans;
    }

    void solve(std::istream &cin, std::ostream &cout) {
        int n, k;
        cin >> n >> k;
        set<string> set_dont_use;
        set<string> set_all = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};
        for (int i = 0; i < n; ++i) {
            string tmp;
            cin >> tmp;
            set_dont_use.insert(tmp);
        }
        set<string> set_diff;
        set_difference(set_all.begin(), set_all.end(), set_dont_use.begin(), set_dont_use.end(),
                       inserter(set_diff, set_diff.end()));
        cout << func("", n, set_diff) << endl;
    }
};


int main() {
    CIrohasObsession solver;
    std::istream &in(std::cin);
    std::ostream &out(std::cout);
    solver.solve(in, out);
    return 0;
}


Compiler output:
a.cc: In member function 'int CIrohasObsession::func(std::string, int, std::set<std::__cxx11::basic_string<char> >)':
a.cc:34:19: error: 'INT_MAX' was not declared in this scope
   34 |         int ans = INT_MAX;
      |                   ^~~~~~~
a.cc:19:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   18 | #include <iterator>
  +++ |+#include <climits>
   19 |
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
using vl = vector<ll>;
using vvl = vector<vl>;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    ./ a return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}
int N, K;
vector<int> D;

bool iscontain(ll in) {
    string s = to_string(in);
    // cout << "s is" << s << endl;
    REP(j, s.length()) {
        REP(k, K) {
            if(s[j] - '0' == D[k]) {
                return false;
            }
        }
    }
    return true;
}
int main() {
    cin >> N >> K;
    D.resize(K);
    REP(i, K) { cin >> D[i]; }
    // N円以上
    for(ll i = N; i < INF; i++) {
        if(iscontain(i)) {
            cout << i << endl;
            return 0;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'bool chmax(T&, T)':
a.cc:28:5: error: expected primary-expression before '.' token
   28 |     ./ a return false;
      |     ^
a.cc:28:6: error: expected unqualified-id before '/' token
   28 |     ./ a return false;
      |      ^
a.cc:28:9: error: expected ';' before 'return'
   28 |     ./ a return false;
      |         ^~~~~~~
      |         ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}
///////////////////////////
int main() {
  long long int a=0,b=0,c=0,d=0,k=0,m=0,n=0,h=0,w=0,count=0,ans=0;
  string s;
  bool flag=true;
  cin>>n>>k;
  vector<int> v(k),w;
  rep(i,k) cin>>v[i];
  while(flag){
    int nn=n;
    
    while(nn!=0){
      w.push_back(nn%10);
      nn/=10;
    }
    flag=false;
    for(auto x:v){
      for(auto y:w){
        if(x==y){
          flag=true;
          break;
        }
        
      }
    }
    n++;
  }
  cout<<n<<endl;
}
///////////////////////////



Compiler output:
a.cc: In function 'int main()':
a.cc:30:20: error: conflicting declaration 'std::vector<int> w'
   30 |   vector<int> v(k),w;
      |                    ^
a.cc:26:49: note: previous declaration as 'long long int w'
   26 |   long long int a=0,b=0,c=0,d=0,k=0,m=0,n=0,h=0,w=0,count=0,ans=0;
      |                                                 ^
a.cc:36:9: error: request for member 'push_back' in 'w', which is of non-class type 'long long int'
   36 |       w.push_back(nn%10);
      |         ^~~~~~~~~
a.cc:41:18: error: 'begin' was not declared in this scope
   41 |       for(auto y:w){
      |                  ^
a.cc:41:18: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:41:18: error: 'end' was not declared in this scope
   41 |       for(auto y:w){
      |                  ^
a.cc:41:18: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~