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

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main(){
      | ~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define mod 1000000007
using namespace std;
ll binpow(ll x,ll y)/* (x^y)%p in O(log y) */{ll res=1;while (y > 0){if(y&1)res=(res*x);y = y>>1;x=(x*x);}return res;}
ll binpowmod(ll x,ll y,ll p)/* (x^y)%p in O(log y) */{ll res=1;x=x%p;while (y > 0){if(y&1)res=(res*x)%p;y = y>>1;x=(x*x)%p;}return res;}
ll mod_inverse(ll n,ll p)/* Returns n^(-1) mod p */{return binpowmod(n,p-2,p);}
ull gcd(ull x,ull y)
{
    if(y==0)
        return x;
    return gcd(y,x%y);
}
bool comp(pair<int,int> x,pair<int,int> y)
{
    if(x.first<y.first)
        return true;
    else if(x.first==y.first)
        return x.second>y.second;
    else
        return false;
}
bool comp_pairs_by_s(pair<ll,ll> &x ,pair<ll,ll> &y)
{
    return x.second<y.second;
}
bool isPowerOfTwo (ll x)  
{  
    /* First x in the below expression is for the case when x is 0 */
    return x && (!(x&(x-1)));  
}

class cmp      //comparator for priority_queue 
{               //declaration: priority_queue<int,vector<int>,cmp>
public:         
    bool operator()(pair<int,int> A,pair<int,int> B)
    {
        if(abs(A.first-A.second)==abs(B.first-B.second))
            return A.first>B.first;
        return abs(A.first-A.second)<abs(B.first-B.second);
    }
};
// int prime[100005]={0};
// void sieve(void)
// {
//  int i,j;
//  for(i=0;i<100005;i++)
//         prime[i]=1;
//  prime[0]=0,prime[1]=0;
//  for(i=2;i<=sqrt(100005);i++){
//      if(prime[i]){
//          for(j=i*i;j<100005;j+=i){
//              prime[j]=0;
//          }
//      }
//  }
    
// }
void swap(int &x,int &y){
    int temp=x;
    x=y;
    y=temp;
}

void solve()
{   
    int x,y;
    cin>>x>>y;
    if(m-2*n>=0 && 3*n-m>=0 && (m-2*n)%2==0 && (3*n-m)%2==0)
        cout<<"Yes";
    else
        cout<<"No";
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:70:8: error: 'm' was not declared in this scope
   70 |     if(m-2*n>=0 && 3*n-m>=0 && (m-2*n)%2==0 && (3*n-m)%2==0)
      |        ^
a.cc:70:12: error: 'n' was not declared in this scope
   70 |     if(m-2*n>=0 && 3*n-m>=0 && (m-2*n)%2==0 && (3*n-m)%2==0)
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x;
  int y;
  cin>>x;
  cin>>y;
  int a,b;
  for(int i=0;i<x;i++){
    if(a%1==0 and b%1==0){
       cout<<yes;
    }
  }
  cout<<no;
}






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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a>=0&&b>=0&&&a+b==n&&a*4+b*2==m)
      |                    ~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define watch(x) cout << (#x) << " is " << (x) << endl
#define f(t) for(ll i =0;i<t;i++)
#define ll long long int
#define ul unsigned long int
#define ld long double
#define umpi unordered_map<int,int> 
#define umpl unordered_map<ll,ll> 
#define vi vector<int>
#define vl vector<ll>
#define vvl vector<vl>
#define fill(a,p) memset(a,p,sizeof(a))
#define pb push_back
#define mod 1000000007
#define N 100005
#define all(a) a.begin(),a.end()
#define point pair<ll,ll>
#define endl "\n"

const int inf = 1000000007;
const ll linf = 1ll * inf * inf;
const ll MAXIMUM =2005;

inline ll mul(ll a, ll b){ return (a * 1ll * b) % mod; }
inline ll sub(ll a, ll b){ ll c = a - b; if(c < 0) c += mod; return c; }
inline ll add(ll a, ll b){ ll c = a + b; if(c >= mod) c -= mod; return c; }
inline ll max(ll a, ll b){return a>b?a:b;}
inline ll min(ll a, ll b){return a<b?a:b;}
inline ll ceil(ll a,ll b){if(a%b==0)return a/b;else return a/b+1;}
inline ll mo(ll a,ll b){if(b<0){b=abs(b)%mod;b=a-b;return (b<0)?b+mod:b;}else{return (a+b)%mod;}}
inline ll pow(ll a,ll b){if(b==0){return 1;}else{if(b%2==0){ll temp=pow(a,b/2);return temp*temp;}
else{return a*pow(a,b-1);}}}

struct hash_pair { 
    template <class T1, class T2> 
    size_t operator()(const pair<T1, T2>& p) const
    { 
        auto hash1 = hash<T1>{}(p.first); 
        auto hash2 = hash<T2>{}(p.second); 
        return hash1 ^ hash2; 
    } 
};

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

Compiler output:
a.cc: In function 'int main()':
a.cc:51:16: error: expected primary-expression before 'if'
   51 |             if(if(i+j)==x && (2*i+4*j)==y){
      |                ^~
a.cc:51:16: error: expected ')' before 'if'
   51 |             if(if(i+j)==x && (2*i+4*j)==y){
      |               ~^~
      |                )
Language: C++

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

int main() {
  int X, Y;
  cin >> X >> Y;
  for (i = 0; i < X + 1; i++) {
    int Z;
    int counter = 1;
    Z = i * 4 + (X - i) * 2;
    if (Z == Y)
      counter *= 0;
    else if (Z != Y)
      counter *= 1;
  }
  if (counter == 0)
    cout << "Yes" << endl;
  else if (counter != 0)
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = 0; i < X + 1; i++) {
      |        ^
a.cc:16:7: error: 'counter' was not declared in this scope
   16 |   if (counter == 0)
      |       ^~~~~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
        	System.out.printlnl("YES");
        	          ^
  symbol:   method printlnl(String)
  location: variable out of type PrintStream
1 error
Language: C++

int main() {

    int x,y,c;
    bool out = false;
    cin >> x >> y;

    for(int t = 0; t <= x ; t++){
        if(2*(x+t) == y){
            out = true;
        }
    }
    if(out){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> x >> y;
      |     ^~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'out'?
   13 |         cout << "Yes";
      |         ^~~~
      |         out
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'out'?
   16 |         cout << "No";
      |         ^~~~
      |         out
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a>=0&&b>=0&&&a+b==n&a*4+b*2==m)
      |                    ~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: 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:5:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         if(2*X<=Y&&4*X>=Y)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:5:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         if(2*X<=Y&&4*X>=Y)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:6:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         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: Java

import java.util.*;
import java.lang.*;
class Main
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int legs=sc.nextInt();
    double val=((4*n)-legs)/2;
    int ans=Math.floor(val);
    if(val>0 && val-ans==0)
      System.out.println("Yes");
    else
      System.out.println("No");
    
  }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
    int ans=Math.floor(val);
                      ^
1 error
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'in' was not declared in this scope; did you mean 'yn'?
    6 |         in x,y;
      |         ^~
      |         yn
a.cc:7:16: error: 'x' was not declared in this scope
    7 |         cin >> x >> y;
      |                ^
a.cc:7:21: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |         cin >> x >> y;
      |                     ^
      |                     yn
Language: C++

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

int main() {
  float x, y;
  string s;
  cin >> x >> y;
  
  s = "Yes";
  if(2*x - y/2 < 0 || y/2 - x < 0 ||y % 2 == 1){
  	s = "No";
  }
  cout << s << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   11 |   if(2*x - y/2 < 0 || y/2 - x < 0 ||y % 2 == 1){
      |                                     ~ ^ ~
      |                                     |   |
      |                                     |   int
      |                                     float
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected ')' before 'printf'
    5 | if((y>(x*4))||(y<(x*2)) printf("No");
      |   ~                    ^~~~~~~
      |                        )
main.c:8:1: error: expected expression before '}' token
    8 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'if'
    9 |   y=y/2
      |        ^
      |        ;
   10 |  if(y<=x)
      |  ~~     
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
Language: C++

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

int main(){
    int x, y;
    cin >> x >> y;
    if (y > 4 * x){
        cout << "No" << endl;
    }
    rep(i + 1,x){
        if(4 * x - y == 2 * i ){
            cout << "Yes" << endl;
        }
    }
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before '+' token
   11 |     rep(i + 1,x){
      |           ^
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:11:11: error: lvalue required as left operand of assignment
   11 |     rep(i + 1,x){
      |           ^~~
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:3:47: error: expected ')' before ';' token
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                       ~                       ^
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i + 1,x){
      |     ^~~
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     rep(i + 1,x){
      |         ^
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:11:13: error: lvalue required as increment operand
   11 |     rep(i + 1,x){
      |             ^
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'cout'
   11 |         if((4*x>=y && 2*x<=y)
      |                              ^
      |                              ;
   12 |         cout<<"Yes\n";
      |         ~~~~                  
a.cc:13:9: error: expected primary-expression before 'else'
   13 |         else
      |         ^~~~
a.cc:12:23: error: expected ')' before 'else'
   12 |         cout<<"Yes\n";
      |                       ^
      |                       )
   13 |         else
      |         ~~~~           
a.cc:11:11: note: to match this '('
   11 |         if((4*x>=y && 2*x<=y)
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'if'
    8 |   Z=(Y-2*X)/2
      |              ^
      |              ;
    9 |  if((Y-2*X)%2==0 && Z>=0 && Z<=X){cout<<"Yes"<<endl;}
      |  ~~           
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else{cout<<"No"<<endl;}
      | ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
   int X,Y;
   cin >> X >> Y;
   if((Y/X)>4) cout << "No" ;
   else if(Y/2==X || Y/4==X) cout << "Yes";
   else if(Y%6==2 && X=(Y/6)+1) cout << "Yes";
   else if(Y%6==4 && X=(Y/6)+1) cout << "Yes";
   else cout << "No";
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: lvalue required as left operand of assignment
   11 |    else if(Y%6==2 && X=(Y/6)+1) cout << "Yes";
      |            ~~~~~~~^~~~
a.cc:12:19: error: lvalue required as left operand of assignment
   12 |    else if(Y%6==4 && X=(Y/6)+1) cout << "Yes";
      |            ~~~~~~~^~~~
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 (4*x<y){
    cout<<"No"<<endl;}
  else if (y<2*x){
    cout<<"No"<<endl;}
  else{cout<<"Yes"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'x'
    5 |   cin x>>y;
      |      ^~
      |      ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'flag' was not declared in this scope
   10 |       flag=1;
      |       ^~~~
a.cc:14:6: error: 'flag' was not declared in this scope
   14 |   if(flag)
      |      ^~~~
Language: C++

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

int main() {
  long long X,Y;
  cin >> X >> Y;
  if(Y*Y-8*X>=0){
   cout << "Yes" << endl; 
  }else{
    cut << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cut' was not declared in this scope
   10 |     cut << "No" << endl;
      |     ^~~
Language: Java

import java.util.*;

public class B {

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

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

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

Compiler output:
a.cc:12:11: warning: missing terminating " character
   12 |     cout<<"Yes<<endl;
      |           ^
a.cc:12:11: error: missing terminating " character
   12 |     cout<<"Yes<<endl;
      |           ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
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;
    cin >> x >> y;
    if(y>=x*2&&y<=x*4$$y%2==0) cout << "Yes" << endl;
    else cout << "No" << endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: unable to find numeric literal operator 'operator""$$y'
   11 |     if(y>=x*2&&y<=x*4$$y%2==0) cout << "Yes" << endl;
      |                     ^~~~
Language: C++

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

int main() {
int x,y;
cin >> x>>y;
rep(ik,x+1){
	if(ik*4+(x-ik)*2==y){
	cout << "Yes"<<endl;break;
	}
	if(i=x){
	cout << "No"<<endl;break;
	}
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'i' was not declared in this scope; did you mean 'ik'?
   12 |         if(i=x){
      |            ^
      |            ik
Language: C++

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

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

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

Compiler output:
a.cc:2:17: error: 'td' is not a namespace-name
    2 | using namespace td;
      |                 ^~
a.cc: In function 'int main()':
a.cc:5:9: 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:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       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:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       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 <bits/stdc++.h>
using namespace std;

int main(){
  int x, y;
  cin >> x >> y;
  string str = "No";

  
   for(int x=0;i<x+1;i++){

     if(2*x + 2*i == y){
       string str = "Yes";
     }

   }
        
   

  cout << str << endl; 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'i' was not declared in this scope
   10 |    for(int x=0;i<x+1;i++){
      |                ^
Language: C++

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

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

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

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

Compiler output:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: Java

import java.util.*;

public class Mail{
	public static void main(String args[]){
    	Scanner sc = new Scanner(System.in);
      
      	int x = sc.nextInt();
      	int y = sc.nextInt();
      
        for(int i = 0; i < x; i++){
        	int a = 2 * i;
          	int b = 4 * (x - i);
          	
          	if(a + b == y)
              System.out.print("Yes");
          	  return;
        }
      	
        System.out.print("No");
    }
}


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

using namespace std;
using ll = long long;


  

int main() {
  float x, y;
  string s;
  cin >> x >> y;
  
  s = "Yes";
  if(2*x - y/2 < 0 || y/2 - x < 0){
  	s = "No";
  }
  cout << s << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> x >> y;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:12:3: error: 's' was not declared in this scope
   12 |   s = "Yes";
      |   ^
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << s << endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:16: error: 'endl' was not declared in this scope
   16 |   cout << s << 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;
Language: C++

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: expected unqualified-id before ';' token
    4 |   int a,b, ;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '<' token
    9 |   if(a%2==0 && (a/2)=<x)
      |                      ^
a.cc:10:13: error: 'Yes' was not declared in this scope
   10 |     cout << Yes << endl;
      |             ^~~
a.cc:12:13: error: 'No' was not declared in this scope
   12 |     cout << No << endl;
      |             ^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: unable to find numeric literal operator 'operator""x'
    9 |     if(y<2*x || 4x<y || (y%2)==1) ans=1;
      |                 ^~
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
#include <iomanip>


#define rep(i,n) for(int i=0; i< (n); ++i)

using namespace std;


void B_170()
{
  int x, y;
  cin >> x >> y;

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

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

import java.io.*;
import java.util.*;

public class B170B
{
    static PrintWriter out = new PrintWriter((System.out));

    public static void main(String args[]) throws IOException
    {
        Kioken sc = new Kioken();
        int x=sc.nextInt();
        int y=sc.nextInt();
        boolean found=false;
        for(int i=1;i<=x;i++)
        {
            for(int j=1;j+i<=x;j++)
            {
                if(2*i+4*j==y)
                {
                    found=true;
                    break;
                }
            }
        }
        out.println(found?"Yes":"No");
        out.close();
    }

    public static void kamehameha()
    {
    }

    static class Kioken
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

        public String next()
        {
            while (!st.hasMoreTokens())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        public int nextInt()
        {
            return Integer.parseInt(next());
        }

        public long nextLong()
        {
            return Long.parseLong(next());
        }

        public double nextDouble()
        {
            return Double.parseDouble(next());
        }

        public String nextLine()
        {
            try
            {
                return br.readLine();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            return null;
        }

        public boolean hasNext()
        {
            String next = null;
            try
            {
                next = br.readLine();
            }
            catch (Exception e)
            {
            }
            if (next == null)
            {
                return false;
            }
            st = new StringTokenizer(next);
            return true;
        }
    }
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define mod 1000000007
#define mod2 1000000000
#define mod1 998244353
#define lol ios_base::sync_with_stdio(false);cin.tie(NULL);
#define all(x) (x).begin(), (x).end()
#define F(i, n) for (ll (i) = 0; (i) < (n); (i)++)
#define pb push_back
#define pf push_front
#define mp make_pair
#define f first
#define ss second
int main()
{
    ll x;cin >> x;
    ll y;cin >> y;
    if((y-2*x)%2 == 0 && (4*x-y)%2==0 && y>=2x && 4*x>=y)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    
    
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else {
      |     ^~~~
a.cc:13:16: note: to match this '{'
   13 |     if (y%2==1){
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'retutrn' undeclared (first use in this function)
   14 |   retutrn 0;
      |   ^~~~~~~
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: expected ';' before numeric constant
   14 |   retutrn 0;
      |          ^~
      |          ;
Language: C++

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~                 
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before 'return'
   13 |   {cout<<"No"
      |              ^
      |              ;
   14 |     return 0;}
      |     ~~~~~~
Language: C++

///in the name of Allah the most beneficent the most merciful.
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define MAX 1e18
#define MIN -1e18
#define MOD 1000000007
//#define mod2 20071027
//#define MOD 998244353
#define base 139
//#define mod 1000074259
#define base2 31
#define memz(a) memset(a, 0, sizeof(a))
#define memn(a) memset(a, -1, sizeof(a))
#define in1(a) scanf("%lld", &a)
#define in2(a, b) scanf("%lld%lld", &a, &b)
#define TC(c) printf("Case #%lld: ", ++c)
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL);
#define FILE   freopen("input.txt", "r", stdin);  freopen("out.txt", "w", stdout);
#define out(x) cout << #x << " -> " << x << endl;
using namespace std;
const ll N = 300010, M = 2000005;
ll x, y;
int solve()
{
	in2(x, y);
	for (int i = 0; i <= x; i++)
	{
		ll k = (i * 2) + ((x - i) * 4);
		if (k == y)
		{
			printf("Yes\n");
			return 0;
		}
	}
	else printf("No\n");
	return 0;
}
int main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	int ret = solve();
	return 0;
}
/*

*/


Compiler output:
a.cc: In function 'int solve()':
a.cc:36:9: error: 'else' without a previous 'if'
   36 |         else printf("No\n");
      |         ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
#include<string.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> p; 
#define rep(i,n) for(ll i=0;i<(n);i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))
int main(){
   int x,y,flag=0;
   cin>>X>>y;
   for(int i=1;i<=100;i++){
       for(int j=1;j<=100;j++){
           if(y==2i+4j) flag=1;
       }
   }
   if(flag) p("Yes");
   else p("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: 'X' was not declared in this scope
   35 |    cin>>X>>y;
      |         ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#define read_in_arr(a, n) for(int i=0;i<n;i++){ cin>>a[i];}
#define print_arr(a, n) for(int i=0;i<n;i++){ cout<<a[i];}
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:78: error: expected ';' before '{' token
   14 |         if(((4*x)-y)%2==0 && (y-(2*x))%2==0 && ((4*x)-y)>=0 && ((y-(2*x))>=0){
      |                                                                              ^
      |                                                                              ;
a.cc:17:9: error: expected primary-expression before 'else'
   17 |         else{
      |         ^~~~
a.cc:16:10: error: expected ')' before 'else'
   16 |         }
      |          ^
      |          )
   17 |         else{
      |         ~~~~
a.cc:14:11: note: to match this '('
   14 |         if(((4*x)-y)%2==0 && (y-(2*x))%2==0 && ((4*x)-y)>=0 && ((y-(2*x))>=0){
      |           ^
Language: C++

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

int main()
{
    double head,legs;
    cin>>head>>legs;
    if(legs%2!=0)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        if(legs/head<=4 && legs/head>=2)
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }
    
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |     if(legs%2!=0)
      |        ~~~~^~
      |        |    |
      |        |    int
      |        double
Language: C++

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: unable to find numeric literal operator 'operator""x'
    7 |   if((y-2x)>=0 && (y-2x)%2==0){
      |         ^~
a.cc:7:22: error: unable to find numeric literal operator 'operator""x'
    7 |   if((y-2x)>=0 && (y-2x)%2==0){
      |                      ^~
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#define read_in_arr(a, n) for(int i=0;i<n;i++){ cin>>a[i];}
#define print_arr(a, n) for(int i=0;i<n;i++){ cout<<a[i];}
using namespace std;

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

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

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

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


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

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
  float x,y;
  cin >> x >> y;
  if (y % 2 != 0) cout << "No";
  else
  {
  	if (floor(y/2 - x) == ceil(y/2 - x)) cout << "Yes";  
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    8 |   if (y % 2 != 0) cout << "No";
      |       ~ ^ ~
      |       |   |
      |       |   int
      |       float
Language: C++

#include<algorithm>
#include<iostream>
#include<stdio.h>
#include<iostream>
#include<stdio.h>
#include<vector>
#include<set>
#include<string>
#include<iomanip>
#include<queue>
#include<functional>
#include<cmath>
#include<map>
#include<tuple>
#define rep(i,n) for(int i=0; i<(int)n; i++)//n回繰り返す
#define rrep(i,n)for(int i=n-1;i>=0;i--)
#define REP(i,n) for (int i = 1; i <= (int)n; i++)//i=1からi=nまで
#define RREP(i,n)for(int i=n;i>=1;i--)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using graph = vector<vector<int>>;
const ll mod = pow(10, 9) + 7;
const int INF = 1e9;
const ll LINF = 1e18;
const double pi = 3.14159265358979323846;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

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

}












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

#pragma GCC diagnostic ignored "-Wunused-variable" 
#include <bits/stdc++.h>
using namespace std;


int main(void)
{
	ll X, Y; cin >> X >> Y;
  for(int i=0;i<X+1;i++

	{
		if (2 * i + 4 * (X - i) == Y) output("Yes");
	}
	output("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll X, Y; cin >> X >> Y;
      |         ^~
a.cc:8:25: error: 'X' was not declared in this scope
    8 |         ll X, Y; cin >> X >> Y;
      |                         ^
a.cc:8:30: error: 'Y' was not declared in this scope
    8 |         ll X, Y; cin >> X >> Y;
      |                              ^
a.cc:9:24: error: expected ')' before '{' token
    9 |   for(int i=0;i<X+1;i++
      |      ~                 ^
      |                        )
   10 | 
   11 |         {
      |         ~               
a.cc:12:47: error: 'output' was not declared in this scope
   12 |                 if (2 * i + 4 * (X - i) == Y) output("Yes");
      |                                               ^~~~~~
a.cc:14:9: error: 'output' was not declared in this scope
   14 |         output("No");
      |         ^~~~~~
Language: C++

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

int main() {
  int x,y;
  cin >> x >> y;
  2x+4y=Y
  x+y=X    
  if ( (y-2*x)%2!=0 || (4*x-y)%2!=0) ) {
    cout << "NO";
  } else {
    cout << "YES";
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: unable to find numeric literal operator 'operator""x'
    8 |   2x+4y=Y
      |   ^~
a.cc:8:6: error: unable to find numeric literal operator 'operator""y'
    8 |   2x+4y=Y
      |      ^~
a.cc:8:9: error: 'Y' was not declared in this scope
    8 |   2x+4y=Y
      |         ^
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } else {
      |     ^~~~
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;
  cin >> x >> y;
  String res = "No";
  
  if(y % 2 != 0){
    cout << res << endl;
    return 0;
  }
  
  int a = 2 * x - y/2;
  int b = y/2 - x;
  
  if(a >= 0 && b >= 0) res = "Yes";
  
  cout << res << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'String' was not declared in this scope
   10 |   String res = "No";
      |   ^~~~~~
a.cc:13:13: error: 'res' was not declared in this scope; did you mean 'rep'?
   13 |     cout << res << endl;
      |             ^~~
      |             rep
a.cc:20:24: error: 'res' was not declared in this scope; did you mean 'rep'?
   20 |   if(a >= 0 && b >= 0) res = "Yes";
      |                        ^~~
      |                        rep
a.cc:22:11: error: 'res' was not declared in this scope; did you mean 'rep'?
   22 |   cout << res << endl;
      |           ^~~
      |           rep
Language: C++

using namespace std;
int main(){
    int x, y;
    cin >> x >> y;
    bool tf;

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

    if(tf) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     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:12: error: 'cout' was not declared in this scope
   11 |     if(tf) cout << "Yes" << endl;
      |            ^~~~
a.cc:11:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:29: error: 'endl' was not declared in this scope
   11 |     if(tf) 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:12:10: error: 'cout' was not declared in this scope
   12 |     else cout << "No" << endl;
      |          ^~~~
a.cc:12:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |     else cout << "No" << endl;
      |                          ^~~~
a.cc:12:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.io.*;
import java.util.*;

public class cranes {
	static class InputReader {
		BufferedReader reader;
		StringTokenizer tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream));
			tokenizer = null;
		}

		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens())
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			return tokenizer.nextToken();
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public void close() throws IOException {
			reader.close();
		}
	}

	public static void main(String[] args) throws IOException {
		InputReader f = new InputReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int X = f.nextInt(), Y = f.nextInt();
		
		int z = Y - 2 * X;
		System.out.println((z >= 0 && (z) % 2 == 0 && z <= X) ? "YES" : "NO");
		
		f.close();
		out.close();
	}
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: unable to find numeric literal operator 'operator""x'
    8 |   if((y-2x)>=0 && (y-2x)%2==0){
      |         ^~
a.cc:8:22: error: unable to find numeric literal operator 'operator""x'
    8 |   if((y-2x)>=0 && (y-2x)%2==0){
      |                      ^~