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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
int X,Y;
  cin >> X >> Y;
  double a=(Y-2*X)/2, b=Y-a;
    if (ceil(a)==floor(a))&&
       if (ceil(b)==florr(b)){
         cout << "Yes" << endl;
       }
          else{
            cout << "NO" << endl;
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected identifier before 'if'
   10 |        if (ceil(b)==florr(b)){
      |        ^~
a.cc:15:12: error: expected '}' at end of input
   15 |           }
      |            ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
int X,Y;
  cin >> X >> Y;
  double a=(Y-2*X)/2, b=Y-a;
    if(ceil(a)==floor(a))&&
       if(ceil(b)==florr(b)){
         cout << "Yes" << endl;
       }
          else{
            cout << "NO" << endl;
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected identifier before 'if'
   10 |        if(ceil(b)==florr(b)){
      |        ^~
a.cc:15:12: error: expected '}' at end of input
   15 |           }
      |            ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
int X,Y;
  cin >> X >> Y;
  double a=(Y-2*X)/2, b=Y-a;
    if(ceil(a)==floor(a)&&
       if(ceil(b)==florr(b){
         cout << "Yes" << endl;
       }
          else{
            cout << "NO" << endl;
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before 'if'
   10 |        if(ceil(b)==florr(b){
      |        ^~
a.cc:9:27: error: expected ')' before 'if'
    9 |     if(ceil(a)==floor(a)&&
      |       ~                   ^
      |                           )
   10 |        if(ceil(b)==florr(b){
      |        ~~                  
a.cc:15:12: error: expected statement at end of input
   15 |           }
      |            ^
a.cc:15:12: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  
int X,Y;
  cin >> X >> Y;
  double a=(Y-2*x)/2, b=Y-a;
    if(ceil(a)==floor(a)&&
       if(ceil(b)==florr(b){
         cout << "Yes" << endl;
       }
          else{
            cout << "NO" << endl;
          }
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'x' was not declared in this scope
    8 |   double a=(Y-2*x)/2, b=Y-a;
      |                 ^
a.cc:10:8: error: expected primary-expression before 'if'
   10 |        if(ceil(b)==florr(b){
      |        ^~
a.cc:9:27: error: expected ')' before 'if'
    9 |     if(ceil(a)==floor(a)&&
      |       ~                   ^
      |                           )
   10 |        if(ceil(b)==florr(b){
      |        ~~                  
a.cc:16:11: error: expected primary-expression before '}' token
   16 |           }
      |           ^
Language: C++

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

int main() {
  
int X,Y;
  cin >> X >> Y;
  double a=(Y-2*x)/2, b=Y-a;
    if(ceil(a)==floor(a)&&
       if(ceil(b)==florr(b){
         cout << "Yes" << endl;
       }
          else{
            cout << "NO" << endl;
          }
      
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'x' was not declared in this scope
    8 |   double a=(Y-2*x)/2, b=Y-a;
      |                 ^
a.cc:10:8: error: expected primary-expression before 'if'
   10 |        if(ceil(b)==florr(b){
      |        ^~
a.cc:9:27: error: expected ')' before 'if'
    9 |     if(ceil(a)==floor(a)&&
      |       ~                   ^
      |                           )
   10 |        if(ceil(b)==florr(b){
      |        ~~                  
a.cc:15:12: error: expected statement at end of input
   15 |           }
      |            ^
a.cc:15:12: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


using namespace std;

string gardenPop(int x, int y){
  
  if(y / x > 4){
  	return string "No"
  }
  
  return string "Yes"
  
}



Compiler output:
a.cc:4:1: error: 'string' does not name a type
    4 | string gardenPop(int x, int y){
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"No\n;
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"No\n;
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"No\n;
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"No\n;
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected primary-expression before '>' token
   13 |     if(Y => X * 2 && Y <= X * 4){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int t(string a);

void main() {
  
  int c,f;
  cin >> c >> f;
  cerr << c << f << endl;
  if(f%2 == 1 || f > c*4) t("No");//奇数・足が多すぎるなら終了
  
  for(int i = 0;i<=c;i++){//動物の数だけ試行
    cerr << i << c << f <<  endl;
    //亀
    if( ( i * 4 + ( c - i ) * 2 ) % f == 0 ){
      cerr << "s" << endl;
      t("Yes");
      
      break;
    }
  }
  t("No");
}

void t(string a){
  cout << a << endl;
}


Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
a.cc:26:6: error: ambiguating new declaration of 'void t(std::string)'
   26 | void t(string a){
      |      ^
a.cc:4:5: note: old declaration 'int t(std::string)'
    4 | int t(string a);
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int t(string a);

int main() {
  
  int c,f;
  cin >> c >> f;
  cerr << c << f << endl;
  if(f%2 == 1 || f > c*4) t("No");//奇数・足が多すぎるなら終了
  
  for(int i = 0;i<=c;i++){//動物の数だけ試行
    cerr << i << c << f <<  endl;
    //亀
    if( ( i * 4 + ( c - i ) * 2 ) % f == 0 ){
      cerr << "s" << endl;
      t("Yes");
      
      break;
    }
  }
  t("No");
}

void t(string a){
  cout << a << endl;
}


Compiler output:
a.cc:26:6: error: ambiguating new declaration of 'void t(std::string)'
   26 | void t(string a){
      |      ^
a.cc:4:5: note: old declaration 'int t(std::string)'
    4 | int t(string a);
      |     ^
Language: C++

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

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

#include<bits/stdc++.h>
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	//int t;
	//cin>>t;
	//for(int i=0;i<t;i++)
	//{
		int x,y;
	//	vector<int> a(5);
		cin>>x>>y;
		b=(y-x*2)/2;
		a=x-b;
		if(a>=0 && b>=0){
			if(a+b==x and (2*a+4*b)==y){
				cout<<"YES"<<endl;
			else cout<<"NO"<<endl;
			}
		}else cout<<"No"<<endl;
	/*for(int i=0;i<x;i++)
	{
		if(y%2!=0){
			cout<<"No"<<endl;
			break;
		} 
		else if(x*2==y)
        {
          cout<<"Yes"<<endl;
          break;
        }
		else if(x*4==y)
        {
          cout<<"Yes"<<endl;
          break;
        }
		else if(x*4<y)
		{
			 cout<<"No"<<endl;
			 break;
		 }
		else if(y>4){
			y=y-4;
			x=x-1;}
		//else cout<<"No"<<endl;
		
	}
	
	
		
	//}
}*/

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'b' was not declared in this scope
   14 |                 b=(y-x*2)/2;
      |                 ^
a.cc:15:17: error: 'a' was not declared in this scope
   15 |                 a=x-b;
      |                 ^
a.cc:19:25: error: expected '}' before 'else'
   19 |                         else cout<<"NO"<<endl;
      |                         ^~~~
a.cc:17:52: note: to match this '{'
   17 |                         if(a+b==x and (2*a+4*b)==y){
      |                                                    ^
a.cc: At global scope:
a.cc:21:18: error: expected unqualified-id before 'else'
   21 |                 }else cout<<"No"<<endl;
      |                  ^~~~
Language: C++

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




void solve(){
	int n , m;
	int c = (m-2*n)/2
	if(2*c == m - 2*n)
	cout << "Yes\n";
	else cout <<"No\n";

}

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  //f();
  //int t;cin>>t;while(t--)
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:11:9: error: expected ',' or ';' before 'if'
   11 |         if(2*c == m - 2*n)
      |         ^~
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else cout <<"No\n";
      |         ^~~~
Language: C++

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

int main() {
    int N,A;
    cin >>N>>A;
    bool exist=0;
    for (int a = 0; a <=N ; a++) {
      int total=a*2+(N-a)*4;
      if(A==total){
        exist=1;
        break;
      }
    }
    if(bool){
      std::cout << "Yes" << '\n';
    }else{
      std::cout << "No" << '\n';
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected unqualified-id before ')' token
   17 |     if(bool){
      |            ^
Language: C++

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

int main() {
    int N,A;
    cin >>N>>A;
    for (size_t a = 0; a < =N; a++) {
      int total=a*2+(N-a)*4;
      if(A==total){
        std::cout << "Yes" << '\n';
        break;
      }
      else{
        std::cout << "No" << '\n';
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected primary-expression before '=' token
    9 |     for (size_t a = 0; a < =N; a++) {
      |                            ^
Language: C++

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

int main() {
    int N,A;
    cin >>N>>A;
    for (size_t a = 0; a < N; a++) {
      int total=a*2+(N-a)*4
      if(A==total){
        std::cout << "Yes" << '\n';
        break;
      }
      else{
        std::cout << "No" << '\n';
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ',' or ';' before 'if'
   11 |       if(A==total){
      |       ^~
a.cc:15:7: error: 'else' without a previous 'if'
   15 |       else{
      |       ^~~~
Language: C++

#include <iostrteam>
using namespace std;

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


Compiler output:
a.cc:1:10: fatal error: iostrteam: No such file or directory
    1 | #include <iostrteam>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'b' was not declared in this scope
   14 |     if (2 * i + 4 * b == y)
      |                     ^
Language: C++

#include <iostrteam>
using namespace std;

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

Compiler output:
a.cc:1:10: fatal error: iostrteam: No such file or directory
    1 | #include <iostrteam>
      |          ^~~~~~~~~~~
compilation terminated.
Language: Java

public class Crane_and_Turtle {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		int a[] = new int[2];

		for (int i = 0; i < a.length; i++)
			a[i] = input.nextInt();

		if (!(a[1] >= 2 * a[0] && a[1] <= 4 * a[0] && a[1]%2==0)) {
			System.out.println("No");
			return;
		}

		int crane = ((4 * a[0]) - a[1]) / 2;

		int turtle = (a[1] - (2 * a[0])) / 2;

		if (crane + turtle == a[0])
			System.out.println("Yes");
	}

}


Compiler output:
Main.java:1: error: class Crane_and_Turtle is public, should be declared in a file named Crane_and_Turtle.java
public class Crane_and_Turtle {
       ^
Main.java:5: error: cannot find symbol
		Scanner input = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Crane_and_Turtle
Main.java:5: error: cannot find symbol
		Scanner input = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class Crane_and_Turtle
3 errors
Language: Java

import java.util.Scanner;

public class Crane_and_Turtle {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		int a[] = new int[2];

		for (int i = 0; i < a.length; i++)
			a[i] = input.nextInt();

		int x = a[0], y = a[1];
		if (!(y >= 2 * x && y <= 4 * x && y%2==0)) {
			System.out.println("No");
			return;
		}

		int crane, turtle;

		crane = ((4 * x) - y) / 2;

		turtle = (y - (2 * x)) / 2;

		if (crane + turtle == a[0])
			System.out.println("Yes");
	}

}


Compiler output:
Main.java:3: 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<stdio.h>
 
int main(void)
{
  float x,y,z;
   
  scanf("%f",&x);
  
  scanf("%f",&y);
  
  z=(4*x-y)/2;
  
  if(z>=0&&z<x)
  {
    printf("Yes");
  }else{
    printf("No");
  }

Compiler output:
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
   18 |   }
      |   ^
Language: C

#include<stdio.h>

int main(void)
{
  float x,y,z;
  
  
  scanf("%f",&x);
  
  scanf("%f",&y);
  
  z=(4x-y)/2;
  
  if(z>0&&z<x)
  {
    printf("OK");
  }else{
    printf("NG");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:6: error: invalid suffix "x" on integer constant
   12 |   z=(4x-y)/2;
      |      ^~
Language: C

#include<stdio.h>

int main(void)
{
  int x,y,z;
  
  
  scanf("%f",&x);
  
  scanf("%f",&y);
  
  z=(4x-y)/2;
  
  if(z>0&&z<x)
  {
    printf("OK");
  }else{
    printf("NG");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:6: error: invalid suffix "x" on integer constant
   12 |   z=(4x-y)/2;
      |      ^~
Language: C++

#include <iostream>
#include <string>
#include<stdlib.h>
#include <cassert>
using namespace std;
int main() {
	int x,y;cin>>x>>y;



	else if(y>=2*x&&y<=4*x)
		cout<<"Yes\n";
	else
		cout<<"No\n";




	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else if(y>=2*x&&y<=4*x)
      |         ^~~~
Language: C

#include<stdio.h>
 
int main(void)
{
  
  int x,y,i,a;
  
  scanf("%d%d",&x,&y);
  
  for(i=0;i<=x;i++){
      a=x-i;
      if(4*i+2*z==y){
         printf("Yes\n");
         return 0;
      }
  }
  printf("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: 'z' undeclared (first use in this function)
   12 |       if(4*i+2*z==y){
      |                ^
main.c:12:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  
  int x,y,i,a;
  
  scanf("%d%d",&x,&y);
  
  for(i=0;i<=x;i++){
      z=x-i;
      if(4*i+2*z==y){
         printf("Yes\n");
         return 0;
      }
  }
  printf("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'z' undeclared (first use in this function)
   11 |       z=x-i;
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class Crane_and_Turtle {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		int a[] = new int[2];

		for (int i = 0; i < a.length; i++)
			a[i] = input.nextInt();

		if (a[0] * 4 < a[1]) {
			System.out.println("NO");
			return;
		}

		for(int i=a[0]-1;i>0;i--)
			a[1]-=4;
		
		System.out.println(a[1]);
		if(a[1]==0||a[1]==2) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	
	}

}


Compiler output:
Main.java:3: 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() {
	double a, b, X, Y;
	cin >> X >> Y;
	a = 2 * X - Y / 2;
	b = -X + Y / 2;
	if (a == floor(a) && a>=0 && b == floor(b) && b>=0) {
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'floor' was not declared in this scope
   10 |         if (a == floor(a) && a>=0 && b == floor(b) && b>=0) {
      |                  ^~~~~
Language: C

#include <stdio>.h
int main()
{
  int a,b,c,d,e;
  a=b+c;
  scanf("%d%d",&a,&d);
  e=((2*b)+(4*c));
  if(d==e){
    printf("Yes");
  }
  
    else
    {
      printf("No");
    }
}
retrn 0;

  
  
  

Compiler output:
main.c:1:17: warning: extra tokens at end of #include directive
    1 | #include <stdio>.h
      |                 ^
main.c:1:10: fatal error: stdio: No such file or directory
    1 | #include <stdio>.h
      |          ^~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,l;
  cin>>a>>l;
  int t=a*2;
  int r=l-t;
  if(l%2!=0)
  cout<<"No";
  else
  {
     if(b>=t && r<=t)
     cout<<"Yes";
     else
     cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'b' was not declared in this scope
   13 |      if(b>=t && r<=t)
      |         ^
Language: C

#include <stdio.h>

int main()
{
   int x,e;
   scanf("%d %d",&x, &e);

   if(e%2 == 0 && (x*2 <= x*4)
      printf("Yes\n");
   else
      printf("No\n");

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:31: error: expected ')' before 'printf'
    8 |    if(e%2 == 0 && (x*2 <= x*4)
      |      ~                        ^
      |                               )
    9 |       printf("Yes\n");
      |       ~~~~~~                   
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
Language: C++

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

Compiler output:
a.cc:7:18: error: stray '\' in program
    7 |     cout<<"Yes<<"\n";
      |                  ^
a.cc:7:20: warning: missing terminating " character
    7 |     cout<<"Yes<<"\n";
      |                    ^
a.cc:7:20: error: missing terminating " character
    7 |     cout<<"Yes<<"\n";
      |                    ^~
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'n'
    7 |     cout<<"Yes<<"\n";
      |                  ^~
      |                  ;
Language: C++

std::cin >> x;
std::cin >> y;
for(int i = 0;i!=(x+1);i++){
	if(((x-i)*4 + (i*2)) == y){
      std::cout << "yes";
      return;
    }
}

Compiler output:
a.cc:1:6: error: 'cin' in namespace 'std' does not name a type
    1 | std::cin >> x;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cin >> x;
a.cc:2:6: error: 'cin' in namespace 'std' does not name a type
    2 | std::cin >> y;
      |      ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | std::cin >> y;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(int i = 0;i!=(x+1);i++){
      | ^~~
a.cc:3:15: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |               ^
a.cc:3:24: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |                        ^
Language: C++

cin >> x;
cin >> y;
for(int i = 0;i!=(x+1);i++){
	if(((x-i)*4 + (i*4)) == y){
      cout << "yes";
      return;
    }
}

Compiler output:
a.cc:1:1: error: 'cin' does not name a type
    1 | cin >> x;
      | ^~~
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> y;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(int i = 0;i!=(x+1);i++){
      | ^~~
a.cc:3:15: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |               ^
a.cc:3:24: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long     ll;
const ll big=2e6+5;

#define endl "\n";
ll a[6];
int main()
{ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll x,y,d=0;
    cin>>x>>y;
    d=2;
    if(y%2!=0){cout<<"No" return 0;}
    if(x==0&&y!=x){cout<<"No";return 0;}
  for(int i=1;i<=x;++i){ll k=d;
      k+=(4*(x-i));
    if(k==y){cout<<"Yes";return 0;}
    else d+=2;}

 cout<<"No";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before 'return'
   14 |     if(y%2!=0){cout<<"No" return 0;}
      |                          ^~~~~~~
      |                          ;
Language: C++

cin >> x;
cin >> y;
for(int i = 0;i!=(x+1);i++){
	cout << (((x-i)*4 + (i*4)) == y);
}

Compiler output:
a.cc:1:1: error: 'cin' does not name a type
    1 | cin >> x;
      | ^~~
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> y;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(int i = 0;i!=(x+1);i++){
      | ^~~
a.cc:3:15: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |               ^
a.cc:3:24: error: 'i' does not name a type
    3 | for(int i = 0;i!=(x+1);i++){
      |                        ^
Language: C++

//BISMILLAHIR RAHMANIR RAHIM
//ALLAH HU AKABR
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
int x,y;
  cin>>x>>y;
  int sum=0;
   while(sum+4<y and x--)
    {
      sum=+4;
    }
    while(x>0 and x--)
    {'
      sum+=2;
    }
  if(sum>=y)
  {
    cout<<"YES"<<endl;
  }
  else
  {
    cout<<"NO"<<endl;
  }
}
      
      
    

Compiler output:
a.cc:16:6: warning: missing terminating ' character
   16 |     {'
      |      ^
a.cc:16:6: error: missing terminating ' character
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int X, Y;
  cin >> X >> Y;
  
  for (int i=0; i<=X; i++) {
   	if (i*2 + (X-i)*4 == Y) {
      cout << "Yes"; 
      return;
    }
  }
  
  cout << "No";
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: unable to find numeric literal operator 'operator""x'
   14 |         else if(y>4x){
      |                   ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected '}' at end of input
    8 |   return 0;
      |            ^
a.cc:3:11: 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*4>=y&&x*2>=y&&y%2==0) cout<<"Yes";
  else cout<<"No";
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected '}' at end of input
    8 |   return 0;
      |            ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
	int t;
  	cin >> t;
  	while (t--) {
     	int x, y;
      	cin >> x >> y;
      	if (y%2==0 || y%4==0 || y%8==0) {
         	cout << 'Yes';
        }
      	else {
         	cout << 'No'; 
        }
    }
  	return 0;
}

Compiler output:
a.cc:11:25: warning: multi-character character constant [-Wmultichar]
   11 |                 cout << 'Yes';
      |                         ^~~~~
a.cc:14:25: warning: multi-character character constant [-Wmultichar]
   14 |                 cout << 'No';
      |                         ^~~~
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> t;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << 'Yes';
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                 cout << 'No';
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <stdio.h>
int main(void){
    int x, y;
    double c, t;
    scanf("%d%d", %x, &y);
    c = (4 * x - y) / 2.0;
    t = (y - 2 * x) / 2.0;
    if(c>=0 && t >=0 && c-(int)c==0 && t-(int)t==0){
        printf("Yes");
    }else{
        printf("No");
    }
    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'y' was not declared in this scope
    7 |         if((y&1==0)&&x*4>=y&&x*2<=y){
      |             ^
a.cc:7:22: error: 'x' was not declared in this scope
    7 |         if((y&1==0)&&x*4>=y&&x*2<=y){
      |                      ^
Language: Java

import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Sacnner sc=new Sacnner(System.in);
    int x=sc.nextInt();
    int y=sc.nextInt();
    int m=0;
    int flag=0;
    if(y<=x*2||y<=x*4)
    {
      for(int i=1;i<=x;i++)
      {
        int j=i*2;
        m=i*4;
        int h=y-j;
        int h1=y-m;
        if((h1%2==0)||(h%4==0))
        {
          flag=1;
          break;
        }
      }
    }
    if(flag==1)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} 


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

import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Sacnner sc=new Sacnner(System.in);
    int x=sc.nextInt();
    int y=sc.nextInt();
    int m=0;
    int flag=0;
    if(y<=x*2||y<=x*4)
    {
      for(int i=1;i<=x;i++)
      {
        int j=i*2;
        m=i*4;
        int h=y-j;
        int h1=y-m;
        if((h1%2==0&&h1/2==x-i)||(h%4==0&&h/4==x-i))
        {
          flag=1;
          break;
        }
      }
    }
    if(flag==1)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} 

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

#include <bits/stdc++.h>

#define ll long long
#define ld double

using namespace std;


int main()
{
	ll x, y; cin >> x >> y;
	for (int i = 0; i <= 100; i++) {
		for (int j = 0; j <= 100; j++) {
			if (2 * i + 4 * j == y && i + j == x) {
				cout << "Yes";
				return;
			}
		}
	}

	cout << "No";

}

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

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

	int n=0;
	int m=0;
	 int bird=2;
	 int tirtle=4;
	 int sum=scanner.nextInt();
	 int legs=scanner.nextInt();

	 for(int i=0;i<=sum;i++) {
		 n=bird*i;
		 m=tirtle*(sum-i);
		 if(n+m==legs) {
			 System.out.println("Yes");
			 break;
		 }
		 if(i==sum) {
			 System.out.println("No");
		 }
	 }
	 }

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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define faster ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
#define ll long long
#define ld long double
#define p0(a) cout << a << " "
#define p1(a) cout << a << endl
#define vi vector<int>
#define pii pair<int,int>
#define pb push_back
#define F first
#define S second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define REP(i,a,b) for(ll i = a; i < b; i++)
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * b) / gcd(a, b)
#define bins(v, x) binary_search(v.begin(), v.end(), x)
#define pi 2*acos(0.0)
const int INF = 1e9+1;
const int mod = 1e9+7;
const int mod1 = 998244353;
 
ll modExp(ll base, ll exp, ll mod) {
   ll res = 1;
   while (exp > 0) {
    	if (exp % 2 == 1) {
        	res= (res * base) % mod;
		}
      exp = exp >> 1;
      base = (base * base) % mod;
   }
   return res;
}

ll inverse(ll base, ll exp, ll mod) {
   return modExp(base, exp - 2, mod);
}
 
ll nCr(ll n, ll k) { 
   ll C[n + 1][k + 1]; 
   
   REP(i,0,n+1){ 
      REP(j,0,min(i,k)+1) {
         if(j==0 || j==i) {
            C[i][j] = 1;  
         } else {
            C[i][j] = C[i-1][j-1] + C[i-1][j]; 
         }
      } 
   }
   return C[n][k]; 
}

bool compare(pair<int, int>&i, pair<int, int>&j) {
    return (i.S > j.S || (i.S == j.S && i.F > j.F));
}

void readtxt() {
   freopen("input.txt","r",stdin);
   freopen("output.txt","w",stdout);
}

void test() {
   int x, y;
   cin >> x >> y;
   for(int i = 0; i <= x; i++) 
      if(i*2 + (x-i)*4 == y)
       	cout << "Yes" << endl;
  		   return 0;
  
   cout << "No" << endl;
}

int main() {
   //readtxt();
   faster;

   int t = 1;
   //cin >> t;
   while(t--)
      test();
}

Compiler output:
a.cc: In function 'void test()':
a.cc:74:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
   74 |                    return 0;
      |                           ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define faster ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
#define ll long long
#define ld long double
#define p0(a) cout << a << " "
#define p1(a) cout << a << endl
#define vi vector<int>
#define pii pair<int,int>
#define pb push_back
#define F first
#define S second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define REP(i,a,b) for(ll i = a; i < b; i++)
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * b) / gcd(a, b)
#define bins(v, x) binary_search(v.begin(), v.end(), x)
#define pi 2*acos(0.0)
const int INF = 1e9+1;
const int mod = 1e9+7;
const int mod1 = 998244353;
 
ll modExp(ll base, ll exp, ll mod) {
   ll res = 1;
   while (exp > 0) {
    	if (exp % 2 == 1) {
        	res= (res * base) % mod;
		}
      exp = exp >> 1;
      base = (base * base) % mod;
   }
   return res;
}

ll inverse(ll base, ll exp, ll mod) {
   return modExp(base, exp - 2, mod);
}
 
ll nCr(ll n, ll k) { 
   ll C[n + 1][k + 1]; 
   
   REP(i,0,n+1){ 
      REP(j,0,min(i,k)+1) {
         if(j==0 || j==i) {
            C[i][j] = 1;  
         } else {
            C[i][j] = C[i-1][j-1] + C[i-1][j]; 
         }
      } 
   }
   return C[n][k]; 
}

bool compare(pair<int, int>&i, pair<int, int>&j) {
    return (i.S > j.S || (i.S == j.S && i.F > j.F));
}

void readtxt() {
   freopen("input.txt","r",stdin);
   freopen("output.txt","w",stdout);
}

void test() {
   int x, y;
   cin >> x >> y;
   for(int i = 0; i <= x; i++) 
      if(i*2 + (x-i)*4 == y)
       	cout << "Yes" << endl;
  		   return 0;
  
   cout << "No" << endl;
}

}

int main() {
   //readtxt();
   faster;

   int t = 1;
   //cin >> t;
   while(t--)
      test();
}

Compiler output:
a.cc: In function 'void test()':
a.cc:74:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
   74 |                    return 0;
      |                           ^
a.cc: At global scope:
a.cc:79:1: error: expected declaration before '}' token
   79 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'elseif' was not declared in this scope
   13 |   elseif(y<2*x)
      |   ^~~~~~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else if(y%2==0)
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'const char [3]' and 'const char [2]' to binary 'operator<<'
   12 |     cout<"No"<<"\n";
      |          ~~~~^~~~~~
      |          |     |
      |          |     const char [2]
      |          const char [3]
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'const char [3]' and 'const char [2]' to binary 'operator<<'
   12 |     cout<"No"<<"\n";
      |          ~~~~^~~~~~
      |          |     |
      |          |     const char [2]
      |          const char [3]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'const char [3]' and 'const char [2]' to binary 'operator<<'
   12 |     cout<"No"<<"\n";
      |          ~~~~^~~~~~
      |          |     |
      |          |     const char [2]
      |          const char [3]
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define pll pair<ll,ll>

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


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

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define pll pair<ll,ll>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'x' was not declared in this scope
   13 |   cin>>x>>y;
      |        ^
a.cc:13:11: error: 'y' was not declared in this scope
   13 |   cin>>x>>y;
      |           ^
a.cc:14:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   ans=1;
      |   ^~~
      |   abs
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
      int X = scan.nextInt();
      int Y = scan.nextInt();
      Boolean ans = false;
      
      for(int i=0; i<X; i++){
        if(Y == 2*X + 4*(X-1))
          ans = true
      }
      if(ans == true)
        System.out.println("Yes");
      else
        System.out.println("No");
   }
}

Compiler output:
Main.java:11: error: ';' expected
          ans = true
                    ^
1 error
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int X,Y;
      | ^~~
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf(x*2<=Y && Y<=x*4 && Y%2==0){
      |      ^
Language: C++

#icnlude<bits/stdc++.h>
using namespace std;
int main() {
  int a,b;
  cin >> a >> b;
  for (int i = 0; i <= a; i++) {
    if (i * 2 + (a - i) * 4 == b) {
      cout << "Yes\n";
      return 0;
    }
  }
  cout << "No\n";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude<bits/stdc++.h>
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "Yes\n";
      |       ^~~~
a.cc:8:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << "No\n";
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

    while(b>=0){
      b=x-a;
      if(2a+4b==y){
          cout << "Yes";
          return 0;
      }
      a++;
    }
  	cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: unable to find numeric literal operator 'operator""a'
   11 |       if(2a+4b==y){
      |          ^~
a.cc:11:13: error: unable to find numeric literal operator 'operator""b'
   11 |       if(2a+4b==y){
      |             ^~
Language: C

#include<stdio.h>
signed main(){

int k=4,t=2,a,b,i,x,y;

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

if(x*2<=y && y<=x*4 && y%2==0){

printf("Yes\n");

}else{
printf("No\n");

}


return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected identifier before '&' token
    6 | scanf("%d %d".&x,&y);
      |               ^
Language: C

#include<stdio.h>
signed main(){

int k=4,t=2,a,b,i,x,y;

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

if(x*2<=y&&y<=x*4&&y%2==0){

printf("Yes\n");

}else{
printf("No\n");

}


return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected identifier before '&' token
    6 | scanf("%d %d".&x,&y);
      |               ^
Language: C

#include<stdio.h>
signed main(){

int k=4,t=2,a,b,i,x,y;

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

if(x*2<=y&&y<=x*4&&y%2==0){

printf("Yes\n");

}else{
printf("No\n");

}


return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: request for member 'x' in something not a structure or union
    6 | scanf("%d %d".x,y);
      |              ^
Language: C

#include<bits/stdc++.h>

using namespace std;
typedef long long int lli;

#define all(arr) arr.begin(),arr.end()
#define f first
#define s second
#define debug1(x) cout<<x<<"\n"
#define debug2(x,y) cout<<x<<" "<<y<<"\n"
#define debug3(x,y,z) cout<<x<<" "<<y<<" "<<z<<"\n"
#define nl cout<<"\n";
#define pq priority_queue
#define inf 0x3f3f3f3f
#define test cout<<"abcd\n";
#define pi pair<int,int>
#define pii pair<int,pi>
#define pb push_back
#define MOD 1000000007

template <typename T>
void input(vector<T> &arr,lli n) {
  T temp;
  for(lli i=0;i<n;i++) cin>>temp, arr.push_back(temp);
}

template <typename T>
void output(vector<T> arr) {
  for(auto x:arr) cout<<x<<" ";
  cout<<endl;
}


template <typename T>
void input_set(set<T> &arr,lli n) {
  T temp;
  for(lli i=0;i<n;i++) cin>>temp, arr.insert(temp);
}

lli mul(lli a, lli b) {
  return (a%MOD*b%MOD)%MOD;
}

lli power(lli a,lli b) {
  lli ans = 1;
  while(b > 0) {
    if(b&1)
      ans = mul(ans, a);
    a = mul(a,a);;
    b >>= 1;
  }
  return ans;
}

void solve() {
  int x, y;
  cin >> x >> y;
  if((y-2*x)>=0 and (y-2*x)%2==0 and x!=0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

int main() {
  
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);

  lli testcases=1;
  while(testcases--) {
    solve();
  }
}



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

include<stdio.h>
 
signed main(){
 
  int r,w[100],i,kame=2,turu=4,a,b,kn,tn=0;
 
  scanf("%d %d",&a,&b);
 
  kn=a;
 
  for(i=0;i==a;i++){  
w[i]=kn*kame+tn*turu;
kn-=1;
tn+=1;  
}
  
for(i=0;i==a;i++){
 
if(w[i]==b){
printf("Yes\n");
  break;
}else if(w[i]!=b){
printf("No\n");
  break;
} 
  
}
 
  
return 0;
 
 
 
 
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x,y;
    cin>>x>>y;
    if(x%2=1){
        cout<< "No" <<endl;
    }
    else if(x*4<y){
        cout<< "No" <<endl;
    }
    else{
        cout<< "Yes" <<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |     if(x%2=1){
      |        ~^~
Language: C++

#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <string>
#include <list>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b;
    int aT,aC;
    aT=2*a;
    aC=4*a;
    c = aC-AT;
    if(b>aC||c%2==1||aT>b){
        cout<<"No"<<endl;
    }else {
        cout<<"Yes"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'AT' was not declared in this scope; did you mean 'aT'?
   14 |     c = aC-AT;
      |            ^~
      |            aT
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iomanip>
# define M_PIl        3.141592653589793238462643383279502884
using namespace std;

typedef long long ll;
typedef long double ld;

int main(){
  ld a,b;
  cin >> a >> b;
  if((b==2)&&(a==1)){
    cout << "Yes";
    return 0;
  }
  if(b%2==0){
    if((a<=b/2)&&(a>=ceil(b/4))){
      cout << "Yes";
    }
    else{
      cout << "No";
    }
  }
  else{
    cout << "No";
  }
}


Compiler output:
a.cc:10:10: warning: "M_PIl" redefined
   10 | # define M_PIl        3.141592653589793238462643383279502884
      |          ^~~~~
In file included from /usr/include/c++/14/cmath:47,
                 from a.cc:3:
/usr/include/math.h:1157:10: note: this is the location of the previous definition
 1157 | # define M_PIl          3.141592653589793238462643383279502884L /* pi */
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:23:7: error: invalid operands of types 'ld' {aka 'long double'} and 'int' to binary 'operator%'
   23 |   if(b%2==0){
      |      ~^~
      |      | |
      |      | int
      |      ld {aka long double}
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iomanip>
# define M_PIl        3.141592653589793238462643383279502884
using namespace std;

typedef long long ll;
typedef long double ld;

int main(){
  ll a,b;
  cin >> a >> b;
  if(b==2)&&(a==1){
    cout << "Yes";
    return 0;
  }
  if(b%2==0){
    if((a<=b/2)&&(a>=b/4)){
      cout << "Yes";
    }
    else{
      cout << "No";
    }
  }
  else{
    cout << "No";
  }
  
}

Compiler output:
a.cc:10:10: warning: "M_PIl" redefined
   10 | # define M_PIl        3.141592653589793238462643383279502884
      |          ^~~~~
In file included from /usr/include/c++/14/cmath:47,
                 from a.cc:3:
/usr/include/math.h:1157:10: note: this is the location of the previous definition
 1157 | # define M_PIl          3.141592653589793238462643383279502884L /* pi */
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:19:13: error: expected identifier before '(' token
   19 |   if(b==2)&&(a==1){
      |             ^