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

#include <iostream>
using namespace std;
void solve(x,y){
  if((y-2*x)%2==0 and (y-2*x)/2>=0 and (y-2*x)/2<=x){
    cout<<"Yes";
  }else{
    cout<<"No";
  } 
}
int main(){
  int x;
  int y;
  cin>>x;
  cin>>y;
  solve(x,y);
}

Compiler output:
a.cc:3:6: error: variable or field 'solve' declared void
    3 | void solve(x,y){
      |      ^~~~~
a.cc:3:12: error: 'x' was not declared in this scope
    3 | void solve(x,y){
      |            ^
a.cc:3:14: error: 'y' was not declared in this scope
    3 | void solve(x,y){
      |              ^
a.cc: In function 'int main()':
a.cc:15:3: error: 'solve' was not declared in this scope
   15 |   solve(x,y);
      |   ^~~~~
Language: C++

include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main() {
	int x,y;
	cin>>x>>y;
	if((4*x-y)%6==0)cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>x>>y;
      |         ^~~
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |         if((4*x-y)%6==0)cout<<"Yes";
      |                         ^~~~
a.cc:9:14: error: 'cout' was not declared in this scope
    9 |         else cout<<"No";
      |              ^~~~
Language: C++

using namespace std;

int main()
{
    int x,y;
    cin>>x>>y;
    if(y % 2 == 0){
        int check = x*4;
        if (check <= y ){
            cout<<"Yes";
        }
        else{
            int chec = x*2;
            if (chec <= y){
                cout<<"Yes";
            }
            else{
                cout <<"No";
            }
        }
    }
    else{
        cout<<"No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>x>>y;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout<<"Yes";
      |             ^~~~
a.cc:10:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout<<"Yes";
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout <<"No";
      |                 ^~~~
a.cc:18:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<"No";
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
 int X;
 cin >> X;
  int Y;
  cin >>Y;
 	int Z = 4*X-Y　;
	
  if (Y%2 ==0 && Z >= 0){cout <<"Yes" <<endl;}
  else cout << "No" <<endl;

}



Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         int Z = 4*X-Y　;
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: 'Y\U00003000' was not declared in this scope
    8 |         int Z = 4*X-Y　;
      |                     ^~~
Language: C++

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

int main(){
    double X,Y,z;
    z =2;

    cin >> X >> Y;

    if (Y%z == 0 && (Y <= 4*X || Y <= 2*X) && X != Y){
            cout << "Yes" << endl;
        }
    else {
            cout << "No" << endl;
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |     if (Y%z == 0 && (Y <= 4*X || Y <= 2*X) && X != Y){
      |         ~^~
      |         | |
      |         | double
      |         double
Language: C

#include <stdio.h>
 
int main(void) {
 
 	long X, Y;
 	int wa;
 	int num;
    int i;
 
 	scanf("%ld%ld", &X, &Y);
    printf((4*x+Y)/2 == i ? "YES" : "NO");
 
 	/*for(i = 0; i <= X; i++) {
 		num = i*2 + (X - i)*4;
	 	if(Y == num){
	 		wa++;
	 	}*/
 	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:15: error: 'x' undeclared (first use in this function)
   11 |     printf((4*x+Y)/2 == i ? "YES" : "NO");
      |               ^
main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:20:9: error: expected identifier or '(' before 'return'
   20 |         return 0;
      |         ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>
int main(){
	int x,y,temp=0,flag = 0,flag1=0;
	scanf("%d %d\n", &x, &y);
	temp = y;

	while(y !=1){
		if(y%2==0){
			y=y/2;
		}
		else{
			flag =1;
			break;
		}
	}

	while(temp !=1){
		if(temp%4==0){
			temp = temp/4;
		}
		else{
			flag2 = 1;
			break;
		}
	}

	if(flag==1 || flag1==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:22:25: error: 'flag2' undeclared (first use in this function); did you mean 'flag1'?
   22 |                         flag2 = 1;
      |                         ^~~~~
      |                         flag1
main.c:22:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;
void solve(x,y){
  if((y-2*x)%2==0 and (y-2*x)/2>=0 and (y-2*x)/2<=x){
    cout<<"Yes";
  }
  cout<<"No";
  
  
}
int main(){
  int x;
  int y;
  cin>>x;
  cin>>y;
  solve(x,y);
}

Compiler output:
a.cc:3:6: error: variable or field 'solve' declared void
    3 | void solve(x,y){
      |      ^~~~~
a.cc:3:12: error: 'x' was not declared in this scope
    3 | void solve(x,y){
      |            ^
a.cc:3:14: error: 'y' was not declared in this scope
    3 | void solve(x,y){
      |              ^
a.cc: In function 'int main()':
a.cc:16:3: error: 'solve' was not declared in this scope
   16 |   solve(x,y);
      |   ^~~~~
Language: C

#include <stdio.h>
int main(){
	int x,y,temp=0,flag = 0,flag1=0;
	scanf("%d %d\n", &x, &y);
	temp = y;

	while(y !=1){
		if(y%2==0){
			y=y/2
		}
		else{
			flag =1;
			break;
		}
	}

	while(temp !=1){
		if(temp%4==0){
			temp = temp/4;
		}
		else{
			flag1 = 1;
			break;
		}
	}

	if(flag==1 || flag1==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:9:30: error: expected ';' before '}' token
    9 |                         y=y/2
      |                              ^
      |                              ;
   10 |                 }
      |                 ~
Language: C

#include <stdio.h>
int main(){
	int x,y,temp=0,flag = 0,flag1=0;
	scanf("%d %d\n", &x, &y);
	temp = y;

	while(y !=1){
		if(y%2==0){
			y=y/2;
		}
		else{
			flag =1;
			break;
		}
	}

	while(temp !=1){
		if(temp%4==0){
			temp = temp/4;
		}
		else{
			flag2 = 1;
			break;
		}
	}

	if(flag==1 || flag2==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:22:25: error: 'flag2' undeclared (first use in this function); did you mean 'flag1'?
   22 |                         flag2 = 1;
      |                         ^~~~~
      |                         flag1
main.c:22:25: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String []s=br.readLine().split(" ");
		
		int X=Integer.parseInt(s[0]);
		int Y=Integer.parseInt(s[1]);
		
		if(Y<2*X || Y>4*X || (Y&1)==1)
			ans="No";
		
		out.println(ans);
		
	}
	
	
}




Compiler output:
Main.java:18: error: cannot find symbol
			ans="No";
			^
  symbol:   variable ans
  location: class Main
Main.java:20: error: cannot find symbol
		out.println(ans);
		            ^
  symbol:   variable ans
  location: class Main
2 errors
Language: C++

//v 1.0.0
#include <bits/stdc++.h>
using namespace std;
#define _USE_MATH_DEFINES
#include <math.h>
 
int main() {
  int X, Y, kame, turu;
  cin >> X >> Y;
 
  if (X == 1){
    if (Y == 2 || Y == 4){
      cout << "Yes" <<endl;
    }
    else{
      cout << "No" << endl;
    }
  }
 
  else{
  kame = Y / 4;
  turu = kame / 2;
 
  if (turu == 1) {
    if (kame + turu == X) {
      cout << "Yes" << endl;
    }
    else{
      if (kame == X) {
        cout << "Yes" << endl;
      }
      else {
      turu = Y / 2;
      kame = turu / 4;
 
      if (kame + turu == X) {
        cout << "Yes" << endl;
      }
      else {
            cout << "No" << endl;
          }
        }
       }
     }
  else {
 
      if (kame == X) {
        cout << "Yes" << endl;
      }
      else {
        turu = Y / 4;
        if (turu == X) {
          cout << "Yes" << endl;
        }
        else {
          kame = turu / 2:
          if (kame + turu == X){
            cout << "Yes" << endl;
          }
          else {
        cout << "No" << endl;
      }
      }
    }
  }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:56:26: error: expected ';' before ':' token
   56 |           kame = turu / 2:
      |                          ^
      |                          ;
a.cc:60:11: error: 'else' without a previous 'if'
   60 |           else {
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x,y;
  
  cin>>x>>y;
  
  for(int i=1;i<=100;i++)
  {
    if(y-2*i<0)break;
    if( x==i + (y-2*i)/4)
    { flag=1;break;}
  }
  
  for(int i=1;i<=30;i++)
  { if(y-4*i<0)break;
    if(x==i+(y-4*i)/2)
    {flag=1;break;}
  }
  
  cout<<(flag?"Yes":"No");
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'flag' was not declared in this scope
   13 |     { flag=1;break;}
      |       ^~~~
a.cc:19:6: error: 'flag' was not declared in this scope
   19 |     {flag=1;break;}
      |      ^~~~
a.cc:22:10: error: 'flag' was not declared in this scope
   22 |   cout<<(flag?"Yes":"No");
      |          ^~~~
Language: C++

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

int main() {
  int X, Y;
  cin >> X >> Y;
  bool q = true;
  
  for (int i = 0; i <= X; i++) {
    for (int j = 0; j <= X - i; j++) {
      if (i * 2 + j * 4 == Y && i + j = X) {
        q = false;
      }
    }
  }
  
  if (!q) {
    cout << "Yes" << endl;
  } else if (q) {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: lvalue required as left operand of assignment
   11 |       if (i * 2 + j * 4 == Y && i + j = X) {
      |           ~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>
int main(){
	int x,y,flag = 0;
	scanf("%d %d\n", &x, &y);

	while(1){
		if(y%2==0){
			y = y/2;
			else{
				flag = 1;
				break;
			}
		}
	}

	if(flag==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected '}' before 'else'
    9 |                         else{
      |                         ^~~~
main.c: At top level:
main.c:16:9: error: expected identifier or '(' before 'if'
   16 |         if(flag==1){
      |         ^~
main.c:19:9: error: expected identifier or '(' before 'else'
   19 |         else{
      |         ^~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C++

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

int main() {
 int x,y;
    cin >> x >> y;
    
    bool result = false;
  
    rep(i,x + 1) {
     int j = x - i;
      int total = 2 * i + 4 * j;
         if(total == y) {
         result = true;
         }
     }
    }
     if(result) {
     cout << "Yes";
     }
    else {
    cout << "No";
    }
}


Compiler output:
a.cc:20:6: error: expected unqualified-id before 'if'
   20 |      if(result) {
      |      ^~
a.cc:23:5: error: expected unqualified-id before 'else'
   23 |     else {
      |     ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
	int x,y;
  	cin>>x>>y;
  	if(y%2==1) cout<<"No";
  	if else(y>=2*x&&y<=4*x) 	cout<<"Yes";
  	else				cout<<"No";
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected '(' before 'else'
    8 |         if else(y>=2*x&&y<=4*x)         cout<<"Yes";
      |            ^~~~
      |            (
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else                            cout<<"No";
      |         ^~~~
Language: C++

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

int main() {
 int x,y;
    cin >> x >> y;
    
    bool result = false;
  
    rep(i,x + 1) {
     int j = x - i
      int total = 2 * i + 4 * j;
         if(total == y) {
         result = true;
         }
     }
    }
     if(result) {
     cout << "Yes";
     }
    else {
    cout << "No";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected ',' or ';' before 'int'
   14 |       int total = 2 * i + 4 * j;
      |       ^~~
a.cc:15:13: error: 'total' was not declared in this scope
   15 |          if(total == y) {
      |             ^~~~~
a.cc: At global scope:
a.cc:20:6: error: expected unqualified-id before 'if'
   20 |      if(result) {
      |      ^~
a.cc:23:5: error: expected unqualified-id before 'else'
   23 |     else {
      |     ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast()    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define mod   1000000007
int main()
{
	fast()
	int x,y;
    cin>>x>>y;
    int Y=(y-2*x);
   `if(y&1)
    cout<<"No";
    else if(Y%2!=0)
    cout<<"No";
    else if((Y/2)<x)
    cout<<"Yes";
    else
    cout<<"No";
}

Compiler output:
a.cc:12:4: error: stray '`' in program
   12 |    `if(y&1)
      |    ^
Language: C++

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

int main(void){
  int x,y;
  
  cin >> x >> y;
 
  if( (y % 2) != 0){
    cout << "NO";
    return 0;
  }
  
  for(int i = 0; i < x;i++){
    int expection = 0;
    expection += 4 * (x- i);
    expection += 2 * i;
    
    if(expection == y){
     cout << "Yes";
     return 0;
    }
  }
  

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

import java.io.*;
import java.util.*;
import java.lang.*;
import java.math.*;

public class Main
{
	public static void main(String args[]) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);

		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(Y % 2 == 0)
		{
			int a = 2*X - (Y/2);
 
			if(Math.ceil(a) == Math.floor(x) && a >= 0)
				out.println("Yes");
			else
				out.println("No");
		}
 
		else
		{
			out.println("No");
		}
		
		out.flush();
	}
}

Compiler output:
Main.java:20: error: cannot find symbol
			if(Math.ceil(a) == Math.floor(x) && a >= 0)
			                              ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

using namespace std;
 
int main() {
  int x,y;
  cin >> x >> y;
 
  bool a = true;
  bool b = y == 2*x; // xが10未満のときtrue そうでないときfalseになる
  bool c = false;
 
  if (a && b) {
    cout << "Yes" << endl;
  }
  if (c) {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> x >> y;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "No" << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:21: error: 'endl' was not declared in this scope
   15 |     cout << "No" << endl;
      |                     ^~~~
a.cc:15:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
	float x,y;
	cin>>x>>y;
	if(y%2!=0){
		cout<<"No";
		return 0;
	}
	if((y/4)>x){
		cout<<"No";
		return 0;
	}
	if(x==1 && y==2){
		cout<<"Yes";
		return 0;
	}
	if(x==1 && y==4){
		cout<<"Yes";
		return 0;
	}  
	while()
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    7 |         if(y%2!=0){
      |            ~^~
      |            | |
      |            | int
      |            float
a.cc:23:15: error: expected primary-expression before ')' token
   23 |         while()
      |               ^
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
int main(){
    int x,y,z;
    scanf("%d %d",&x,&y);
    if(y%2 != 0){
        z = 1;
    }else if(2*x <= y && 4*x >= y){
        z = 0;
    }else {
        z = 1;
    }

    if(z == 0){
        prntf("Yes");
    }else if(z == 1) {
        printf("No");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |         prntf("Yes");
      |         ^~~~~
      |         printf
Language: C++

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

int main() {
  int x, y;
  cin >> x >> y;
  
  bool ans = false;

  for(int i=0; i<x; i++){
    for(int j=0; j<x j++){
      if(i*2 + j*4 == y){
        ans = true;
      }
    }
  }

  if(ans){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before 'j'
   11 |     for(int j=0; j<x j++){
      |                     ^~
      |                     ;
Language: C

#include<stdio.h>


int main(void){

	int x, y;

	scanf("%d %d", %x, &y);

	if(y % 2 == 0 && y <= 4*x)
		printf("Yes");

	else
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected expression before '%' token
    8 |         scanf("%d %d", %x, &y);
      |                        ^
Language: Java

package June;

import java.util.*; 
public class Crane_and_Turtle{
public static void main(String[] args){
  Scanner input=new Scanner(System.in);
  int a=0,b=0;
  a=input.nextInt()*2;
  b=input.nextInt();
  boolean ans=true;
  while(b>0){
  	if(b>=2){
      b-=2;
      a--;
    }
    if(a>0){
      ans=false;
    }
  }
  System.out.print(ans);
}
}


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

include<iostream>
using namespace std;
int main()
{
    int x,y,k;
    cin>>x;
    cin>>y;
    k=x+y;
    if(k/2==0)
    {
        cout<<"NO";
    }
    else
        cout<<"Yes";


    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>x;
      |     ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"NO";
      |         ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"Yes";
      |         ^~~~
Language: C

#include <stdio.h>
int main(){
	int x,y, ans=0,ans2=0;
	scanf("%d %d\n", &x, &y);
	y=temp;
	while(y !=0){
		y = y-2;
		ans++;
	}
	
	while(temp !=0){
		temp = temp-4;
		ans2++;
	}
	
	if(ans ==y || ans2==y){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
	
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'temp' undeclared (first use in this function)
    5 |         y=temp;
      |           ^~~~
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int X,Y,answer;
  cin >> X >> Y;
  for (int = 0; i < X; i++) {
    Y /= 4;
    if (Y == 1) {
      break;
      cout << "Yes" << endl;
    }
    else if(Y == 2 || Y == 4){
      break;
      cout << "Yes" << endl;
    }
  }
  cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected unqualified-id before '=' token
    7 |   for (int = 0; i < X; i++) {
      |            ^
a.cc:7:11: error: expected ';' before '=' token
    7 |   for (int = 0; i < X; i++) {
      |           ^~
      |           ;
a.cc:7:12: error: expected primary-expression before '=' token
    7 |   for (int = 0; i < X; i++) {
      |            ^
a.cc:7:17: error: 'i' was not declared in this scope
    7 |   for (int = 0; i < X; i++) {
      |                 ^
a.cc:7:22: error: expected ')' before ';' token
    7 |   for (int = 0; i < X; i++) {
      |       ~              ^
      |                      )
a.cc:7:24: error: 'i' was not declared in this scope
    7 |   for (int = 0; i < X; i++) {
      |                        ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
int x,y,m;
  cin>>x>>y;
  m=(x*4);
  if(m<y)
    cout<<"No";
  else if(y%2==0);
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int x,y,i,j,k;
   cin>>x>>y;
   if(y%2!=0)
   {
       cout<<"No"<<ee;
       re 0;
   }
   if(y/x>=2&&y<=4*x)
   {
       cout<<"Yes"<<ee;
       re 0;
   }
   else
   {
       cout<<"No"<<ee;
       re 0;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'ee' was not declared in this scope
    9 |        cout<<"No"<<ee;
      |                    ^~
a.cc:10:8: error: 're' was not declared in this scope
   10 |        re 0;
      |        ^~
a.cc:14:21: error: 'ee' was not declared in this scope
   14 |        cout<<"Yes"<<ee;
      |                     ^~
a.cc:15:8: error: 're' was not declared in this scope
   15 |        re 0;
      |        ^~
a.cc:19:20: error: 'ee' was not declared in this scope
   19 |        cout<<"No"<<ee;
      |                    ^~
a.cc:20:8: error: 're' was not declared in this scope
   20 |        re 0;
      |        ^~
Language: C

include<stdio.h>
void main()
{
	int n,c,i,j,s=0;
	scanf("%d",&n);
	scanf("%d",&c);
  	i=0;
  	j=c;
	while(i<=c && j>=0)
	{
		s = 2*i+4*j;
  		if(s==c){
      
          	printf("Yes");
  	       	break;
      	}
  		i++;
  		j--;
	}
if(i>c)
  printf("No");
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
void main()
{
int n,c,i,j,s=0;
scanf("%d",&n);
scanf("%d",&c);
  i=0;
  j=c;
while(i<=c && j>=0)
{
	s = 2*i+4*j;
  	if(s==c)
    {
      printf("Yes");
  	break;
      
    }
  i++;
  j--;
}
if(i>c)
  printf("No");
}
}

Compiler output:
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int x,y;
	cin>>x>>y;

	if(4*x>=y&&y>=2*x){
		if(y%2==0){
			cout<<"Yes";
			
		}
		else cout<<"No"
	}
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: expected ';' before '}' token
   12 |                 else cout<<"No"
      |                                ^
      |                                ;
   13 |         }
      |         ~
Language: Java

import java.util.Scanner;

public class CranesOrTurtle {
	
	public static void Cranes(int x,int y)
	{
		
		for(int i=0;i<x;i++)
		{
			if(y % 4 == 0 )
			{
				
				y=y-4;
				i++;
	
			}
			else if(y % 2 == 0) {
				y=y-2;
			}
		}
		
		if(y==0)
		{
			System.out.print("Yes");
		}
		else {
			System.out.println("No");
		}
	}

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int x= s.nextInt();
		int y=s.nextInt();
		Cranes(x,y);
				
		

	}

}


Compiler output:
Main.java:3: error: class CranesOrTurtle is public, should be declared in a file named CranesOrTurtle.java
public class CranesOrTurtle {
       ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		double numX = sc.nextInt();
		double numY = sc.nextInt();
		
        double numC = (2 * numX) - (numY / 2);
	    double numT = numX - numC;
		
		if ((numX == numC + numT) && (numY == 2 * numC + 4 * numT)) {
		    if ((numC <= 1) || (numT <= 0)) {
		        System.out.println("No");
		    } else ((numC >= 0) && (numT >= 0)) {
		        System.out.println("Yes");
		    } else {
		        System.out.println("No");
		    }
		    
		} else {
		    System.out.println("No");
		}
		
	}
}

Compiler output:
Main.java:15: error: not a statement
		    } else ((numC >= 0) && (numT >= 0)) {
		           ^
Main.java:15: error: ';' expected
		    } else ((numC >= 0) && (numT >= 0)) {
		                                       ^
Main.java:17: error: 'else' without 'if'
		    } else {
		      ^
3 errors
Language: C

#include<stdio.h>
#include<conio.h>
void main()
{
int n,c,i,j,s=0;
scanf("%d",&n);
scanf("%d",&c);
  i=0;
  j=c;
while(i<=c && j>=0)
{
	s = 2*i+4*j;
  	if(s==c)
    {
      printf("Yes");
  	break;
      
    }
  i++;
  j--;
}
if(i>c)
  printf("No");
}

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X, Y;
  cin >> X >> Y;
  
  if (2*X > Y || 4*X < Y || Y % 2 = 1){
    cout << "No" << endl;
  }
  
  else {
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |   if (2*X > Y || 4*X < Y || Y % 2 = 1){
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,X,Y;
  
  scanf("%d",&X);
  scanf("%d",&Y);
  
  
 for(a=1,a <= 100,a++){
  b = X-a;
   if(Y == 4*a + 2*b){
     printf("Yes");
   }else{
     printf("No");
   }  
 }
   
   return 0;
 }
  


Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before ')' token
    9 |  for(a=1,a <= 100,a++){
      |                      ^
      |                      ;
main.c:9:22: error: expected expression before ')' token
Language: Java

import java.util.Scanner;

public class B170 {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        int Y = sc.nextInt();

        if(Y%2==0 && Y>=2*X && Y<=4*X) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
	}

}


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

include<stdio.h>
void main()
{
int n,c,i,j,s=0;
scanf("%d",&n);
scanf("%d",&c);
  i=0;
  j=c;
while(i<=c && j>=0)
{
	s = 2*i+4*j;
  	if(s==c){
      printf("Yes");
  	break;
      
    }
  i++;
  j--;
}
if(i>c)
  printf("No");
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

int main(){
  int x, y;
  std::cin >> x >> y;
  for(int i=0;i<x;i++){
    if((x/i)%y=0){
      std::cout << "Yes";
      exit(0);
    }
  }
  std::cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |     if((x/i)%y=0){
      |        ~~~~~^~
Language: Java

import java.util.*;
public class main{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    int i=sc.nextInt();
    int j=sc.nextInt();
    int flag=0;
    for(int k=1;k<=j;k++)
    {
      if(((k*2+(i-k)*4)==j)||((k*4+(i-k)*2)==j))
      {
        System.out.println("Yes");
        flag=1;
      }  
    }
    if(flag==0)
    {
      System.out.println("No");
    }
  }
}  


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

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

int main(){
  int x, y;
  std::cin >> x, y;
  for(int i=0;i<x;i++){
    if((x/i)%y=0){
      std::cout << "Yes";
      exit(0);
    }
  }
  std::cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |     if((x/i)%y=0){
      |        ~~~~~^~
Language: Java

import java.util.*;
public class Main
{
  public static void main(String args[])throws Exception
  {
    try {
    Scanner sc=new Scanner(System.in);
    int x,y;
      x=sc.nextInt();
      y=sc.nextInt();
      if(y%2!=0)
        System.out.println("No");
      else
      {
        t=y/2-x;
        c=x-t;
        if(t>=0 && c>=0)
          System.out.println("Yes");
        else
          System.out.println("No");
      }
    } catch(Exception e) { return;
                         } finally {
    }
  }
}
    


Compiler output:
Main.java:15: error: cannot find symbol
        t=y/2-x;
        ^
  symbol:   variable t
  location: class Main
Main.java:16: error: cannot find symbol
        c=x-t;
        ^
  symbol:   variable c
  location: class Main
Main.java:16: error: cannot find symbol
        c=x-t;
            ^
  symbol:   variable t
  location: class Main
Main.java:17: error: cannot find symbol
        if(t>=0 && c>=0)
           ^
  symbol:   variable t
  location: class Main
Main.java:17: error: cannot find symbol
        if(t>=0 && c>=0)
                   ^
  symbol:   variable c
  location: class Main
5 errors
Language: C++

#include <cstdio>
#include<iostream>

using namespace std;
 
int main(void){
  
  int X,Y;
  
  scanf("%i%i", &X, &Y);
  
  if((Y-2X)>=0){
    if(Y%2==0){
      cout <<"Yes" <<endl;
    }else{
      cout <<"No" <<endl;
    }}else{
    cout <<"No" <<endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: unable to find numeric literal operator 'operator""X'
   12 |   if((Y-2X)>=0){
      |         ^~
Language: C

#include<stdio.h>
int main(){
  int a,b,X,Y;
  
  scanf("%d",&X);
  scanf("%d",&Y);
  
  
 for(a=1,a <= 100,a++){
  b = X-a;
   if(Y == 4*a + 2*b){
     "Yes";
   }else{
     "No";
   }  
 }
   
   return 0;
 }
  


Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before ')' token
    9 |  for(a=1,a <= 100,a++){
      |                      ^
      |                      ;
main.c:9:22: error: expected expression before ')' token
Language: C++

#include<iostream>
using namespace std;
int main()
{
int x,y,c=0,c1;
  cin>>x>>y;
 c=y-2*x;
  c=c/2;
  c1=x-c;
  if(c>=0&&c1>=0)
  {
   if(c+c1==x&&(4*c+2*c1==y)
      cout<<"Yes";
     else
      cout<<"No";
  }
      
    
  
   
   
return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before 'cout'
   12 |    if(c+c1==x&&(4*c+2*c1==y)
      |                             ^
      |                             ;
   13 |       cout<<"Yes";
      |       ~~~~                   
a.cc:14:6: error: expected primary-expression before 'else'
   14 |      else
      |      ^~~~
a.cc:13:19: error: expected ')' before 'else'
   13 |       cout<<"Yes";
      |                   ^
      |                   )
   14 |      else
      |      ~~~~          
a.cc:12:6: note: to match this '('
   12 |    if(c+c1==x&&(4*c+2*c1==y)
      |      ^
Language: Java

import java.util.*;
public class main{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    int i=sc.nextInt();
    int j=sc.nextInt();
    int flag=0;
    for(int k=1;k<=j;k++)
    {
      if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8)
      {
        System.out.println("Yes");
        flag=1;
      }  
    }
    if(flag==0)
    {
      System.out.println("No");
    }
  }
}  

Compiler output:
Main.java:11: error: illegal start of expression
      if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8)
                          ^
Main.java:11: error: ';' expected
      if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8)
                                            ^
2 errors
Language: C

#include<stdio.h>
int main(){
  int a,b,X,Y;
  
  scanf("%d",&X);
  scanf("%d",&Y);
  
  
 for(a=1,a <= 100,a++){
  b = X-a;
   if(Y == 4*a + 2*b){
     Yes;
   }else{
     No;
   }  
 }
   
   return 0;
 }
  


Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before ')' token
    9 |  for(a=1,a <= 100,a++){
      |                      ^
      |                      ;
main.c:9:22: error: expected expression before ')' token
main.c:12:6: error: 'Yes' undeclared (first use in this function)
   12 |      Yes;
      |      ^~~
main.c:12:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:6: error: 'No' undeclared (first use in this function)
   14 |      No;
      |      ^~
Language: Java

import java.util.Scanner;
import java.lang.*;

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

      Scanner sc1 = new Scanner(System.in); 
      Scanner sc2 = new Scanner(System.in);	
     

      
      if((sc2 % 4) % 2 ==0){
        System.out.println("Yes");
      }else{
        System.out.println("No");        
      }
      
      
    }      
}


Compiler output:
Main.java:13: error: bad operand types for binary operator '%'
      if((sc2 % 4) % 2 ==0){
              ^
  first type:  Scanner
  second type: int
1 error
Language: C++

#include <iostream>

using namespace std;
int main(){

  	int X,Y;
	cin >> X >> Y;
  if((Y%2!=0)||(2*X>&&Y>4*X)){
  	cout << "No";
  }else{
  	cout << "Yes";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((Y%2!=0)||(2*X>&&Y>4*X)){
      |                 ~~~^~~~
a.cc:8:23: error: label 'Y' used but not defined
    8 |   if((Y%2!=0)||(2*X>&&Y>4*X)){
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std
typedef long long ll

int main() {
  int x,y;
  cin >> x >> y;
  
  if ( (y-2*x)<0 || (4*x-y)<0 ) {
    cout << "No";
  }　else if ( (y-2*x)%2==0 && (4*x-y)%2==0 ) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  
  return 0;
}


Compiler output:
a.cc:11:4: error: extended character 　 is not valid in an identifier
   11 |   }　else if ( (y-2*x)%2==0 && (4*x-y)%2==0 ) {
      |    ^
a.cc:2:20: error: expected ';' before 'typedef'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | typedef long long ll
      | ~~~~~~~             
a.cc:5:1: error: expected initializer before 'int'
    5 | int main() {
      | ^~~
Language: C++

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

int main() {

 int X,Y;
  
 cin >> X >> Y;
  
  if(4X > Y > 2X && Y-2X % 2 ==0 && 4X- Y % 2==0){
    cout << "Yes" <<endl;
  }
  else{
   cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: unable to find numeric literal operator 'operator""X'
   10 |   if(4X > Y > 2X && Y-2X % 2 ==0 && 4X- Y % 2==0){
      |      ^~
a.cc:10:15: error: unable to find numeric literal operator 'operator""X'
   10 |   if(4X > Y > 2X && Y-2X % 2 ==0 && 4X- Y % 2==0){
      |               ^~
a.cc:10:23: error: unable to find numeric literal operator 'operator""X'
   10 |   if(4X > Y > 2X && Y-2X % 2 ==0 && 4X- Y % 2==0){
      |                       ^~
a.cc:10:37: error: unable to find numeric literal operator 'operator""X'
   10 |   if(4X > Y > 2X && Y-2X % 2 ==0 && 4X- Y % 2==0){
      |                                     ^~
Language: C

#include<stdio.h>
int main(){
  int a,b,X,Y;
  
  scanf("%d",&X);
  scanf("%d",&Y);
  
  
 for(a=1,a<=100,a++){
  b = X-a;
   if(Y == 4*a + 2*b){
     Yes;
   }else{
     No;
   }  
   
   return 0;
 }
  


Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ')' token
    9 |  for(a=1,a<=100,a++){
      |                    ^
      |                    ;
main.c:9:20: error: expected expression before ')' token
main.c:12:6: error: 'Yes' undeclared (first use in this function)
   12 |      Yes;
      |      ^~~
main.c:12:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:6: error: 'No' undeclared (first use in this function)
   14 |      No;
      |      ^~
main.c:18:2: error: expected declaration or statement at end of input
   18 |  }
      |  ^
Language: C++

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

int main() {
  int x,y;
  cin >> x >> y;
  
  if ( (y-2*x)<0 || (4*x-y)<0 ) {
    cout << "No";
  }　else if ( (y-2*x)%2==0 && (4*x-y)%2==0 ) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  
  return 0;
}


Compiler output:
a.cc:11:4: error: extended character 　 is not valid in an identifier
   11 |   }　else if ( (y-2*x)%2==0 && (4*x-y)%2==0 ) {
      |    ^
a.cc: In function 'int main()':
a.cc:11:4: error: '\U00003000else' was not declared in this scope
   11 |   }　else if ( (y-2*x)%2==0 && (4*x-y)%2==0 ) {
      |    ^~~~~~
a.cc:13:5: error: 'else' without a previous 'if'
   13 |   } else {
      |     ^~~~
Language: Java

import java.util.Scanner;
import java.lang.*;

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

      Scanner sc1 = new Scanner(System.in); 
      Scanner sc2 = new Scanner(System.in);	
     
      int legs = sc2 % 4;
      
      if(legs % 2 ==0){
        System.out.println("Yes");
      }else{
        System.out.println("No");        
      }
      
      
    }      
}


Compiler output:
Main.java:11: error: bad operand types for binary operator '%'
      int legs = sc2 % 4;
                     ^
  first type:  Scanner
  second type: int
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int X = Integer.parseInt(str[0]);
		int Y = Integer.parseInt(str[1]);
		if((Y-2X)%2 == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");

	}
}

Compiler output:
Main.java:13: error: ')' expected
		if((Y-2X)%2 == 0) {
		       ^
Main.java:13: error: ';' expected
		if((Y-2X)%2 == 0) {
		        ^
Main.java:15: error: 'else' without 'if'
		}else
		 ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,m,i,j,z=0,y=0,x=0,ma=0,mi=0x3f3f3f3f;
	char s[200005];
	int a,b,c,d,flag=0;
	while(~scanf("%d%d",&a,&b))
	{
		if(b%2!=0)
	printf("No\n");
	else
	{
		x=b/2;
		if(y%4==0)
		y=b/4;
		else
		y=b/4+1
		if(a>=y&&a<=x)
		printf("Yes\n");
		else
		printf("No\n");
	}
	}
	
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected ';' before 'if'
   18 |                 y=b/4+1
      |                        ^
      |                        ;
   19 |                 if(a>=y&&a<=x)
      |                 ~~      
a.cc:21:17: error: 'else' without a previous 'if'
   21 |                 else
      |                 ^~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,X,Y;
  
  scanf("%d",&X);
  scanf("%d",&Y);
  
  
 for(a=1,a<=100,a++){
  b = X-a;
   if(Y == 4a + 2b){
     Yes;
   }else{ No }  
   
   return 0;
 }
  

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ')' token
    9 |  for(a=1,a<=100,a++){
      |                    ^
      |                    ;
main.c:9:20: error: expected expression before ')' token
main.c:11:12: error: invalid suffix "a" on integer constant
   11 |    if(Y == 4a + 2b){
      |            ^~
main.c:11:17: error: invalid suffix "b" on integer constant
   11 |    if(Y == 4a + 2b){
      |                 ^~
main.c:12:6: error: 'Yes' undeclared (first use in this function)
   12 |      Yes;
      |      ^~~
main.c:12:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:11: error: 'No' undeclared (first use in this function)
   13 |    }else{ No }
      |           ^~
main.c:13:13: error: expected ';' before '}' token
   13 |    }else{ No }
      |             ^~
      |             ;
main.c:16:2: error: expected declaration or statement at end of input
   16 |  }
      |  ^
Language: Java

import java.util.Scanner;
import java.lang.*;

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

      Scanner sc1 = new Scanner(System.in);
      Scanner sc2 = new Scanner(System.in);	
      
      int sc1; //頭の数
      int sc2;//足の数
      
      int legs = sc2 % 4;
      
      if(legs % 2 ==0){
        System.out.println("Yes");
      }else{
        System.out.println("No");        
      }
      
      
    }      
}


Compiler output:
Main.java:11: error: variable sc1 is already defined in method main(String[])
      int sc1; //???
          ^
Main.java:12: error: variable sc2 is already defined in method main(String[])
      int sc2;//???
          ^
2 errors
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int X, Y;
	cin >> X >> Y;

	bool is_zero = (fabs(Y / 2 - X) < DBL_EPSILON);

	if (Y / 2 - X < X && Y % 2 == 0 && is_zero == 1)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'fabs' was not declared in this scope; did you mean 'labs'?
    9 |         bool is_zero = (fabs(Y / 2 - X) < DBL_EPSILON);
      |                         ^~~~
      |                         labs
a.cc:9:43: error: 'DBL_EPSILON' was not declared in this scope
    9 |         bool is_zero = (fabs(Y / 2 - X) < DBL_EPSILON);
      |                                           ^~~~~~~~~~~
Language: Java

import java.util.Scanner;
import java.lang.*;

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

      Scanner sc1 = new Scanner(System.in);
      Scanner sc2 = new Scanner(System.in);	
      
      int sc1; //頭の数
      int sc2;//足の数
      
      int legs = sc2 % 4;
      
      if(legs % 2 ==0){
        System.out.println("Yes");
      }else{
        System.out.println("No");        
        ]
      
      
    }      
}


Compiler output:
Main.java:20: error: illegal start of expression
        ]
        ^
Main.java:24: error: reached end of file while parsing
}
 ^
2 errors
Language: C

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

int main() {
  int a,b,j=0,c;
  cin >> a >> b ;
  for(int i=0 ; i <= a ; i++){
    c = i * 2 +(a - i) * 4 ;
    if(c == b) j = 1 ; 
  }
  if(j==0) cout << "NO";
  else cout << "YES";

}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
import java.lang.*;

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

      Scanner sc1 = new Scanner(System.in);
      Scanner sc2 = new Scanner(System.in);	
      
      int sc1;　//頭の数
      int sc2;//足の数
      
      int legs = sc2 % 4
      
      if(legs % 2 ==0){
        System.out.println("Yes");
      }else{
        System.out.println("No");        
        ]
      
      
    }      
}

Compiler output:
Main.java:11: error: illegal character: '\u3000'
      int sc1;?//???
              ^
Main.java:14: error: ';' expected
      int legs = sc2 % 4
                        ^
Main.java:20: error: illegal start of expression
        ]
        ^
Main.java:24: error: reached end of file while parsing
}
 ^
4 errors
Language: C

#include<stdio.h>
int main(){
	int x,y;
	if((scanf("%d %d",&x,&y);)==1){
	int max=4*x;
	if(y>=1 && y<=100 && x>=1 && x<=100){
	if(y>max){
		printf("No");
	}
	if(y<=max){
		if(y%2==0 || y%4==0 || (y%2==0 && y%4==0)){
			printf("Yes");
		}
		else{
			printf("No");
		}
	}
}
    }
  else{
    printf("Failed to read");
  }
}

Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ')' before ';' token
    4 |         if((scanf("%d %d",&x,&y);)==1){
      |            ~                    ^
      |                                 )
Language: C++

#include <iostream>
using namespace std;

int main() {

  int X;
  int Y;
  
  cin >> X;
  cin >> Y;
 
  
  if ( Y >= 2 * X ){
    cout << "Yes" << endl;
  }
  
  else ( Y <= 2 * X ){
    cout << "No" << endl;
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '{' token
   17 |   else ( Y <= 2 * X ){
      |                      ^
      |                      ;
Language: C++

#include<algorithm>
#include<iostream>
using namespace std;
int main() {
	int x, y;
	cin >> x >> y;
	
	while (x > 0) {
		x -= 1;
		y -= 2;
	}
	if (y == 0) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}




Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected '}' at end of input
   17 |         }
      |          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


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

void b(std::istream& in)
{
    int X, Y;
    in >> X >> Y;

    for (int iKame = 0; iKame <= X; ++iKame)
    {
        const int iTsuru = X - iKame;
        if (legs(iTsuru, iKame) == Y)
        {
            std::cout << "Yes";
            return;
        }
    }
    std::cout << "No";
}

int main(int, char* [])
{
    b(std::cin);
    return 0;
}



Compiler output:
a.cc: In function 'void b(std::istream&)':
a.cc:16:13: error: 'legs' was not declared in this scope
   16 |         if (legs(iTsuru, iKame) == Y)
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int num, feet, tmp;
  cin >> num >> feet;
  feet / 4 = tmp; 
  if(feet / num > 4 || feet / 2 < num || feet % 2 != 0){
  	cout << "No" << endl;
  } 
  else if(feet % 4 == 0 || feet % 2 = 0){
  	cout << "Yes" << endl;
  }
  else if(tmp % 2 == 0){ 
    if( tmp + ( tmp / 2 ) == num ){
  	cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
  else{
  	cout << "No" << endl;
  }    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: lvalue required as left operand of assignment
    6 |   feet / 4 = tmp;
      |   ~~~~~^~~
a.cc:10:25: error: lvalue required as left operand of assignment
   10 |   else if(feet % 4 == 0 || feet % 2 = 0){
      |           ~~~~~~~~~~~~~~^~~~~~~~~~~
Language: C++

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

int main(){
    int x,y, ans=0;
    cin >> x >> y;
    if(x <= y){
      for(int i=0;i<=x;i++){
          for(int j=x-i;j>=0;j--) if(i*2+j*4==y || i*4+j*2==y){
            ans=1;
            break;
      }
    }
    if(ans==1) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
    
}

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