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

#include <iostream>
#include <cstdio>
#include <queue>
#include <cmath>
#include <random>
#include <fstream>
#include <string>

#define REP(i, N) for(int i = 0; i< N; i++)
using namespace std;
#define ll long long
const int INF = 1 << 29;

const int mod = 1000000007;

/*int mondaiC(){
    int N;
    string S;
    cin >> N;
    cin >> S;
    int j = 0;
    char isshodenaito[2][20] = {0};
    int mae = 0;
    int k =0;
    int l = 0;
    int kara[2] = {0};
    queue <char> isshojanaito1;
    queue <char> isshojanaito2;
    kara[0] = -1;
    kara[1] = -1;
    while(kara[0] < N - 1){
        kara[0]++;
        kara[1]++;
        isshojanaito1.push(S[kara[0]]);
        mae = 0;
        do{
            if(mae == 0){
                do{
                    printf("%c",isshojanaito1.front());
                    j++;
                    while(isshojanaito1.front() != S[2 * N - 1 - kara[1]]){
                        isshojanaito2.push(S[2 * N - 1 - kara[1]]);
                        kara[1]++;
                    }
                    isshojanaito1.pop();
                }while(j < kara[0]);
                mae = 1;
            }else{
                do{
                    k++;
                    printf("%c",isshojanaito2.front());
                    while(isshojanaito2.front() != S[kara[0]]){
                        isshojanaito1.push(S[kara[0]]);
                        kara[0]++;
                    }
                    isshojanaito2.pop();
                }while(k < kara[1]);
                mae = 0;
            }
        }while(kara[0] != kara[1]);
        l ++;
    }
    printf("%d,%d\n",j, k);
    return 0;
}
*/
int mondaiB(){
    int T;
    cin >> T;
    ll A[310];
    ll B[310];
    ll C[310];
    ll D[310];
    REP(i, T){
        cin >> A[i] >> B[i] >> C[i] >> D[i];
    }
    REP(i, T){
        if(A[i] < B[i])printf("No\n"); //
        else if(A[i] % B[i] > C[i])printf("No\n"); //
        else if(B[i] > D[i]) printf("No\n");
        else if(B[i] <= C[i]) printf("Yes\n");
        else if(D[i] % B[i] == 0)printf("Yes\n");
        else if(D[i] % B[i] < B[i] - C[i])printf("No\n");
        else if(D[i] % B[i] > B[i] - C[i]){
            if((A[i] % B[i]) % (D[i] % B[i]) >C[i] % (D[i] % B[i]) || C[i] % (D[i] % B[i]) < B[i] - C[i])printf("No\n");
            else printf("Yes\n");
        }
        else if((A[i] % B[i]) % (D[i] % B[i]) == C[i] % (D[i] % B[i]))printf("Yes\n");
        else printf("No\n");
    }
    return 0;
}

int mondaiA(){
    int N;
    cin >> N;
    int a[110];
    int chigau = 0;
    int kaeru = 0;
    REP(i, N){
        cin >> a[i];
        if(i > 0 && a[i] == a[i -1]){
            chigau ++;
        }else{
            kaeru += (chigau + 1) / 2;
            chigau = 0;
        }
    }
    kaeru += (chigau + 1) / 2;
    printf("%d\n", kaeru);
    return 0;
}

int main(){
    mondaiC();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:115:5: error: 'mondaiC' was not declared in this scope; did you mean 'mondaiB'?
  115 |     mondaiC();
      |     ^~~~~~~
      |     mondaiB
Language: C

#include <stdio.h>

int main(void) {
	int t;
	scanf("%d",&t);
	for(int i=0;i<t;i++){
		long long int a,b,c,d;
		scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
		if(b>a || b>d){
			printf("No\n");
			continue;
		}
		if(d==b || b-a==stock+d){
			printf("Yes\n");
			continue;
		}
		int stock=b%a;

		if((d%b)/(c-stock) != (d%b)/(b-stock)){
			printf("No");
			continue;
		}
		printf("Yes\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:33: error: 'stock' undeclared (first use in this function)
   13 |                 if(d==b || b-a==stock+d){
      |                                 ^~~~~
main.c:13:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <algorithm>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <ctime>
using namespace std;

#ifdef __APPLE__
#define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
#define eprintf(...)
#endif

const int N = (int)1e6 + 123;
const int MOD = (int)1e9 + 7;
const int inf = (int)5e8;
const long long infll = (long long)1e17;


void solve() {
    long long a, b, c, d;
    cin >> a >> b >> c >> d;

    if (a < b) {
        cout << "No" << endl;
        return;
    }

    a -= b;

    if (b > d) {
        cout << "No" << endl;
        return;
    }

    if (b <= c || b == d) {
        cout << "Yes" << endl;
        return;
    }

    if (a > c) {
        a = a - ((a - c + b - 1) / b) * b;
    }

    long long step = d % b;

    long long to_go = (c - a)

    for (int i = 0; i <= 1e6; ++i) {
        a += d;
        long long to_go = (a - c + b - 1) / b;
        if (a - (to_go - 1) * b >= c && a - (to_go - 1) * b <= b - 1) {
            cout << "No" << endl;
            return;
        }
        a -= to_go * b;
    }

    cout << "Yes" << endl;
}

int main() {
#ifdef __APPLE__
#endif
    int t = 1;
    cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:56:5: error: expected ',' or ';' before 'for'
   56 |     for (int i = 0; i <= 1e6; ++i) {
      |     ^~~
a.cc:56:21: error: 'i' was not declared in this scope
   56 |     for (int i = 0; i <= 1e6; ++i) {
      |                     ^
Language: C++

int main(){
    int t;
    long long a,b,c,d;
    long long tmp;
    cin >> t;
    for(int i=0; i<t;i++){
        cin >> a >> b >> c >> d;
        if(a >= b && d >= b){
            bool k[b];
            for(long long j=0;j<b;j++){
                k[j]=false;
            }
            tmp = a%b;
            k[tmp] = true;
            while(true){
                tmp = (tmp +(d-b))%b;
                if(tmp > c && b > tmp){
                    cout << "No" << endl;
                    break;
                } else if(k[tmp]){
                    cout << "Yes" << endl;
                    break;
                }
                k[tmp] = true;
            }
        }else{
            cout << "No" << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> t;
      |     ^~~
a.cc:18:21: error: 'cout' was not declared in this scope
   18 |                     cout << "No" << endl;
      |                     ^~~~
a.cc:18:37: error: 'endl' was not declared in this scope
   18 |                     cout << "No" << endl;
      |                                     ^~~~
a.cc:21:21: error: 'cout' was not declared in this scope
   21 |                     cout << "Yes" << endl;
      |                     ^~~~
a.cc:21:38: error: 'endl' was not declared in this scope
   21 |                     cout << "Yes" << endl;
      |                                      ^~~~
a.cc:27:13: error: 'cout' was not declared in this scope
   27 |             cout << "No" << endl;
      |             ^~~~
a.cc:27:29: error: 'endl' was not declared in this scope
   27 |             cout << "No" << endl;
      |                             ^~~~
Language: C++

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

void appleJuice(int a, int b, int c, int d){
  int A = a;
  for(int k = 0; k < 1000001; k++){
    A -= b;
    if(k < 1000000){
      if(A > c){
        A -= b;
        if(A < 0){
          cout << "No" << endl;
          return;
        }
      }
      else{
        A += d;
      }
    }
    else{
      if(A > c){
        cout << "Yes" << endl;
        return;
      }
      else{
        cout << "No" << endl
        return;
      }
    }
    
  }
}


int main() {
  int T, a, b, c, d;

  cin >> T;
  for(int j = 0; j < T; j++){ //T行で実行
    cin >> a >> b >> c >> d;

    appleJuice(a, b, c, d);
  }
  

Compiler output:
a.cc: In function 'void appleJuice(int, int, int, int)':
a.cc:26:29: error: expected ';' before 'return'
   26 |         cout << "No" << endl
      |                             ^
      |                             ;
   27 |         return;
      |         ~~~~~~               
a.cc: In function 'int main()':
a.cc:43:4: error: expected '}' at end of input
   43 |   }
      |    ^
a.cc:35:12: note: to match this '{'
   35 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
	int t;
	cin >> t;
	double abcds[t][4];
	for(int i = 0; i < t ; i++){
		cin >> abcds[i][0] >> abcds[i][1] >> abcds[i][2] >> abcds[i][3];
	}
	double a,b,c,d;
	double qd,q1,q2,qa;
	double e,n;
	double m;
	for(int j = 0; j < t; j++){
		a = abcds[j][0];
		b = abcds[j][1];
		c = abcds[j][2];
		d = abcds[j][3];
		if(a<b || d<b){
			cout << "No" << endl;
		}else{
			if(c<b){
				qd = d%b;
				qa = a%b;
				e = b - qa;
				if(qd==0){
					n = qa;
				}else{
					while(qd!=0){
						q2 = qd;
						qd = e%qd;
						e = q2;
					}
					m = (b-qa)/e;
					if(ceil(m)==floor(m)){
						m--;
					}else{
						m = floor(m);
					}
					n = qa + m*e;
				}
				if(c<n){
					cout << "No" << endl;
				}else{
					cout << "Yes" << endl;
				}
			}else{
				cout << "Yes" << endl;
			}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:39: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   24 |                                 qd = d%b;
      |                                      ~^~
      |                                      | |
      |                                      | double
      |                                      double
a.cc:25:39: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   25 |                                 qa = a%b;
      |                                      ~^~
      |                                      | |
      |                                      | double
      |                                      double
a.cc:32:55: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   32 |                                                 qd = e%qd;
      |                                                      ~^~~
      |                                                      | |
      |                                                      | double
      |                                                      double
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long a,b,c,d;
long long aa[100001]; 
int doo()
{
	int count=0
	if(b>a||d<b)
		return 0;
	a=a%b;
	while(a<=c)
		a+=b;
	aa[a]++;
	while(a>=b)
	{
		count++;
		if(count>=1000)
			return 1;
		a-=b;
		if(a<=c)
			a+=d;
		aa[a]++;
		if(aa[a]==2)
			return 1;
	}
	return 0;
}
int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		memset(aa,0,100001);
		scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
		if(doo())
			printf("Yes\n");
		else
			printf("No\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int doo()':
a.cc:8:9: error: expected ',' or ';' before 'if'
    8 |         if(b>a||d<b)
      |         ^~
Language: C++

#include<stdio.h>
int main(void)
{


int T;
scanf("%d,&T);
printf("ジュースは%dです。",T);
if (C<=A-B)
{

printf("ジュースは%d本入荷します。",D);


else 
{
printf("ジュースは入荷しません。");

}

return 0;

}



Compiler output:
a.cc:7:7: warning: missing terminating " character
    7 | scanf("%d,&T);
      |       ^
a.cc:7:7: error: missing terminating " character
    7 | scanf("%d,&T);
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:31: error: expected ')' before ';' token
    8 | printf("ジュースは%dです。",T);
      |                               ^
      |                               )
a.cc:7:6: note: to match this '('
    7 | scanf("%d,&T);
      |      ^
a.cc:9:5: error: 'C' was not declared in this scope
    9 | if (C<=A-B)
      |     ^
a.cc:9:8: error: 'A' was not declared in this scope
    9 | if (C<=A-B)
      |        ^
a.cc:9:10: error: 'B' was not declared in this scope
    9 | if (C<=A-B)
      |          ^
a.cc:12:37: error: 'D' was not declared in this scope
   12 | printf("ジュースは%d本入荷します。",D);
      |                                     ^
a.cc:15:1: error: expected '}' before 'else'
   15 | else
      | ^~~~
a.cc:10:1: note: to match this '{'
   10 | {
      | ^
Language: C++

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

bool check(long long int now, vector<long long int> stock, long long int i){

  for(int j =0; j < i; j++){
    if(now == stock[j]){
      return true;
    }
    else if(now < stock[j]) break;
  }
  return false;
}



int main(){
  long long int T, A, B, C, D, num, i = 0;
  bool flag;
  vector<long long int> stock;
  cin >> T;
  for(int t = 0; t < T; t++){
    // cout << endl;
    cin >> A >> B >> C >> D;
    num = A;
    i = 0;
    flag = false;

    //
    long long int x = A/B;
    // while(num - x * B <= C){
    //   x--;
    // }
    // num = num - x*B;
    // cout << "num = "<< num << endl;
    while(1){
      if(x != 0){
        while(num - x * B <= C && x > 0){
          x--;
        }
      }
      num = num - x*B;
      if(num == 0 || x <= 0){
        num += x*B;
      }
      //cout << "num = "<< num << endl;
      //morning
      if(!stock.empty() && flag){
        // cout << "num = " << num << endl;
        sort(stock.begin(), stock.end());
        if(check(num, stock, i)){
          cout << "Yes" << endl;
          stock.clear();
          break;
        }
        flag = false;
      }
      stock.push_back(num);
      i++;

      //lunchtime
      if(num < B){
        cout << "No" << endl;
        stock.clear();
        break;
      }
      else  {
        num = num - B;
      }
      // cout << num << " ";

      //evening
      if(num <= C){
        num += D;
        flag = true;
      }
      //cout << num << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   51 |         sort(stock.begin(), stock.end());
      |         ^~~~
      |         short
Language: C++

#include<bits/stdc++.h>

#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
using namespace std;
int main(){
  ll T;
  cin>>T;
  for(ll i=0;i<T;i++){
    ll a,b,c,d;cin>>a>>b>>c>>d;
    ll sa=d-b;
    if(a<b||sa<0){
      cout<<"No"<<endl;
      continue;
    }
    if(b<=c){
      cout<<"Yes"<<endl;
      continue;
    }
    if(sa==0){
      a=a-a/b*b;
      //cout<<a<<endl;
      if(a<=c)
	cout<<"Yes"<<endl;
      else
	cout<<"No"<<endl;
      continue;
    }
    //  cout<<a-a/b*b<<endl;
    if((a-a/b*b)>c&&(a-a/b*b)<b){
      cout<<"No"<<endl;
      continue;
    }
    bool flag=true;
    a=c/sa*sa;
    //cout<<a<<endl;
    if(a+sa<b){
      cout<<"No"<<endl;
      continue;
    }
    if()
    //    cout<<a<<endl;
    //a=a+(c/sa)*sa;
    cout<<"Yes"<<endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:8: error: expected primary-expression before ')' token
   47 |     if()
      |        ^
Language: Java


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        final int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            final long a = sc.nextLong();
            final long b = sc.nextLong();
            final long c = sc.nextLong();
            final long d = sc.nextLong();
            if (a < b) {
                System.out.println("No");
                continue;
            }
            if (d < b) {
                System.out.println("No");
                continue;
            }
            if (c >= b) {
                System.out.println("Yes");
                continue;
            }

            long from = (a - b - c) % b + c;
            final long add = d % b;
            if (add != 0) {
                long m = (c - from) / add;
                from += (m + 1) * add;
            }
            if (add == 0 && from <= c) {
                from += d;
            }
            if (from >= b) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }

Compiler output:
Main.java:41: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        long long a,b,c,d;
        cin>>a>>b>>c>>d;
        int c1=0;
        //int flag=0;
        if(a<b)
        {
            printf("No\n");
            continue;
        }
        int dd=0,flag=0;
        long long ans=0;
        while(1)
        {
            ans=-1;
            long long low=1,high=1e18;
            while(low<=high)
            {
                long long mid=(low+high)/2;
                if((a-(mid*b))<=c&&(a-(mid*b))>=0)
                {
                    ans=a-(mid*b);

                    low=mid+1;
                }
                else if((a-(mid*b))<0)
                {

                    high=mid-1;
                }
                else
                {
                    low=mid+1;
                }
            }
            if(ans>c||ans<0)
            {
                //cout<<a<<" "<<b<<" "<<c<<endl;
                flag=1;
                printf("No\n")
                break;
            }
            else
            {
                dd++;
                a=ans+d;

            }
            if(dd==1e5)
                break;
        }
        if(!flag)
        {
            printf("Yes\n");
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:31: error: expected ';' before 'break'
   47 |                 printf("No\n")
      |                               ^
      |                               ;
   48 |                 break;
      |                 ~~~~~
Language: C++

#include <iostream>
using namespace std;
long long int gcm(long long int a,long long int b)
{
 
  long long int r, tmp;

  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return b;
}

bool solve(long long int a,long long int b,long long int c,long long int d){
    if(a<b)return false;
    if(b>d)return false;
    long long int x=a%b;
    long long int y=gcm(b,d);
    if(a%b>c)return false;
    if(x+y*(1+(c-x)/y)-b<0)return false;
    return true;
}
int main(void){
    // Your code here!
    long long int　n,a,b,c,d;
    cin>>n;
    for(long long int i=0;i<n;i++){
        cin>>a>>b>>c>>d;
        if(solve(a,b,c,d))cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
}


Compiler output:
a.cc:35:15: error: extended character 　 is not valid in an identifier
   35 |     long long int　n,a,b,c,d;
      |               ^
a.cc: In function 'int main()':
a.cc:36:10: error: 'n' was not declared in this scope
   36 |     cin>>n;
      |          ^
Language: C++

#include <iostream>
using namespace std;
long int gcm(long int a,long int b)
{
 
  long int r, tmp;

  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return b;
}

bool solve(long int a,long int b,long int c,long int d){
    if(a<b)return false;
    if(b>d)return false;
    long int x=a%b;
    long int y=gcm(b,d);
    if(a%b>c)return false;
    if(x+y*(1+(c-x)/y)-b<0)return false;
    return true;
}
int main(void){
    // Your code here!
    long int　n,a,b,c,d;
    cin>>n;
    for(long int i=0;i<n;i++){
        cin>>a>>b>>c>>d;
        if(solve(a,b,c,d))cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
}


Compiler output:
a.cc:35:10: error: extended character 　 is not valid in an identifier
   35 |     long int　n,a,b,c,d;
      |          ^
a.cc: In function 'int main()':
a.cc:36:10: error: 'n' was not declared in this scope
   36 |     cin>>n;
      |          ^
Language: C++

#include<iostream>
using namespace std;

int main(){

  int T;
  cin >> T;
  int a[T],b[T],c[T],d[T];
  for(int i=0;i<T; i++){
    cin >>a[i] >>b[i] >>c[i]>>d[i];
  }
  for(int i=0;i<T;i++){
    int day = a[i];
    if (day < b[i]) cout <<"No"<<endl;
    else{
      while(day > c[i]){
        day -= b[i];
      }
      if (day < 0) cout<< "No" << endl;
      else{
        int key1 = day;
        day += d[i];
        if (day < b[i]) {cout << "No" << endl;}
        else{
          if(day < c[i]) cout << "No" << endl;
          else{
            day -=b[i];
            while(day > c[i]){
              day -=b[i];
            }
            int key2 = day;
            int dif = key2-key1;
            //cout << key2 << dif << endl;                                      
            if (dif == 0){ cout << "Yes" << endl;}
            else if(dif < 0){cout << "No" << endl;}
            else{
              while(key1 <= c[i]){
                key1 += dif;
              }
             }
              if(b[i]>key1) cout << "No" << endl;
              else {cout << "Yes" << endl;}
            }
          }
        }
      }
    }
  }
}




Compiler output:
a.cc:49:1: error: expected declaration before '}' token
   49 | }
      | ^
Language: C++

14
9 7 5 9
9 7 6 9
14 10 7 12
14 10 8 12
14 10 9 12
14 10 7 11
14 10 8 11
14 10 9 11
9 10 5 10
10 10 5 10
11 10 5 10
16 10 5 10
1000000000000000000 17 14 999999999999999985
1000000000000000000 17 15 999999999999999985


Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 14
      | ^~
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#include<stack>
using namespace std;
const int N=1e5+5;
typedef long long ll;
int T;
ll a,b,c,d;
int main()
{
	scanf("%d",&T);
	while(T--){
		scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
        if(a<b||d<b){
			puts("No");
        }
        else if(a%b>c){
			puts("No");
        }
        else if(c>=b){
            puts("Yes");
        }
        else{
            ll p=d-b;
            if(p==0){
				puts("Yes");
				continue ;
            }
            a=a%b;
            ll t=(c-a)/p+1;
            ll f=a+t*p;
            f=f-(f-c-1)/b*b;
            if(f<b){
				puts("No");
            }
            else{
				ll h=f-b;
				bool flag=true;
				while(h!=f-b){
					t=(c-h)/p+1;
					h=h+t*dd;
					h=h-(h-c-1)/b*b;
					if(h<b){
						puts("No");
						flag=false;
						break;
					}
					h-=b;
				}
				if(flag)
					puts("Yes");
            }
        }
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:47: error: 'dd' was not declared in this scope; did you mean 'd'?
   43 |                                         h=h+t*dd;
      |                                               ^~
      |                                               d
Language: C++

#include<cstdio>
#include<cstring>
#include<map>
#include<algorithm>
using namespace std;
typedef long long LL;
map<LL,bool>f;
LL a,b,c,d;
int main()
{
	int T;
	scanf("%d",&T);
	while(T--)
	{
		scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
		if(a<b||d<b||a%b>c)
		{
			printf("No\n");
			continue;
		}
		if(b<c||d%b==0)
		{
			printf("Yes\n");
			continue;
		}
		LL x=a%b,y=(d-b)%b;
		if((((c+1-x)%y+b-c-2)>=y||(c+1-x)%y==0)&&b-c>1
			printf("No\n");
		else
			printf("Yes\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:63: error: expected ';' before 'printf'
   27 |                 if((((c+1-x)%y+b-c-2)>=y||(c+1-x)%y==0)&&b-c>1
      |                                                               ^
      |                                                               ;
   28 |                         printf("No\n");
      |                         ~~~~~~                                 
a.cc:29:17: error: expected primary-expression before 'else'
   29 |                 else
      |                 ^~~~
a.cc:28:40: error: expected ')' before 'else'
   28 |                         printf("No\n");
      |                                        ^
      |                                        )
   29 |                 else
      |                 ~~~~                    
a.cc:27:19: note: to match this '('
   27 |                 if((((c+1-x)%y+b-c-2)>=y||(c+1-x)%y==0)&&b-c>1
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long l;
int main(){
    l t;
    cin>>t;
    l a[t],b[t],c[t],d[t],e[t];
    for(l i=0;i<t;i++){
        cin>>a[i]>>b[i]>>c[i]>>d[i];
        e[i]=a[i];
        while(1){
            if(a[i]>c[i]) a[i]-=((a[i]-c[i]-1)/b[i]+1)*b[i];
            else a[i]-=c[i];
            if(a[i]<0){
                cout<<"No"<<endl;
                break;
            }
            else a[i]+=d[i];
            if(a[i]==e[i]){
                cout<<"Yes"<<endl;
                break;
            }
    }
    return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Sample2 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int t = sc.nextInt();
		int i = 0;
		String[] result = new String[t];	
		while(0<t){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			int d = sc.nextInt();
            int j = 0;
			int flg = 0;
			            while(a-b >= 0){
				int store= a - b;
				if(store <= c){
					a = store + d;
				}else{
					a = store;
				}
            	if(j>b){
            		flg = 1;
					break;
            	}
				j++;				
			}
			if(flg ==1){
				result[i] = "Yes";
			}else{
				result[i] = "No";
			}
			i++;			
			t = t-1;	
		}
		// 出力
		for(int p =0;p<i;p++){
			System.out.println(result[p]);
		}
	}
}


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

#include <stdio.h>

int main(void)
{
  int T;
  int num,i,j;
  int ago[1000];
  int A[300],B[300],C[300],C[300];

  j = 0;
  
  for(i = 0;i < T;i++) {
    scanf("%d %d %d %d", &A[i], &B[i], &C[i], &D[i]);
    
    num = A[i];
    
    while (1) {
      num = num - B[i];
      if(num < 0) {
        printf("No\n");
        break;
      }
      
      ago[j] = num;
      
      if(num <= C[i]) {
        num += D[i];
      }
      
      for(n = 0;n <= j;n++) {
        if(num == ago[n]) {
          printf("Yes\n");
          break;
        }
      }

      j++;
    }
    
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:28: error: redeclaration of 'C' with no linkage
    8 |   int A[300],B[300],C[300],C[300];
      |                            ^
main.c:8:21: note: previous declaration of 'C' with type 'int[300]'
    8 |   int A[300],B[300],C[300],C[300];
      |                     ^
main.c:13:48: error: 'D' undeclared (first use in this function)
   13 |     scanf("%d %d %d %d", &A[i], &B[i], &C[i], &D[i]);
      |                                                ^
main.c:13:48: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:11: error: 'n' undeclared (first use in this function)
   30 |       for(n = 0;n <= j;n++) {
      |           ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
typedef long long ll;
ll MOD = 1e9+7;

using namespace std;

int main()
{
	int t;
	int ans=0;
	
	cin>>t;
	for(int i=0;i<t;i++)
	{
		ll a,b,c,d;
		cin>>a>>b>>c>>d;
		if(a<b || b>d)
		{
			cout<<"No"<<endl;
		}else if(b==d){
			if(a%b<=c)
				cout<<"Yes"<<endl;
			else
				cout<<"No"<<endl;
		}else if(b<=c){
			cout<<"Yes"<<endl;
		}else{
			// a<b && b<d && b>c
			ll cnt=0;
			ll n=a;
			bool f=true;
			while(cnt<300000)
			{
				n%=b;
				n+=b*(max(c-n,0)/b);
				if(n>c && n<b)
				{
					f=false;
					break;
				}
				n+=d;
				cnt++;
			}
			if(f)
				cout<<"Yes"<<endl;
			else
				cout<<"No"<<endl;
			//cout<<"Unknown"<<endl;
		}
	}
	//cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:42: error: no matching function for call to 'max(ll, int)'
   40 |                                 n+=b*(max(c-n,0)/b);
      |                                       ~~~^~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:40:42: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   40 |                                 n+=b*(max(c-n,0)/b);
      |                                       ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:40:42: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   40 |                                 n+=b*(max(c-n,0)/b);
      |                                       ~~~^~~~~~~
Language: Java

import java.awt.Point;
import java.util.ArrayDeque;
import java.util.Scanner;
import java.util.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Set;
import java.util.HashSet;
import java.util.Collection;


 
public class Main{
	
        static final Scanner sc=new Scanner(System.in);
        
        
        
        
        
        
        public static void main(String[]args){
                int T=sc.nextInt();
                for(int i=0;i<T;i++){
                        long A=sc.nextLong();
                        long B=sc.nextLong();
                        long C=sc.nextLong();
                        long D=sc.nextLong();
                        ArrayList<Long>kazoe=new ArrayList<>();
                        if(A<B){
                                System.out.println("No");
                        }else{
                                
                                        
                                
                                
                                for(;;){if(kazoe.size()>1500){
                                        System.out.println("Yes");                                }
                                        
                                        long X=A/B-1;
                                        if(X>0){
                                                A=A-B*X;

                                        }
                                        if(A<B){
                                                System.out.println("No");
                                                break;
                                        }else{
                                        if(A-B<=C){
                                                A=A-B+D;
                                                if(kazoe.contains(A)){
                                                        System.out.println("Yes");
                                                        break;
                                                }
                                                kazoe.add(A);
                                               
                                                
                                        }
                                        else{
                                                A=A-B;
                                                if(kazoe.contains(A)){
                                                        System.out.println("Yes");
                                                        break;
                                                }
                                                kazoe.add(A);

                                        }
                                       
                                }

                                }
                        }
                }
                
                


                
        }
        

Compiler output:
Main.java:79: error: reached end of file while parsing
        }
         ^
1 error
Language: C++

#include <iostream>
using namespace std;

bool log[1000000000000000000]

bool func()
{
  long a,b,c,d,ch;
  cin >> a >> b >> c >> d;
  if(a<b)return false;
  if(b>d)return false;
  if(b<=d&&b<=c)return true;
  ch=b;
  if(ch>c+1)ch = c+1;
  //bool *log=new bool[ch];
  for(int i=0;i<ch;i++)log[i]=false;
  while(true)
  {
    ch=a%b;
    if(ch==a)return false;//{delete[] log;return false;}
    a=ch;
    if(a>c)return false;//{delete[] log;return false;}
    if(log[a])return true;//{delete[] log;return true;}
    log[a]=true;
    a+=d;
  }
}

void ans(bool ans)
{
  if(ans)cout << "Yes\n";
  else cout << "No\n";
}

int main()
{
  int n;
  cin >> n;
  for(int i=0;i<n;i++)ans(func());
}


Compiler output:
a.cc:6:1: error: expected initializer before 'bool'
    6 | bool func()
      | ^~~~
a.cc: In function 'int main()':
a.cc:39:27: error: 'func' was not declared in this scope
   39 |   for(int i=0;i<n;i++)ans(func());
      |                           ^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
long long gcd(long long a,long long b)
{
	if (b==0) return a;
	return gcd(b,a%b);
}
int main()
{
	int cas=read();
	while (cas--)
	{
		long long a,b,c,d;
		scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
		if (a<b||d<b){puts("No"); continue;}
		if (c>=b){puts("Yes"); continue;}
		long long x=gcd((d-b)%b,b); a%=x;
		if (a-c+(b-a-1)/x*x>=1) puts("No");
		else puts("Yes");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'read' was not declared in this scope; did you mean 'fread'?
   14 |         int cas=read();
      |                 ^~~~
      |                 fread
Language: C++

int mondaiB(){
    // C < i < B になればアウト
    int T;
    cin >> T;
    ll A, B, C, D;
    REP(i, T){
        cin >> A >> B >> C >> D;
        if(A % B > C)printf("No\n");
        else if(B % D == 0){
            if(A % B <= C) printf("Yes\n");
            else printf("No\n");
        }else if(B > D) printf("No\n");
        else{
            if(D - B < B - C)printf("No\n");
            else if(D - B > B - C)printf("Yes\n");
            else{
                if(A % (D - B) == 0)printf("Yes\n");
                else printf("No\n");
            }
        }
    }
    
    return 0;
}
int main(){
    mondaiB();
}

Compiler output:
a.cc: In function 'int mondaiB()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> T;
      |     ^~~
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll A, B, C, D;
      |     ^~
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     REP(i, T){
      |         ^
a.cc:6:5: error: 'REP' was not declared in this scope
    6 |     REP(i, T){
      |     ^~~
Language: C++

#include <iostream>
#include <cstdio>
#include<list>
#include<iomanip>
#include<cmath>
#include <random>
#include<queue>
#include <functional>
#include<stdio.h>
#include<assert.h>
#include<stack>
#include<sstream>
#include <cstdlib>
#include<map>
#include<algorithm>
#include<iostream>
#include<set>
#include<utility>
#include<memory.h>
#include<string>
#include<vector>
#include <unordered_map>
#include<numeric>
using namespace std;
#define ios std::ios_base::sync_with_stdio(false);
#define ll  long long
#define pb push_back
#define fi(ss) freopen (ss,"r",stdin)
#define fo(ss) freopen (ss,"w",stdout)
#define sz(v)               ((int)((v).size()))
#define all(x)          (x).begin(),(x).end()
#define REP(i, v)       for(int i=0;i<sz(v);i++)
#define ld long double
#define lp(i,n) for(int i = 0 ; i < n ; ++i)
typedef pair<double,double> pii;
typedef pair<pii,int> tri;
using namespace std;

int main() {
	ios
	int t;
	cin >> t;
	ll a,b,c,d;
	while (t--) {
		cin >> a >> b >> c >> d;
		int ops = 0;
		set<ll> seen;
		bool bad = 0;
		int ops = 100000;
		while (a > 0) {
			seen.insert(a);
			if (a < b) break;
			ll r = max(0LL,(a - c)) / b;

			if (max(0LL,(a - c)) % b != 0) {
				++r;
			}
			if (r == 0) ++r;
			a -= 1ll*r*b;
			if (a < 0) break;
			a += 1ll*d;
			if (seen.find(a) != seen.end()) {
				bad = 1;
				break;
			}
			++ops;

		}
		if (!bad) cout << "No\n";
		else cout << "Yes\n";

	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:21: error: redeclaration of 'int ops'
   49 |                 int ops = 100000;
      |                     ^~~
a.cc:46:21: note: 'int ops' previously declared here
   46 |                 int ops = 0;
      |                     ^~~
Language: C++

24
1 2 3 4
1 2 4 3
1 3 2 4
1 3 4 2
1 4 2 3
1 4 3 2
2 1 3 4
2 1 4 3
2 3 1 4
2 3 4 1
2 4 1 3
2 4 3 1
3 1 2 4
3 1 4 2
3 2 1 4
3 2 4 1
3 4 1 2
3 4 2 1
4 1 2 3
4 1 3 2
4 2 1 3
4 2 3 1
4 3 1 2
4 3 2 1

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 24
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define VV vector
#define pb push_back
#define bitc  __builtin_popcountl
#define m_p make_pair
long long gcd(long long a,long long b)
{
    if(a%b==0)
        return b;
    else
        return gcd(b,a%b);
}
int main()
{
ios_base::sync_with_stdio(false);
int t;
cin>>t;
while(t)
{
    --t;
    ll a,b,c,d;
    cin>>a>>b>>c>>d;
    if(a<b||d<b)
    {
        cout<<"No";
    }
    else
    {
        if(c>=b-1)
        {
            cout<<"Yes";
        }
        else
        {
            a=a%b;
            if(a>c)
            {
                cout<<"No";
            }
            else
            if(gcd(d,b)==b)
            {
                cout<<"Yes";
            }
            else
            {
                ll r=(d-b)%b;
                a=a%b;
                ll x1=(c-a)/r,x2=(b-1-a)/r;
                ]
                if(x1==x2) 
                    cout<<"Yes";
                else
                    cout<<"No";
            }
        }
    }
    cout<<"\n";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:17: error: expected primary-expression before ']' token
   52 |                 ]
      |                 ^
a.cc:55:17: error: 'else' without a previous 'if'
   55 |                 else
      |                 ^~~~
Language: Java

import static org.hamcrest.CoreMatchers.either;

import java.util.*;

class Main {
	public static void main(String args[]) {

		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		in.nextLine();
		for (int i = 0; i < N; i++) {
			long rest=in.nextLong();
			long buy=in.nextLong();
			long min=in.nextLong();
			long add=in.nextLong();
			if(buy>rest||buy>add) {
				System.out.println("No");
				continue;
			} else if(buy<min && add>buy) {
				System.out.println("Yes");
				continue;
			}
			add=add%buy+buy;
			rest=rest%buy+buy;
			HashSet<Long> restLog=new HashSet<>();
			restLog.add(rest);
			while(buy<=rest) {
				rest-=buy;
				if(rest<=min) {
					rest+=add;
				}
				if(!restLog.add(rest)) {
					break;
				}
				System.err.println("rest"+rest);
			}
			if(buy>rest) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
		}
		in.close();
	}
}

Compiler output:
Main.java:1: error: package org.hamcrest does not exist
import static org.hamcrest.CoreMatchers.either;
                          ^
Main.java:1: error: static import only from classes and interfaces
import static org.hamcrest.CoreMatchers.either;
^
2 errors
Language: C++


#include <iostream>
using namespace std;

int main() {
	int t;
	cin >> t;
	int a[t];
	int b[t];
	int c[t];
	int d[t];
	int zaiko_list[10000];
	int zaiko_list_syuuki=0;
	int flag;
	string answer;
	for (int i =0; i!=t;i++){
		cin >> a[i];
		cin >> b[i];
		cin >> c[i];
		cin >> d[i];
	}
	int zaiko;
	for (int i =0; i!=t;i++){

		zaiko = a[i];
		for(;flag ==1;){
			zaiko -=b[i];
			if(zaiko<0){
				flag = 1;
				answer ="No"
			}
			if(zaiko<=c[i]){
				zaiko+=d[i];
			}
			for(int j = 0;zaiko_list_syuuki !=j;j++){
				if(zaiko==zaiko_list[j]){
					answer="Yes";
					flag = 1;
				}
			}
			zaiko_list[zaiko_list_syuuki]=zaiko;
			zaiko_list_syuuki +=1;
		}
		cout << answer << endl;
		zaiko_list_syuuki = 0;
		
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:45: error: expected ';' before '}' token
   30 |                                 answer ="No"
      |                                             ^
      |                                             ;
   31 |                         }
      |                         ~
Language: C++


#include <iostream>
using namespace std;

int main() {
	int t;
	cin >> t;
	int a[t];
	int b[t];
	int c[t];
	int d[t];
	int zaiko_list[10000];
	int zaiko_list_syuuki=0;
	int flag;
	int answer;
	for (int i =0; i!=t;i++){
		cin >> a[i];
		cin >> b[i];
		cin >> c[i];
		cin >> d[i];
	}
	int zaiko;
	for (int i =0; i!=t;i++){

		zaiko = a[i];
		for(;flag ==1;){
			zaiko -=b[i];
			if(zaiko<0){
				flag = 1;
				answer ="No"
			}
			if(zaiko<=c[i]){
				zaiko+=d[i];
			}
			for(int j = 0;zaiko_list_syuuki !=j;j++){
				if(zaiko==zaiko_list[j]){
					answer="Yes";
					flag = 1;
				}
			}
			zaiko_list[zaiko_list_syuuki]=zaiko;
			zaiko_list_syuuki +=1;
		}
		cout << answer << endl;
		zaiko_list_syuuki = 0;
		
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:41: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   30 |                                 answer ="No"
      |                                         ^~~~
      |                                         |
      |                                         const char*
a.cc:30:45: error: expected ';' before '}' token
   30 |                                 answer ="No"
      |                                             ^
      |                                             ;
   31 |                         }
      |                         ~                    
a.cc:37:48: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   37 |                                         answer="Yes";
      |                                                ^~~~~
      |                                                |
      |                                                const char*
Language: C++


#include <iostream>
using namespace std;

int main() {
	int t;
	cin >> t;
	int a[t];
	int b[t];
	int c[t];
	int d[t];
	int zaiko_list[10000];
	int zaiko_list_syuuki;
	int flag;
	int answer;
	for (int i =0; i!=t;i++){
		cin >> a[i];
		cin >> b[i];
		cin >> c[i];
		cin >> d[i];
	}
	int zaiko;
	for (int i =0; i!=t;i++){
		for(;flag ==1;){
			zaiko = a;
			zaiko -=b;
			if(zaiko<0){
				flag = 1;
				answer ="No"
			}
			if(zaiko<=c){
				zaiko+=d;
			}
			for(int i = 0;zaiko_list_syuuki !=i;i++){
				if(zaiko==zaiko_list[i]){
					answer="Yes";
					flag = 1;
				}
			}
		}
		cout << answer << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:33: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   25 |                         zaiko = a;
      |                                 ^
      |                                 |
      |                                 int*
a.cc:26:31: error: invalid operands of types 'int' and 'int*' to binary 'operator-'
   26 |                         zaiko -=b;
      |                         ~~~~~~^~~
a.cc:26:31: note:   in evaluation of 'operator-=(int, int*)'
a.cc:29:41: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   29 |                                 answer ="No"
      |                                         ^~~~
      |                                         |
      |                                         const char*
a.cc:29:45: error: expected ';' before '}' token
   29 |                                 answer ="No"
      |                                             ^
      |                                             ;
   30 |                         }
      |                         ~                    
a.cc:31:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   31 |                         if(zaiko<=c){
      |                            ~~~~~^~~
a.cc:32:38: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   32 |                                 zaiko+=d;
      |                                 ~~~~~^~~
      |                                      |
      |                                      int*
a.cc:36:48: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   36 |                                         answer="Yes";
      |                                                ^~~~~
      |                                                |
      |                                                const char*
Language: C++

#include<bits/stdc++.h>
#include<map>
#include<set>
using namespace std;
int main () {
  int N;
  cin >> N;
  string S;
  cin >> S;
  string ku = S.substr(0, N);
  string ma = S.substr(N, N);
  map<pair<string, string>, long long>pre;
  set<pair<string, string>>af;
  map<pair<string, string>, long long>aft;
  for (int i_ = 0; i_ < 1 << N; i ++) {
    int i = i_;
    string k = "";
    string u = "";
    for (int j = 0; j < N; j ++) {
      if (i % 2) k += ku[j];
      else u += ku[j];
    }
    string al = "";
    for (int j = N - 1; j >= 0; j --) al += u[j];
    pre[make_pair(k, al)] ++;
  }
  for (int i_ = 0; i_ < 1 << N; i ++) {
    int i = i_;
    string k = "";
    string u = "";
    for (int j = 0; j < N; j ++) {
      if (i % 2) k += ma[j];
      else u += ma[j];
    }
    string al = "";
    for (int j = N - 1; j >= 0; j --) al += u[j];
    aft[make_pair(k, al)] ++;
    af.insert(make_pair(k, al));
  }
  long long ans = 0;
  for (auto x : af) {
    ans += pre[x] * aft[x];
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: 'i' was not declared in this scope; did you mean 'i_'?
   15 |   for (int i_ = 0; i_ < 1 << N; i ++) {
      |                                 ^
      |                                 i_
a.cc:27:33: error: 'i' was not declared in this scope; did you mean 'i_'?
   27 |   for (int i_ = 0; i_ < 1 << N; i ++) {
      |                                 ^
      |                                 i_