criyle/codenet-compile-errors huggingface dataset:
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: Java

import java.util.*;
public class Main{

     public static void main(String []args){
        
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt();
        int y=sc.nextInt();
      
        if(y%2==0)
        {
            for(int i=0;i<x;i++)
            {
                y=y/4;;
            }
            if(temp==0)
            System.out.print("Yes");
            else
            System.out.print("No");
        }
 
     }
}

Compiler output:
Main.java:16: error: cannot find symbol
            if(temp==0)
               ^
  symbol:   variable temp
  location: class Main
1 error
Language: C

#include <stdio.h>
int main(void){
	int x, y;
	if(scanf("%d%d", &x, &y)==1);
	int k, f;
	k = y % 2;
	f = x*4;
	if(kanou == 0 || f >= y){
		printf("Yes");
	}
	else{
		printf("No");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'kanou' undeclared (first use in this function)
    8 |         if(kanou == 0 || f >= y){
      |            ^~~~~
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main(void) {

  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: Java

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();
		int y = scan.nextInt();
		scan.close();

		if (y > x * 4 || y % 2 == 1) {
			System.out.println("No");
		} else if (x > 0 && y == 0) {
			System.out.println("No");
		} else if (x > 50) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  bool ans = false;
  cin >> a >> b;
  if(a*2 <= b && b <= a*4){
    if(a%2 = 0){
      ans = true;
    }
  }
  if(ans){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |     if(a%2 = 0){
      |        ~^~
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{
      turu = Y / 2;
      kame = turu / 4;

      if (kame + turu == X) {
        cout << "Yes" << endl;
      }
      else {
        if (kame == X){
          cout << "Yes" << endl;
        }
        else {
          kame = Y / 2;
    
          if (kame == X) {
            cout << "Yes" << endl;
          }
          else {
            cout << "No" << endl;
          }
        }
       }
     }
   }
  else {
      turu = Y / 2;

      if (turu == X) {
        cout << "Yes" << endl;
      }
      else {
        cout << "No" << endl;
      }
    }
  }
}
}


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

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


}


Compiler output:
a.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main (void) {

    int x,y,s=0;
    scanf("%d%d",&x,&y);

    for(int c = 0; c<x; c++) {


        
        
        if(2 * (x -c) + c * 4 == y){
        
        printf ( "sim" );
        }
        else{ s++;  }

    }
    
if(s++ > 0){printf("no");}
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main (void) {

    int x,y,s=0;
    scanf("%d%d",&x,&y);

    for(int c = 0; c<x; c++) {


        
        
        if(2 * (x -c) + c * 4 == y){
        
        printf("Yes");
        }
        else{ s++;  }

    }
    
if(s++ > 0){printf("No");}
    return 0;
}



Compiler output:
main.c:31:5: error: redefinition of 'main'
   31 | int main (void) {
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int(void)'
    5 | int main (void) {
      |     ^~~~
Language: C++

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


}


Compiler output:
a.cc:8:12: warning: multi-character character constant [-Wmultichar]
    8 |      cout<<'Yes';
      |            ^~~~~
a.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define FOR(i, a, b) for (int i=a; i<(b); i++)
#define range(a) a.begin(), a.end()
#define endl "\n"
#define Yes() cout << "Yes" << endl
#define No() cout << "No" << endl
using Graph = vector<vector<int>>;
const unsigned long long mod = 1e9 + 7;
const long long INF = 1LL<<60;
const int dx[4]={1,0,-1,0};
const int dy[4]={0,1,0,-1};
void chmin(long long &a, long long b) { if (a > b) a = b; }
void chmax(long long &a, long long b) { if (a < b) a = b; }

int main(void){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int x,y;	cin>>x>>y;
	int sum;
	FOR(i,0,x+1){
		if(2*i+4*(x-i)==y){
			Yes();
			return 0;
	}
	No();

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:21:15: note: to match this '{'
   21 | int main(void){
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: expected primary-expression before '<' token
   28 |     while(0=<y){
      |             ^
Language: Java

import java.util.Scanner;

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

        if()
        int bb = (Y - 2 * X);
        System.out.println(bb);
        if (bb % 2 != 0 || bb < 0) {
            System.out.println("No");
        }

        int b = bb / 2;
        int a = X - b;
        System.out.println(a);
        System.out.println(b);

        if (a >= 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        return;
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        if()
           ^
Main.java:11: error: variable declaration not allowed here
        int bb = (Y - 2 * X);
            ^
2 errors
Language: C++

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


}

Compiler output:
a.cc:8:12: warning: multi-character character constant [-Wmultichar]
    8 |      cout<<'Yes';
      |            ^~~~~
a.cc:12:15: warning: multi-character character constant [-Wmultichar]
   12 |         cout<<'Yes';
      |               ^~~~~
a.cc:14:15: warning: multi-character character constant [-Wmultichar]
   14 |         cout<<'No';
      |               ^~~~
a.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:4: error: 'else' without a previous 'if'
   21 |    else if(y == 0 && i == x){
      |    ^~~~
a.cc:28:13: error: expected primary-expression before '<' token
   28 |     while(0=<y){
      |             ^
a.cc:32:4: error: 'else' without a previous 'if'
   32 |    else if(i == x){
      |    ^~~~
Language: C++

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

int main() {
  // 庭の動物の総数
  int X;
  // 足の総数
  int Y;
  
  cin >> X >> Y;
  
  bool exist = false;
  
  if ((X == 1 && Y == 2) || (X == 1 && Y == 4) || (X == 100 && Y ==200) || (X == 100 && Y == 400) (X == 50 && Y == 200) {
  	cout << "Yes" << endl;
    return 0;
  } else if (X == 1) {
    cout << "No" << endl;
    return 0;
  }
  
  for (int i = 0; i < X; i++) {
  	int turu = 2 * (i +1);
    int kame = 4 * (X - (i +1));
    
    if (turu + kame == Y) {
    	exist = true;
      	break;
    }
  }
  
  if (exist) {
  	cout << "Yes" << endl;
  } else {
  	cout << "No" << endl;
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:99: error: expression cannot be used as a function
   14 |   if ((X == 1 && Y == 2) || (X == 1 && Y == 4) || (X == 100 && Y ==200) || (X == 100 && Y == 400) (X == 50 && Y == 200) {
      |                                                                            ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:14:120: error: expected ')' before '{' token
   14 |   if ((X == 1 && Y == 2) || (X == 1 && Y == 4) || (X == 100 && Y ==200) || (X == 100 && Y == 400) (X == 50 && Y == 200) {
      |      ~                                                                                                                 ^~
      |                                                                                                                        )
a.cc:22:19: error: 'i' was not declared in this scope
   22 |   for (int i = 0; i < X; i++) {
      |                   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:8: error: invalid suffix "＊i" on integer constant
    6 |      c=2＊i+4＊(a-i);
      |        ^~~~
main.c:6:13: error: invalid suffix "＊" on integer constant
    6 |      c=2＊i+4＊(a-i);
      |             ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
   10 |     else if(y/4 == x){
      |     ^~~~
a.cc:8:15: note: to match this '{'
    8 |   if(x%2 == 1){
      |               ^
a.cc:11:11: error: expected ';' before string constant
   11 |       cout "Yes";
      |           ^~~~~~
      |           ;
a.cc:20:4: error: 'else' without a previous 'if'
   20 |    else if(y == 0 && i == x){
      |    ^~~~
a.cc:27:13: error: expected primary-expression before '<' token
   27 |     while(0=<y){
      |             ^
a.cc:31:4: error: 'else' without a previous 'if'
   31 |    else if(i == x){
      |    ^~~~
Language: C++

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

    int main()
    {
        int x,y;
        cin>>x>>y;
        if ((4*x-y)/2==float(4*x-y)/2){
          if(4*x-y)<=0){
            if(x*4==y){
            cout<<"YES";}else{cout<<"NO";}
           cout<<"YES";
        }
        else{
            cout<<"NO";
        }

    }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before '<=' token
   10 |           if(4*x-y)<=0){
      |                    ^~
a.cc:19:6: error: expected '}' at end of input
   19 |     }
      |      ^
a.cc:6:5: note: to match this '{'
    6 |     {
      |     ^
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int hiki,asi;
    cin>> hiki >>asi;
    int sa =asi-hiki*2;

    if (hiki*2<=asi && hiki*4>=asi && sa%2==0){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }

}

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

#include<bits/stdc++.h>
#define fasterthanlight ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define test int T; cin>>T; while(T--)
#define endl "\n"
#define int long long
#define vi vector<int>
#define pb push_back
#define mod 1000000007
#define MAX 1e9
#define MIN -1e9
#define hi "visited\n" //sasta debugging
using namespace std;

//author::@whohet-->Het Patel

signed main()
{
  fasterthanlight;
  cin>>x>>y;
  if(y-(2*x)>=0)
  {
    if(y%2==0)
      cout<<"Yes";
    else
      cout<<"No";
  }
  else
    cout<<"No";
  //cout << "\n\n"<<"Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " seconds.\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'x' was not declared in this scope
   19 |   cin>>x>>y;
      |        ^
a.cc:19:11: error: 'y' was not declared in this scope; did you mean 'yn'?
   19 |   cin>>x>>y;
      |           ^
      |           yn
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int X, Y, a, b;
    cin >> X >> Y >> a >> b;
  	// 関係式の入力
  	Y = 4*a +2*b;
    X = a + b;
    Y = 4*a + 2*(X-a);
    X = 3; Y = 8;
  	// 解答の代入
  	string ans ;
  	if (int a) {ans = "Yes";}
  	else if (int a) {ans = "No";}
    // 出力
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected initializer before ')' token
   15 |         if (int a) {ans = "Yes";}
      |                  ^
a.cc:16:23: error: expected initializer before ')' token
   16 |         else if (int a) {ans = "No";}
      |                       ^
Language: C

#include<stdio.h>

int main(){
   int a,b,c=0;
   scanf(%d%d, &a, &b);
   for(int i=0;i<=a;i++){
       if((b-2*i)/4==a-i){
           c++;
       }
   }
    if(c>0){
        puts("Yes");
        return 0;
    }
    puts("No");
   }
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before '%' token
    5 |    scanf(%d%d, &a, &b);
      |          ^
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: Java

import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner sc =new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int cr=y/4;
int tur=(y-cr)/2;
int sum=cr+tur;
if(sum==x)
System.out,println("Yes");
else
System.out,println("No");
}
}


Compiler output:
Main.java:13: error: not a statement
System.out,println("Yes");
      ^
Main.java:13: error: ';' expected
System.out,println("Yes");
          ^
Main.java:15: error: not a statement
System.out,println("No");
      ^
Main.java:15: error: ';' expected
System.out,println("No");
          ^
Main.java:14: error: 'else' without 'if'
else
^
5 errors
Language: C++

//#pragma region ALL(include define etc)
#include <iostream>   // swap(a, b)
#include <string>
#include <cmath>      // abs(絶対値) sin cos tan(角度 / 180.0 * 3.141592)
#include <vector>     // vec.push_back(a) vec.pop_back()
#include <algorithm>  // max(a, b) min(a, b) reverse() sort()
#include <functional> // sort(a, a + N, greater<型>());
#include <math.h>
#include <iomanip>
#define int long long
#define ll long long
#define double long double
using namespace std;
//#pragma endregion

signed main()
{
	// 10^18 = 1000000000000000000

	//int h1, h2, m1, m2, k;
	//int box, box1,box2;

	//int N;
	int n;
	int a, b;
	//int m;
	//int k;
	//string s;
	//string t;
	//int m1, m2;
	//int a, b, c, k;
	int x, y;

	//int box[1000000000000000000];
	//int box;
	//int box2;
	//int x[5];

	//long double aaa;

	//int k, d;
	int all = 0;
	//double all;
	//double a, b;
	//double h, m;
	//int a[30000] = { 0 };
	//double c, d, e;

	//double mbox, hbox;
	//double box, box2;

	//int box[10000] = { 0 };

	//bool flag = true;
	bool flag = false;

	//string str;

	//cin >> h1 >> m1 >> h2 >> m2 >> k;
	//cin >> n;
	//cin >> a >> b;
	cin >> x >> y;

	for (int i = 0; i < x; i++)
	{
		if (i == 0)
		{
			if (y % 2 != 0)
			{
				flag = false;
				break;
			}

			if (x * 4 < y)
			{
				flag = false;
				break;
			}

			if (x > y)
			{
				flag = false;
				break;
			}
		}

		y -= 2;
	}

	if (y == 0)
	{
		flag = true;
		break;
	}

	for (int i = 0; i < x; i++)
	{
		y -= 2;

		if (y == 0)
		{
			flag = true;
			break;
		}
	}

	//n = t.length();

	//cout << b << "\n";

	if (flag == true)
	{
		cout << "Yes\n";
	}
	else
	{
		cout << "No\n";
	}

	//cout << fixed << setprecision(111) << all;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:93:17: error: break statement not within loop or switch
   93 |                 break;
      |                 ^~~~~
Language: Java

import java.util.Scanner;

public class CraneAndTurtle {
    public static void main(String[] args) {
        Scanner read = new Scanner(System.in);
        int x_heads = read.nextInt();
        int y_legs = read.nextInt();

        int countTurtles = 0;
        countTurtles = (y_legs) - 2 * (x_heads);
        countTurtles /= 2;

        int countCranes = x_heads - countTurtles;

        //System.out.println(countTurtles);
        //System.out.println(countCranes);

        if(countTurtles >= 0 && countCranes >= 0)
            System.out.println("Yes");
        else
            System.out.println("No");

    }
}


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

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

int main() {
	int x,y;
	cin>>x>>y;
	int op1=log2(y);
	int op2=log(y)/log(4);
	//int op3=log(y)/log(6);
	//cout<<op2<<endl;
	if(x==op1||x==op2||x==op3)
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: 'op3' was not declared in this scope; did you mean 'op2'?
   11 |         if(x==op1||x==op2||x==op3)
      |                               ^~~
      |                               op2
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: unable to find numeric literal operator 'operator""a'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |      ^~
a.cc:6:16: error: unable to find numeric literal operator 'operator""a'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |                ^~
a.cc:6:20: error: unable to find numeric literal operator 'operator""b'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |                    ^~
Language: C++

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

int main() {
  double x,y;
  cin>>x>>y;
  int a=x;
  int b=y;
  if(y%2==0 and x*4>=y and a==x and b==y){
  	cout<<"Yes"<<endl;
  }else{
  	cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |   if(y%2==0 and x*4>=y and a==x and b==y){
      |      ~^~
      |      | |
      |      | int
      |      double
Language: C

#include <stdio.h>

int main(void)
{
	int data1,data2;
  	int c;
  	int i
	scanf("%d%d",&data1,&data2);	/* 入力部分 */
  	
  	for(i = 0;i <= data1;i++){
    if(data2 == (data1 * 2) + (i * 2)){
      c = 1;
    }
    }
  if(c == 1){
	printf("Yes");}
  else printf("No");
  
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |         scanf("%d%d",&data1,&data2);    /* 入力部分 */
      |         ^~~~~
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i = 0;i <= data1;i++){
      |             ^
main.c:10:13: 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 a , b;
  cin a >> b;
  if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a >> b;
      |      ^~
      |      ;
a.cc:6:6: error: unable to find numeric literal operator 'operator""a'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |      ^~
a.cc:6:16: error: unable to find numeric literal operator 'operator""a'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |                ^~
a.cc:6:20: error: unable to find numeric literal operator 'operator""b'
    6 |   if(2a<=b&&b<=4a&&2b%2==0) cout << "Yes" << endl;
      |                    ^~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
if (a*2<b&&a*4>>b)
 if (b%2 ==0 && b%6 ==0){
  cout << "yes" << endl;
 }
 else if(b%6 == 0||b%2 == 0){
 cout << "Yes" << endl;
 }
 else{
 cout << "No" <<endl;
 }
}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected '}' at end of input
    8 |         else {cout << "No"<<endl;}
      |                                   ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ')' at end of input
    7 |   if( X
      |     ~  ^
      |        )
a.cc:7:8: error: expected statement at end of input
a.cc:7:8: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

#define llt long long int
#define modm 1000000007

int main(){
	int n,m,ans=0;
	string s1,s2;
	cin>>n>>m;
	int num1=n*2,num2=n*4;
	else if(m>=num1&&m=<num2){
		if(m%2==0){
			cout<<"Yes"<<endl;
		}
		else
			cout<<"No"<<endl;
		
	}
	else
	cout<<"No"<<endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(m>=num1&&m=<num2){
      |         ^~~~
a.cc:12:28: error: expected primary-expression before '<' token
   12 |         else if(m>=num1&&m=<num2){
      |                            ^
Language: C++

include<iostream>
using namespace std;

int main(){
  for(x>=1;x<=100;x++){
    for(y>=1;y<=100;y++){
      int a=c;
      int b=x-c;
      if(

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:7: error: 'x' was not declared in this scope
    5 |   for(x>=1;x<=100;x++){
      |       ^
a.cc:6:9: error: 'y' was not declared in this scope
    6 |     for(y>=1;y<=100;y++){
      |         ^
a.cc:7:13: error: 'c' was not declared in this scope
    7 |       int a=c;
      |             ^
a.cc:9:10: error: expected primary-expression at end of input
    9 |       if(
      |          ^
a.cc:9:10: error: expected ')' at end of input
    9 |       if(
      |         ~^
      |          )
a.cc:9:10: error: expected statement at end of input
a.cc:9:10: error: expected '}' at end of input
a.cc:6:25: note: to match this '{'
    6 |     for(y>=1;y<=100;y++){
      |                         ^
a.cc:9:10: error: expected '}' at end of input
    9 |       if(
      |          ^
a.cc:5:23: note: to match this '{'
    5 |   for(x>=1;x<=100;x++){
      |                       ^
a.cc:9:10: error: expected '}' at end of input
    9 |       if(
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int x, y;
  cin >> x >> y;
  if(y & 1 || x * 4 < y) {
	cout << "No\n";
	return;
  }
  cout << "Yes\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |         return;
      |         ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: unable to find numeric literal operator 'operator""X'
    6 |   if(2X<=Y && Y<=4X && Y%2==0) cout<<"Yes"<<endl;
      |      ^~
a.cc:6:18: error: unable to find numeric literal operator 'operator""X'
    6 |   if(2X<=Y && Y<=4X && Y%2==0) cout<<"Yes"<<endl;
      |                  ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'No' was not declared in this scope
    9 |     cout << No << endl;
      |             ^~
a.cc:12:13: error: 'No' was not declared in this scope
   12 |     cout << No << endl;
      |             ^~
a.cc:15:13: error: 'Yes' was not declared in this scope
   15 |     cout << Yes << endl;
      |             ^~~
Language: C++

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

int X, Y;

bool dfs(int x, int y) {
	if(x == X) {
		if(y == Y) return true;
		else return false;
	}
	if(dfs(x + 1, y + 2))
		return true;
	if(dfs(x + 1, y + 4))
		return true;
	return false;
}

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

	if(Y / 2 > X && Y % 2 != 0) {
		cout << "No" << endl;
		return 0;
	}

	if(dfs(0, 0));
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

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

#include<iostream>
using namespace std;
int X ,Y;
int main(){
    cin >> X >> Y;
    if(dfs(1,X)) cout << "Yes";
    else cout << "No";
}

bool dfs(int i,int sum){
    if(i == X) return sum == Y;
    if(dfs(i + 1, sum+2)) return true;
    if(dfs(i + 1, sum+4)) return true;

    return false;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'dfs' was not declared in this scope
    6 |     if(dfs(1,X)) cout << "Yes";
      |        ^~~
Language: C

#include <stdio.h>

int main(void)
{
	int data1,data2;
  	int c;
  	int i
	scanf("%d%d",&data1,&data2);	/* 入力部分 */
  	
  	for(i = 0;i < data1;i++){
    if(data2 == (data1 * 2) + (i * 2)){
      c = 1;
    }
    }
  if(c == 1){
	printf("Yes");}
  else printf("No");
  
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |         scanf("%d%d",&data1,&data2);    /* 入力部分 */
      |         ^~~~~
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i = 0;i < data1;i++){
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(){
	int x,y;
	cin>>x>>y;
	for(int i=0;i<=150;i++){
		if((4x-y)/2==i){
			cout<<"yes";
			exit(0);
		}
	}
	cout<<"no";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: unable to find numeric literal operator 'operator""x'
    7 |                 if((4x-y)/2==i){
      |                     ^~
Language: C++

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

int main(){
  int a, b; cin >> a >> b;
  int asn = a * 4;
  if(ans <= b){
  	cout << "Yes" << endl;
  }else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'ans' was not declared in this scope; did you mean 'asn'?
    7 |   if(ans <= b){
      |      ^~~
      |      asn
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int

struct Union{
  vector<ll> par;
  Union(ll a){
  par=vector<ll>(a,-1);
  }
  ll find(ll a){
    if(par[a]<0){
      return a;
    }
    else{
      return par[a]=find(par[a]);
    }
  }
  bool same(ll a,ll b){
    return (find(a)==find(b));
  }
  ll size(ll a){
    return -par[find(a)];
  }
  void unite(ll a,ll b){
    ll c=find(a),d=find(b);
    if(c==d)
      return;
    if(size(c)<size(d)){
      swap(c,d);
    }
    par[c]+=par[d];
    par[d]=c;
  }
};
ll Nagaemon1;
void swap(ll i,ll j){
  Nagaemon1=i;
  i=j;
  j=Nagaemon1;
}
ll euclidean_gcd(ll a, ll b) {
  ll x,y;
  cin >> x >> y;
  if(y%2==1){
    cout << "No";
  }
  else if(x*2<=y&&y<=x*4){
    cout << "Yes";
  }
  else cout << "No";
}

Compiler output:
a.cc: In function 'll euclidean_gcd(ll, ll)':
a.cc:56:1: warning: no return statement in function returning non-void [-Wreturn-type]
   56 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

i=lambda:map(int,input().split())
x,y=i()
if (x+y)%2==1:
    print('Yes')
else:
    print('No')

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
i=lambda:map(int,input().split())
^
Main.java:4: error: unclosed character literal
    print('Yes')
          ^
Main.java:4: error: unclosed character literal
    print('Yes')
              ^
Main.java:6: error: unclosed character literal
    print('No')
          ^
Main.java:6: error: unclosed character literal
    print('No')
             ^
5 errors
Language: Java

import java.util.*;

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

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        for(int loop=0; loop<=x; loop+){
            if( loop*2 + (x-loop)*4 == y ){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");

    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        for(int loop=0; loop<=x; loop+){
                                      ^
Main.java:10: error: not a statement
        for(int loop=0; loop<=x; loop+){
                                     ^
2 errors
Language: C++

#include <iostream>
using namespace std;
#define int long long
int main(){
    int x,y;
    cin>>x>>y;
    if(y>x*4){
        cout<<"NO"<<endl;
    }else{
        if(y%2!=0){
            cout<<"NO"<<endl;
        }else{
         if(y<x*2){
         cout<<"NO"<<endl;   
        }else{
            cout<<"YES"<<endl;
        }}
    
    cout<<"YES"<<endl;
}
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

int main(void){
    int x,y;
    double a,b
    cin >> x >> y;

    a = (4.0 * x - y) / 2.0;
    b = (y - 2.0 * x) / 2.0;

    if(a >= 0 && b >= 0 && ceil(a) == floor(a) && ceil(b) == floor(b) ){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> x >> y;
      |     ^~~
a.cc:10:5: error: 'b' was not declared in this scope
   10 |     b = (y - 2.0 * x) / 2.0;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int noa,nol;
  cin>>noa>>nol;
  if(nol>noa*4) cout<<"No";
  else if(nol%2==1) cout<<"No";
  else
  {
    int sum=noa*4;
    for(int i=0;i<noa;++i)
    {
      if(sum==nol)
      {
        cout<<"Yes";
        break;
      }
      else sum-=2;
  }
  return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
  long long int a,b,p;
  cin>>a>>b;
  p=(4*a-b);
  if(p%2==0
  cout<<"Yes"<<endl;
     else
     cout<<"No"<<endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'cout'
    8 |   if(p%2==0
      |            ^
      |            ;
    9 |   cout<<"Yes"<<endl;
      |   ~~~~      
a.cc:10:6: error: expected primary-expression before 'else'
   10 |      else
      |      ^~~~
a.cc:9:21: error: expected ')' before 'else'
    9 |   cout<<"Yes"<<endl;
      |                     ^
      |                     )
   10 |      else
      |      ~~~~            
a.cc:8:5: note: to match this '('
    8 |   if(p%2==0
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: invalid suffix "X" on integer constant
    7 |    if((4X-Y)%2==0){
      |        ^~
Language: C++

#include <bits/stdc++.h>
2
using namespace std;
3
 
4
int main() {
5
  long long A,B;
6
  cin >> A >> B;
7
  long long X = B / 4;
8
  long long D = B % 2;
9
  if ( D == 1 ) {
10
    cout << "No" <<endl;
11
  }
12
  else if ( A * 4 >= B ) {
13
    cout << "Yes" <<endl;
14
  }
15
  else if ( ( A - 1 ) * 4 + 2 >= B ) {
16
    cout << "Yes" <<endl;
17
  }
18
  else {
19
    cout << "No" <<endl;
20
  }
21
}
※ 512 K

Compiler output:
a.cc:42:1: error: extended character ※ is not valid in an identifier
   42 | ※ 512 K
      | ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 3
      | ^
a.cc:42:1: error: '\U0000203b' does not name a type
   42 | ※ 512 K
      | ^
Language: C

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

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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cstdlib>
#include <map>
#include <math.h>
#include <numeric>
#include <iomanip>
#include <climits>
using namespace std;
int main(){
  int x,y;
  cin >> x >> y;
  int tmp=(2*x-y);
  if((y%2==0)(tmp>=0)&&(tmp%2==0)&&(tmp/2<=x))cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expression cannot be used as a function
   16 |   if((y%2==0)(tmp>=0)&&(tmp%2==0)&&(tmp/2<=x))cout << "Yes" << endl;
      |      ~~~~~~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	//頭数　足
	int X,Y;
	
	cin >> X >> Y;
	int N = X;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected '(' before '{' token
   14 |         else if {
      |                 ^
      |                 (
Language: C++

//BISMILLAH
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    int i=0,j,temp=5,a,b,n,x,y,flag=0,even,odd;
    cin>>num>>paa;
    if(paa%2==0)
    {
        if(num*2>=paa) cout<< "Yes"<<endl;
        else cout<< "No"<<endl;
    }
    else cout<< "No"<<endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |     cin>>num>>paa;
      |          ^~~
      |          enum
a.cc:8:15: error: 'paa' was not declared in this scope
    8 |     cin>>num>>paa;
      |               ^~~
Language: Java

public class Main {
	
		public static void main(String[] args){
			Scanner scanner = new Scanner(System.in);
			int animals = scanner.nextInt();
			int legs = scanner.nextInt();
			int cranes = (legs - 2 * animals) / 2;
			int turtles = animals - cranes;
			boolean result = true;
			if(turtles * 2 + cranes * 4 != legs || turtles < 0) {
				result = false;
			}
			
			String decision = result? "Yes" : "No";
			System.out.print(decision);
		}
}


Compiler output:
Main.java:4: error: cannot find symbol
			Scanner scanner = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
			Scanner scanner = new Scanner(System.in);
			                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
    int X,Y;
    cin >> X >> Y;
    int Z=0;
    
    if(Y < 2*X || Y > 4*X){
        Z = 1;
    }

    if(Y % 2 != 0){
        Z = 1;
    }

    int turu,kame;
    turu = Y - 2*x;
    turu /= 2;

    kame = X - turu;
    if(kame < 0 || turu < 0){
        Z = 1;
    } 
    if(Z == 0){
        cout << "Yes";
    }else{
        cout << "No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'x' was not declared in this scope
   18 |     turu = Y - 2*x;
      |                  ^
Language: C++

// IN the name of GOD

#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int M = 1e9 + 7;

void solve () {
    int z1, z2;
    cin >> z1 >> z2;
    if ((z2 - 2*z1) % 2 == 0) {
        int y = (z2 - 2*z1)/2;
    }
    else {
        cout << "NO";
        return;
    }
    int x = z1 - y;
    if (x < 0 || y < 0) {
        cout << "NO";
        return;
    }
    if (x + y == z1 && 2*x + 4*y == z2 && (x > 0 || y > 0)) {
        cout << "YES";
    }
    else {
        cout << "NO";
    }
}
// 2x + 4y = z2
// x + y = z1

int main () {
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL); 
    int tt = 1;
        // scanf("%d", &tt);
    while (tt--)
        solve();
 
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:18:18: error: 'y' was not declared in this scope
   18 |     int x = z1 - y;
      |                  ^
Language: C++

// #include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <numeric>
#include <cmath>

#define rep(i,n) for (int i = 0; i < n; ++i)
#define repr(i,n) for (int i = n; i > 0; --i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

const int MAX = 100;
const int INF = (1<<12);

int main() {
  int X, Y;
  cin >> X >> Y;
  rep(i,X){
    rep(j,X){
      if(Y == (i * 2 +  j * 4)) {
        cout << "Yes" << endl;
        return;
      }
    } 
  }
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   27 |         return;
      |         ^~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {

		// 読み込み
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		
		double a = (4*X -Y)/2;
		if(a >= 0 && a == (int)a) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");;
		}
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include<string>
#include<vector>
#include<math.h>
using namespace std;



int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	long X,Y;
	cin>>X>>Y;
	if(Y%2==0){
		if((Y<=X*4)and(Y>=X*2)){
			cout<<"Yes";
		}else{
			cout<<"No";
		}
		else{
			cout<<"No";
		}
	}
	
	
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: expected '}' before 'else'
   20 |                 else{
      |                 ^~~~
a.cc:14:19: note: to match this '{'
   14 |         if(Y%2==0){
      |                   ^
a.cc: At global scope:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C

#includ <studio.h>

int main(void){
  int a,b,i;
  int c = 0;
  
  scanf("%d",&a);
  scanf("%d",&b);
  
  for(i = 0;i < a){
  if(b = (a * 2) + (i * 2)){
    c = 1;}
  }
  if(c == 1){
    printf("Yes");}
  else printf("No");
return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <studio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ <studio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&a);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:18: error: expected ';' before ')' token
   10 |   for(i = 0;i < a){
      |                  ^
      |                  ;
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("Yes");}
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |   else printf("No");
      |        ^~~~~~
main.c:16:8: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

//#include <algorithm>
#include <cstdio>
#include <string>
#include <iostream>
#include <vector>
#include <list>
#include <cmath>
#include <iomanip>
#include <queue>
#include <stack>
#include <map>



typedef unsigned long long ULONG;
typedef long long LONG;
using namespace std;

#define PI 3.1415926535897932384626433
#define _DBG_


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

	int T, K;
	K = (Y - 2 * X) / 2;
	T = X - K;
	
	if ((Y - 2 * X) % 2 != 0) {
		cout << "No" << endl;
		return 0;
	}

	if (K < 0 || T < 0) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
 int x,y;
 cin>>x>>y;
  string s="No";
  if(y>=(2*x) && y<(4*x) && y%2==0)
  {
   ans="yes"; 
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |    ans="yes";
      |    ^~~
      |    abs
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: Java

import java.util.Scanner;
public class CP {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x =sc.nextInt();
        int y =sc.nextInt();
        if(x>4*y){
            System.out.println("No");
            return;
        }
        else if(y%2==0){
            System.out.println("Yes");
        }
    }
}

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		if (y % 2 == 0) {
			if (x >= y / 4) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
#define mod 1000000009
#define int signed long long int 
#define garou ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
int pow(int p,int r){
	int ans=1;
	while(r>0){
     if(r&1){
		 ans=((ans%mod)*(p%mod))%mod;
	 }
	 r=r>>1;
     p=((p%mod)*(p%mod))%mod;
	}
}
signed main() {
garou;
int x,y;
cin>>x>>y;
for(int i=0;i<=x;i++){
	int l=2*i;
	int r=(4*(x-i))
	if(l+r==y){
		cout<<"Yes";
		return 0;
	}
}
cout<<"No";
}

Compiler output:
a.cc: In function 'long long int pow(long long int, long long int)':
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
a.cc: In function 'int main()':
a.cc:23:9: error: expected ',' or ';' before 'if'
   23 |         if(l+r==y){
      |         ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected identifier before '(' token
    8 |         if ((y - 2 * x) % 2 == 0) && (4 * x - y) % 2 == 0)
      |                                      ^