criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;
public class Solution{
public static void main( String [] args){
Scanner in= new Scanner( System.in);
int c,t,a,b,e,f,m,n;
c= 2;
t= 4;
m= 0;
a= input.nextInt();
b= input.nextInt();
for (i=0;i<=a; i++){
e= c*i;
for (j= 0;  j <= a; j++){
f= t*a;
}
n= e+f;
if (n==b){
m++;
}
} if (m==0){
System.out.println ("No");
}else {
 System.out.println ("Yes");
  }
}
}




Compiler output:
Main.java:2: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
Main.java:9: error: cannot find symbol
a= input.nextInt();
   ^
  symbol:   variable input
  location: class Solution
Main.java:10: error: cannot find symbol
b= input.nextInt();
   ^
  symbol:   variable input
  location: class Solution
Main.java:11: error: cannot find symbol
for (i=0;i<=a; i++){
     ^
  symbol:   variable i
  location: class Solution
Main.java:11: error: cannot find symbol
for (i=0;i<=a; i++){
         ^
  symbol:   variable i
  location: class Solution
Main.java:11: error: cannot find symbol
for (i=0;i<=a; i++){
               ^
  symbol:   variable i
  location: class Solution
Main.java:12: error: cannot find symbol
e= c*i;
     ^
  symbol:   variable i
  location: class Solution
Main.java:13: error: cannot find symbol
for (j= 0;  j <= a; j++){
     ^
  symbol:   variable j
  location: class Solution
Main.java:13: error: cannot find symbol
for (j= 0;  j <= a; j++){
            ^
  symbol:   variable j
  location: class Solution
Main.java:13: error: cannot find symbol
for (j= 0;  j <= a; j++){
                    ^
  symbol:   variable j
  location: class Solution
10 errors
Language: Java

import java.util.Scanner;
public class Solution{
public static void main( String [] args){
Scanner in= new Scanner( System.in);
int c,t,a,b,e,f,m,n;
c= 2;
t= 4;
m= 0;
a= input.nextInt();
b= input.nextInt();
for (i=0;i<=a; i++){
e= c*i;
for (j= 0;  j <= a; j++){
f= t*a;
}
n= e+f;
if (n==b){
m++;
}
} if (m==0){
System.out.println ("No");
else {
 System.out.println ("Yes");
}
}




Compiler output:
Main.java:22: error: 'else' without 'if'
else {
^
Main.java:25: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

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

int main(){
  int x,y;
  bool a = false;
  cin >> x >> y;
 rep(i,100){
  if(i == (y-2*x)/s) a = true;
 }
  if(a){
    cout << "Yes" << endl;
  }
  else cout << "No" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 's' was not declared in this scope
   12 |   if(i == (y-2*x)/s) a = true;
      |                   ^
Language: C

#include<stdio.h>

int main(void){
   int x,y;

   scanf("%d",&x);
   scanf("%d",&y);
   
   if(y<*2x||x*4<y){
      printf("NO\n");
   } else if(y%2==1) {
      printf("NO\n");
   } else {
      printf("YES\n");
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:10: error: invalid suffix "x" on integer constant
    9 |    if(y<*2x||x*4<y){
      |          ^~
Language: C++

	int x, y;
	bool yes = false;
	scanf_s("%d %d", &x, &y);
	for (int i = 0; i <= x; i++) {
		if ((2 * i + 4 * (x - i)) == y) {
			yes = true;
		}
	}
	if (yes) printf("yes");
	else printf("no");

Compiler output:
a.cc:3:16: error: expected constructor, destructor, or type conversion before '(' token
    3 |         scanf_s("%d %d", &x, &y);
      |                ^
a.cc:4:9: error: expected unqualified-id before 'for'
    4 |         for (int i = 0; i <= x; i++) {
      |         ^~~
a.cc:4:25: error: 'i' does not name a type
    4 |         for (int i = 0; i <= x; i++) {
      |                         ^
a.cc:4:33: error: 'i' does not name a type
    4 |         for (int i = 0; i <= x; i++) {
      |                                 ^
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if (yes) printf("yes");
      |         ^~
a.cc:10:9: error: expected unqualified-id before 'else'
   10 |         else printf("no");
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define all(x) x.begin(),x.end()
#define LOL cout<<'\n';
#define MOD 1000000007
#define sz(x) ((int)x.size())
#define INF LONG_LONG_MAX
#define NINF LONG_LONG_MIN

void solve(){
  int x,y; cin>>x>>y;
  int s=2*x;
  if(y<s){cout<<"No";LOL return;}
  for(int i=s ; i<=4*x ; i+=2){
    if(y==i){
      cout<<"Yes";LOL return
    }
  }
  cout<<"No";LOL
}

signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:23:5: error: expected primary-expression before '}' token
   23 |     }
      |     ^
a.cc:22:29: error: expected ';' before '}' token
   22 |       cout<<"Yes";LOL return
      |                             ^
      |                             ;
   23 |     }
      |     ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:16: error: 'j' undeclared (first use in this function)
   12 |       if(i==0&&j==0){
      |                ^
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(){
    int x, y;
    
    scanf("%d %d",&x,&y);
    if(y%2==1){
      printf("No");
    }else if(y>=2*X && y<=4*x){
      printf("Yes");
    }else{
      printf("No");
    }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:19: error: 'X' undeclared (first use in this function)
    8 |     }else if(y>=2*X && y<=4*x){
      |                   ^
main.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int x, y;
  
  cin >> x >> y;
  int total = 0;
  bool isok = "No";
  for (int i=0; i<x; i++){
  	total = 2 * (x- i) + 4 * (i);
    if(total == y){
      isok = "Yes";
      break;
    }
    std::cout << isok << std::endl;
  }
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
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;
  int total = 0;
  bool isok = "No";
  for (int i=0; i<x; i++){
  	total = 2 * (x- i) + 4 * (i);
    if(total == y){
      isok = "Yes;;
      break;
    }
    std::cout << isok << std::endl;
  }
  
  

Compiler output:
a.cc:13:14: warning: missing terminating " character
   13 |       isok = "Yes;;
      |              ^
a.cc:13:14: error: missing terminating " character
   13 |       isok = "Yes;;
      |              ^~~~~~
a.cc: In function 'int main()':
a.cc:14:7: error: expected primary-expression before 'break'
   14 |       break;
      |       ^~~~~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int x,y;
	scanf("%d %d"&x,&y);
	if(y%2==0&&y<=x*4&&x*2<=y){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:22: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d %d"&x,&y);
      |               ~~~~~~~^
      |               |
      |               char *
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int x,y;
	scanf("%d%d"&x,&y);
	if(y%2==0&&y<=x*4&&x*2<=y){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:21: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d%d"&x,&y);
      |               ~~~~~~^
      |               |
      |               char *
Language: C++

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

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

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

#include <iostream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <queue>
#include <deque>
#include <list>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <fstream>
#include <functional>
#include <bitset>

using namespace std;


#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repr(i,n) for(int (i)=(n); (i)>=(0); (i)--)
#define SIZE(x) ((int)(x).size())
#define GCD(a, b) int gcd(int a,int b){return b?gcd(b,a%b):a;}
#define QP(a, b) int qp(int a,ll b){int ans=1;do{if(b&1)ans=1ll*ans*a%mo;a=1ll*a*a%mo;}while(b>>=1);return ans;}
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
#define all(v) (v).begin(),(v).end()


template<typename T> void chmax(T &a, T b) {a = max(a, b);}
template<typename T> void chmin(T &a, T b) {a = min(a, b);}
template<typename T> void chadd(T &a, T b) {a = a + b;}
template<typename A, size_t N, typename T>
void FILL(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

typedef vector<int, int> vint;
typedef pair<int,int> pint;
typedef vector<pint>vpint;
typedef long long ll;

int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
const ll INF = 1LL << 60;
const ll MOD = 1000000007LL;


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x, y; cin >> x >> y;
    else if(y%2 == 0 && x*2 <= y && y<= x*4) cout << "Yes";
    else cout << "No";
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:5: error: 'else' without a previous 'if'
   61 |     else if(y%2 == 0 && x*2 <= y && y<= x*4) cout << "Yes";
      |     ^~~~
Language: C

#include<stdio.h>

int main(void) {
  int X, Y;
  scanf("%d", &X);
  scanf("%d", &Y);
  int a, b;
  int sum;

  for(a = 0; a <= X; a++){
    b = X - a;
    sum = 2 * a + 4 * b;

    if(sum == Y){
    printf("YES\n");
    return 0;
  }
  printf("No");
  return 0;

}

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

#include<stdio.h>

int main(){

  int X,Y;
  scanf("%d %d",&X,&Y);
  
  #include<stdio.h>

int main(){
	int x,y;
	scanf("%d %d",&x,&y);
	
	int b = y/2 - x;
	int a = 2*x - y/2;
	
	if(a < 0 || b < 0 || y%2 == 1)
		printf("No\n");
	else
		printf("Yes\n");  
}

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else (y<x*2||y>x*4||y%2==1){;
      |     ^~~~
a.cc:12:32: error: expected ';' before '{' token
   12 |     else (y<x*2||y>x*4||y%2==1){;
      |                                ^
      |                                ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: expected ';' before '{' token
   12 |     else (y<x*2||y>x*4||y%2==1){
      |                                ^
      |                                ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: expected ';' before '{' token
   12 |     else (y<x*2||y>x*4||1==y%2){
      |                                ^
      |                                ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |     if (y<x*2||y>x*4||1=y%2){
      |         ~~~~~~~~~~~~^~~
a.cc:12:23: error: lvalue required as left operand of assignment
   12 |     else (y<x*2||y>x*4||1=y%2){
      |           ~~~~~~~~~~~~^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |     if (y<x*2||y>x*4||1=y%2){
      |         ~~~~~~~~~~~~^~~
a.cc:12:23: error: lvalue required as left operand of assignment
   12 |     if (!y<x*2||!y>x*4||!1=y%2){
      |         ~~~~~~~~~~~~~~^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |     if (y<x*2||y>x*4||1=y%2){
      |         ~~~~~~~~~~~~^~~
a.cc:10:21: error: expected ';' before '}' token
   10 |         cout << "No"
      |                     ^
      |                     ;
   11 |     }
      |     ~                
a.cc:12:23: error: lvalue required as left operand of assignment
   12 |     if (!y<x*2||!y>x*4||!1=y%2){
      |         ~~~~~~~~~~~~~~^~~~
a.cc:13:22: error: expected ';' before '}' token
   13 |         cout << "Yes"
      |                      ^
      |                      ;
   14 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before '}' token
   10 |         cout << "No"
      |                     ^
      |                     ;
   11 |     }
      |     ~                
a.cc:13:22: error: expected ';' before '}' token
   13 |         cout << "Yes"
      |                      ^
      |                      ;
   14 |     }
      |     ~
Language: C

X, Y = map(int, input().split())
ans = 'No'
for a in range(X + 1):
b = X - a
if 2 * a + 4 * b == Y:
ans = 'Yes'
print(ans)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | X, Y = map(int, input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'X' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'Y' [-Wimplicit-int]
    1 | X, Y = map(int, input().split())
      |    ^
main.c:1:8: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | X, Y = map(int, input().split())
      |        ^~~
main.c:1:12: error: expected expression before 'int'
    1 | X, Y = map(int, input().split())
      |            ^~~
main.c:2:1: error: expected ',' or ';' before 'ans'
    2 | ans = 'No'
      | ^~~
main.c:2:7: warning: multi-character character constant [-Wmultichar]
    2 | ans = 'No'
      |       ^~~~
main.c:6:7: warning: multi-character character constant [-Wmultichar]
    6 | ans = 'Yes'
      |       ^~~~~
Language: C

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


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

#include<stdio.h>
int main(){
  int x,y;
  scanf("%d%d",&x,&y);
  
  for (int c=0;c <= x;c++){
    int t =x-c;
    int asi = c*2+t*4;
    if(asi==y){
      printf("Yes");
      return 0;
    }
    printf("No");
    retrun 0;
  }
  

Compiler output:
main.c: In function 'main':
main.c:14:5: error: 'retrun' undeclared (first use in this function)
   14 |     retrun 0;
      |     ^~~~~~
main.c:14:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:11: error: expected ';' before numeric constant
   14 |     retrun 0;
      |           ^~
      |           ;
main.c:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int x,y;
  cin>>x>>y;
  char ans[4]="No";
  for(int a=1;a<=x;a++){
    int b=a-x;
    if(y>=2*a && y<=4*b)
 		ans="Yes";
  }
  cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: invalid array assignment
   11 |                 ans="Yes";
      |                 ~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int x,y;
  cin>>x>>y;
  char ans[4]="No";
  for(int a=1;a<=x;a++){
    int b=a-x;
    if(2*a<=y<=4*b)
 		ans="Yes";
  }
  cout<<ans;
  return 0;
}
    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: invalid array assignment
   11 |                 ans="Yes";
      |                 ~~~^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:12: error: 'flag' undeclared (first use in this function)
   14 |         if(flag>0) printf("Yes\n");
      |            ^~~~
main.c:14:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

 return 0;
}

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

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

int main() {
  int X ,Y ; 
  cin >> X >> Y ;
  
  int a  ; //a=turu , b = kame
  
  for (a = 0 ; a < X ; a++){
    if ( Y == 2*a + 4(X-a) ){
      cout << "Yes" << endl ; 
    }
  }
  
  cout << "No" << endl ; 
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expression cannot be used as a function
   11 |     if ( Y == 2*a + 4(X-a) ){
      |                     ~^~~~~
Language: C++

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

  for(int i=0;i<=x;i++){
    if(2*i+4*(x-i)==y){
      cout << "Yes\n";
      return 0;
    }
  }

  cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> x >> y;
      |   ^~~
      |   std::cin
In file included 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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << "Yes\n";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << "No\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int X = sc.nextInt();
    int Y = sc.nextInt();
    int d = Y - (2 * X);
    
    if(d >= 0 && d % 2 == 0 && (d / 2) <= x)
    {
      System.out.println("Yes");
    }
      else
      {
      System.out.println("No");
      }
  }
}


Compiler output:
Main.java:12: error: cannot find symbol
    if(d >= 0 && d % 2 == 0 && (d / 2) <= x)
                                          ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int X = sc.nextInt();
    int Y = sc.nextInt();
    int d = Y - (2 * x);
    
    if(d >= 0 && d % 2 == 0 && (d / 2) <= 0)
    {
      System.out.println("Yes");
    }
      else
      {
      System.out.println("No");
      }
  }
}


Compiler output:
Main.java:10: error: cannot find symbol
    int d = Y - (2 * x);
                     ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
 
int main() {
    int x,y;
    cin>>x>>y;
    rep(i,101){
        rep(j,101){
            if (i+j==x && 2*i+4*j==y){
                cout<<"Yes"<<endl;
                return 0;
            }
        }
    }
    cout<<"No"<<endl;
}

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

#include <iostream>
usig namespace std;
int main(void){
  int X,Y;
  cin >> X >> Y;
  
  if(X * 2 <= Y && Y <= X * 4 && Y % 2 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}


Compiler output:
a.cc:2:1: error: 'usig' does not name a type
    2 | usig namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> X >> Y;
      |   ^~~
      |   std::cin
In file included 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:7:46: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(X * 2 <= Y && Y <= X * 4 && Y % 2 == 0) cout << "Yes" << endl;
      |                                              ^~~~
      |                                              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:63: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(X * 2 <= Y && Y <= X * 4 && Y % 2 == 0) cout << "Yes" << endl;
      |                                                               ^~~~
      |                                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout << "No" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '<' token
    9 |   if (y%2 && y=<x*2) cout<<"No";
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=2*x;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b=4*x;
      |   ^
a.cc: At global scope:
a.cc:18:5: error: redefinition of 'int main()'
   18 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:25:17: error: expected '}' at end of input
   25 |     cout<<"Yes";
      |                 ^
a.cc:19:1: note: to match this '{'
   19 | {
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=2*x;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b=4*x;
      |   ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int a,b,c,d,e,f;
  cin >> a >> b;
  c = b/4;
  d = b%4;
  e = d/2;
  if(b%2!=0){
    cout << "No";
  }
  else{
	if(c+e<=a)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}
#include<iostream>
using namespace std;

int main(){
  int a,b,c,d,e,f;
  cin >> a >> b;
  c = b/4;
  d = b%4;
  e = d/2;
  if(b%2!=0){
    cout << "No";
  }
  else{
	if(c+e==a)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}

Compiler output:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>

using namespace std;

int main()
{
  int x,y; cin>>x>>y;
  
  if(y/x == 2 or y/x==4) cout<<"Yes<<endl;
    else cout<<"No"<<endl;
}


Compiler output:
a.cc:9:32: warning: missing terminating " character
    9 |   if(y/x == 2 or y/x==4) cout<<"Yes<<endl;
      |                                ^
a.cc:9:32: error: missing terminating " character
    9 |   if(y/x == 2 or y/x==4) cout<<"Yes<<endl;
      |                                ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else cout<<"No"<<endl;
      |     ^~~~
Language: C++



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

    }
    else {
        cout<<"Yes"<<endl;

    }



}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected primary-expression before '||' token
    9 |     if(y%2!=0 || y<2*x; || y>4*x){
      |                         ^~
Language: C++

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

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

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

int main(){
  int x,y;
  cin>>x>>y;
  
  if(y%2!=0)
    cout<<"No"<<endl; //足の数が奇数
  
  if(y<x*2)
    cout<<"No"<<endl; //動物が足の本数より多い

  if(x*4<y)
    cout<<"No"<<endl; //足の本数が動物の数より多い
  
  else cout<<"Yes"<<endl;
}#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(n);i++)

int main(){
  int x,y;
  cin>>x>>y;
  
  if(y%2!=0)
    cout<<"No"<<endl; //足の数が奇数
  
  if(y<x*2)
    cout<<"No"<<endl; //動物が足の本数より多い

  if(x*4<y)
    cout<<"No"<<endl; //足の本数が動物の数より多い
  
  else cout<<"Yes"<<endl;
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include<bits/stdc++.h>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:25:5: error: redefinition of 'int main()'
   25 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
Language: C

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

using ll = long long;

int main(){
  int x,y;
  cin >> x >> y;
  bool ans = false;
  for(int i=0;i<=x;i++){
    if((4*x-2*i) == y){
      ans=true;
      break;
    }
  }

  cout << (ans?"Yes":"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 endl '\n';
using namespace std;

long long binpow(long long a, long long b)
{
    long long res = 1;
    while (b > 0)
    {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}
long long  gcd(long long a,long long b)
{
    if(b==0) return a;
    else return gcd(b,a%b);
}


int main()
{
    int a,b;
  	cin>>a>>b;
  	int result = pow(2,a);
  	if(result==b){
      	cout<<"YES<<endl;
    }
  else
  {
    cout<<"NO"<<endl;
  }
    return 0;
}


Compiler output:
a.cc:30:15: warning: missing terminating " character
   30 |         cout<<"YES<<endl;
      |               ^
a.cc:30:15: error: missing terminating " character
   30 |         cout<<"YES<<endl;
      |               ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:31:5: error: expected primary-expression before '}' token
   31 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long ll;
typedef pair<int,int> PII;
typedef double db;
//mt19937 mrand(random_device{}()); 
const ll mod=1000000007;
//int rnd(int x) { return mrand() % x;}
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
// head

int main() {
	int n,m;
	scanf("%d%d",&n,&m);
	int a=2*n-m/2;
	b=n-a;
	if( m<2*n || m>4*n ||m%2!=0){
		printf("NO");
	}else if(b>=0){
		printf("YES");
	}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'b' was not declared in this scope
   26 |         b=n-a;
      |         ^
Language: C++

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

int main(){
    int x, y;
    cin >> x >> y;
    bool flag = false;
    for(int i = 0; i < x; i++){
        int legs = 2*i + 4(x-i);
        if(legs == y)flag = true;
    }
    string ans = "No";
    if(flag)ans = "Yes";
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expression cannot be used as a function
    9 |         int legs = 2*i + 4(x-i);
      |                          ~^~~~~
Language: C++

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

int main() {
  int x,y;
  cin>>x>>y;
    
    for(int i =0;i<=0;++i){
      int j =x-i;
      int leg =i*2+j*4;
        if(leg==y){
          return(0);
            cout<<"yes"<<endl;
        }
    }
  cout<<"no"<<endl;
  return(0);
}
}


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

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

int main() {
  int x,y;
  cin>>x>>y;
    
    for(int i =0;i<=0;++i){
      int j =x-i;
      int leg =i*2+j*4;
        if(leg==y){
          return(0)
            cout<<"yes"<<endl;
        }
    }
  cout<<"no"<<endl;
  
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'cout'
   12 |           return(0)
      |                    ^
      |                    ;
   13 |             cout<<"yes"<<endl;
      |             ~~~~    
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main() {
  int x,y;
  cin>>x>>y;
    
    for(int i =0;i<=0;++i){
      int j =x-i;
      int leg =i*2+j*4;
        if(leg=y){
          return(0)
            cout<<"yes"<<endl;
        }
    }
  cout<<"no"<<endl;
  
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'cout'
   12 |           return(0)
      |                    ^
      |                    ;
   13 |             cout<<"yes"<<endl;
      |             ~~~~    
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
long long int mod = (long long int)1000000007;
using namespace std;

void solve()
{
    ll i,j,k,n,m;
    std::cout.precision(10);
    int yes=0;
  cin>>n>>m;
  if(m%2==0 && (2*n<=m && 4*n>=m)
     {
      cout<<"Yes"; 
     }
     else
     {
      	cout<<"No" ;
     }
}

int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
    int i,j,k;
    int t;
    std::cout.precision(10);
    t=1;
    while(t--)
    {
        solve();
        cout<<"\n";
    }
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:13:34: error: expected ')' before '{' token
   13 |   if(m%2==0 && (2*n<=m && 4*n>=m)
      |     ~                            ^
      |                                  )
   14 |      {
      |      ~                            
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:11: error: expected '(' before '{' token
   14 |         if{flg==1){
      |           ^
      |           (
main.c:14:18: error: expected statement before ')' token
   14 |         if{flg==1){
      |                  ^
main.c:17:9: error: expected '}' before 'else'
   17 |         else{
      |         ^~~~
Language: C++

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

int main(){
  int x; //動物
  int y; //足
  cin >> x >> y;
  int count = 0;
  
  for ( int i = 0; i <= x; i++){
    if ( i*2+(x - i)*4 == y ){
      cout << "Yes" << endl;
      break;
    } else {
      count++
    }
    
    if (count == 6){
      cout << "No" << endl;
      break;
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before '}' token
   15 |       count++
      |              ^
      |              ;
   16 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected '}' at end of input
   13 |         cout<<"Yes"<<endl;
      |                           ^
a.cc:12:5: note: to match this '{'
   12 |     {
      |     ^
a.cc:13:27: error: expected '}' at end of input
   13 |         cout<<"Yes"<<endl;
      |                           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define IO_OP std::ios::sync_with_stdio(0); std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_back
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << " is " << x << endl

using namespace std;

typedef long long ll;
typedef pair<int, int> pi;
typedef V<int> vi;

const int INF = 1e9 + 7;

signed main()
{
	IO_OP;
	
	int x, y;
	cin >> x >> y;
	if(y & 1) cout << "No" << endl;
	else {
		y /= 2;
		int b = y - x;
		int a = x - b;
		if(a >= 0 && by >= 0) cout << "Yes" << endl;
		else cout << "No" << endl;
	}
	
}





Compiler output:
a.cc: In function 'int main()':
a.cc:31:30: error: 'by' was not declared in this scope; did you mean 'b'?
   31 |                 if(a >= 0 && by >= 0) cout << "Yes" << endl;
      |                              ^~
      |                              b
Language: C++

#include<bits/stdc++.h>
using namespace std ; 
typedef long long ll;
#define forn(i,e) for(ll i=0; i<e; i++)
#define fors(i,e) for(ll i=s; i<e; i++)
#define endl "\n"
#define zoom ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define PB push_back 
#define MP make_pair
#define F first
#define S second


int main()
{


zoom;

ll x , y ; cin >> x >> y ; 

ll temp = (4*x) - y ; 

if(temp >=0 && temp % 2 ==0)
{
	if(temp/2 > x)
		cout << "No "
	else
	cout << "Yes " ;

} 
else 
cout << "No " ; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:30: error: expected ';' before 'else'
   27 |                 cout << "No "
      |                              ^
      |                              ;
   28 |         else
      |         ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |     str ans ="No";
      |     ^~~
      |     std
a.cc:9:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |             ans = "Yes";
      |             ^~~
      |             abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans;
      |             ^~~
      |             abs
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: unable to find numeric literal operator 'operator""x'
    8 |         if(x < y&&y%2==0&&4x<y)
      |                           ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before string constant
    9 |         else if(q*2>w) cout"No";
      |                            ^~~~
      |                            ;
Language: Java

#include <bits/stdc++.h>

//#define int long long

using namespace std;

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int x, y;
    cin >> x >> y;
    if (2*x > y) {
        cout << "No\n";
        exit(0);
    }
    y -= 2*x;
    if (y%2==0 && y <= x) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
}
/*

 */


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:8: error: not a statement
    ios_base::sync_with_stdio(0);
    ^
Main.java:11: error: not a statement
    cin >> x >> y;
             ^
Main.java:13: error: not a statement
        cout << "No\n";
             ^
Main.java:18: error: not a statement
        cout << "Yes\n";
             ^
Main.java:20: error: not a statement
        cout << "No\n";
             ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
signed main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: ';' expected
    ios_base::sync_with_stdio(0);
                             ^
9 errors
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:52: error: expected ';' before '}' token
   10 |         if(x*2<=y && y<=x*4 && y%2==0){ ans = "Yes"}
      |                                                    ^
      |                                                    ;
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
    9 |         strin ans = "No";
      |         ^~~~~
      |         stdin
a.cc:10:41: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         if(x*2<=y && y<=x*4 && y%2==0){ ans = "Yes"}
      |                                         ^~~
      |                                         abs
a.cc:11:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |         cout << ans << endl;
      |                 ^~~
      |                 abs
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();
      	boolean ans = false;
      	for(int i=0;i<X+1;i++){
          for(int j=X-i;j>=0;j++){
            if( i*2 + j*4 == Y ){
              ans = true;
            }
          }
        }
          System.out.println(ans);
        }
	}
}
  /*
        if( (int)s.charAt(0)-48 >= 0 && (int)s.charAt(0)-48 <=48 ){
*/

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std; 

int main () {
	int A, L; cin >> A >> L;

	if (L % 2 == 1) {
		A -= 1
		L -= 3
	}
	L -= A*2;

	if (L > 0) {
		cout << "No";
	} else {
		cout << "Yes";
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before 'L'
    9 |                 A -= 1
      |                       ^
      |                       ;
   10 |                 L -= 3
      |                 ~
Language: C++

int main() {
	int X,Y;
	cin >> X >> Y;
	string ans = "No";
	for (int a = 0; a <= X; a++) {
		int b = X - a;
		//int h = ((2*a) + (4*b));
		if (((2*a) + (4*b)) == Y) {
			ans = "Yes";
			break; 
		}
	}
	cout <<ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> X >> Y;
      |         ^~~
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string ans = "No";
      |         ^~~~~~
a.cc:9:25: error: 'ans' was not declared in this scope
    9 |                         ans = "Yes";
      |                         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout <<ans << endl;
      |         ^~~~
a.cc:13:16: error: 'ans' was not declared in this scope
   13 |         cout <<ans << endl;
      |                ^~~
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |         cout <<ans << endl;
      |                       ^~~~
Language: C++

int main() {
	int x,y;
	cin >> x >> y;
	string ans = "No";
	for (int a = 0; a < x; a++) {
		int b = x - a;
		//int h = ((2*a) + (4*b));
		if (((2*a) + (4*b)) == y) {
			ans = "Yes";
			break; 
		}
	}
	cout <<ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> x >> y;
      |         ^~~
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string ans = "No";
      |         ^~~~~~
a.cc:9:25: error: 'ans' was not declared in this scope
    9 |                         ans = "Yes";
      |                         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout <<ans << endl;
      |         ^~~~
a.cc:13:16: error: 'ans' was not declared in this scope
   13 |         cout <<ans << endl;
      |                ^~~
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |         cout <<ans << endl;
      |                       ^~~~
Language: Java

import java.util.Scanner;

public class CraneAndTurtle {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int x=scan.nextInt();
		int y=scan.nextInt();
		if(x==1)System.out.println("Yes");
		else {
			if(y>=(2*x) && y<=(4*x) && y%2==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