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

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

//		for(int i=0; i<9; i++){
//			
//			}
//        Arrays.sort(priceArray);
//      	for(int i=0; i<kounyu; i++){
//			ans += priceArray[i];
//			}

		System.out.println(ans);   
 
	}
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 |   int x. y;
      |        ^
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> y;
      |          ^
a.cc:6:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> x >> y;
      |               ^
      |               yn
a.cc:14:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   if (ans == 0) {
      |       ^~~
      |       abs
Language: Java

    import java.util.*;
     
    class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x=sc.nextInt();
        int y=sc.nextInt();
        int l=0;
       
        if(y==2*x) 
           System.out.println("Yes");
        for (int i = 0; i < x; i++) {
         l=2*i+4*(x-i);
        
          if(l==y)
            System.out.println("Yes"); 
          break;
           else
             System.out.println("No");

          
        }
         
        
      }
    }

Compiler output:
Main.java:18: error: 'else' without 'if'
           else
           ^
1 error
Language: Java

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

Compiler output:
Main.java:12: error: ';' expected
         l=2*i+4(x-i);
                ^
Main.java:12: error: not a statement
         l=2*i+4(x-i);
                  ^
Main.java:12: error: ';' expected
         l=2*i+4(x-i);
                    ^
3 errors
Language: C++

#include <iostream>
using namespace std;

int main()
{
  ios_base::synnc_with_stdio(false);
  
  int x,y;
  cin>>x>>y;
  
  int a = (4*x-y)/2;
  int b = (y-2*x)/2;
  
  if(a>=0 && b>=0)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'synnc_with_stdio' is not a member of 'std::ios_base'
    6 |   ios_base::synnc_with_stdio(false);
      |             ^~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#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++)
using namespace std;
using P = pair<int, int>; 
using ll = long long;

int main()
{
  int n,l;
  cin >> n >> k;
  rep(i,n+1) {
    if(i*2+(n - i)*4 == k){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No"<< endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'k' was not declared in this scope
   11 |   cin >> n >> k;
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before '}' token
   10 |     printf("Yes")
      |                  ^
      |                  ;
   11 |   }
      |   ~
Language: C++

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

int main(){

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


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

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

nt main(){

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

Compiler output:
a.cc:4:1: error: 'nt' does not name a type; did you mean 'int'?
    4 | nt main(){
      | ^~
      | int
Language: C++

#include <iostream>
int main()
{
  int X,Y;
  std::cin >> X >> Y;
  
  for(int a=0;b=X;a<=X;a=a+1;b=b-1)
  {
  if(Y==2*a+4*b)
  {std::cout << "Yes" << std::endl;}
  else{std::cout << "No" << std::endl;}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   for(int a=0;b=X;a<=X;a=a+1;b=b-1)
      |               ^
a.cc:7:23: error: expected ')' before ';' token
    7 |   for(int a=0;b=X;a<=X;a=a+1;b=b-1)
      |      ~                ^
      |                       )
a.cc:7:24: error: 'a' was not declared in this scope
    7 |   for(int a=0;b=X;a<=X;a=a+1;b=b-1)
      |                        ^
a.cc:7:30: error: 'b' was not declared in this scope
    7 |   for(int a=0;b=X;a<=X;a=a+1;b=b-1)
      |                              ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int X, Y;
  cin >> X >> Y;
  if(ceil((4*X - Y)/2) == floor((4*X - Y)/2) && ceil((Y - 2*X)/2) == floor((Y - 2*X)/2)){
    if((4*X - Y)/2) > 0 && ((Y - 2*X)/2) > 0)
      cout <<"YES\n";
    else
      cout << "NO\n";
  }
   else
      cout << "NO\n";
  }

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


    #include <bits/stdc++.h>
    #include <cstdio>
    #include <cstring>
    #include <cmath>
    #include <cstring>
    #include <chrono>
    #include <complex>
    #define endl "\n"
    #define int long long int
    #define vi vector<int>
    #define vll vector<ll>
    #define vvi vector < vi >
    #define pii pair<int,int>
    #define pll pair<long long, long long>
    #define mod 1000000007
    #define inf 1000000000000000001;
    #define all(c) c.begin(),c.end()
    #define mp(x,y) make_pair(x,y)
    #define mem(a,val) memset(a,val,sizeof(a))
    #define eb emplace_back
    #define f first
    #define s second

    using namespace std;
int power(int base, int exp)
{
    if (exp == 0)
       return 1;
    else if (exp == 1)
       return base;
    else
    {
       int calc;
       if (exp % 2 == 0)
       {
         calc = power(base, exp/2);
         calc =(calc* calc)%mod;
       }
       else
       {
         calc = (base*power(base, exp-1))%mod;
       }
       return calc%mod;
    }
}
    int32_t main()
    {
        std::ios::sync_with_stdio(false);
        int a,b;
        cin>>a>>b;
        if(b%2!=0)
        {
            cout<<"No"<<endl;
            continue;
        }
        if(b/2<=a|| b/4<=a)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;

        return 0;
    }


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:55:13: error: continue statement not within a loop
   55 |             continue;
      |             ^~~~~~~~
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> y;
      |          ^
a.cc:6:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> x >> y;
      |               ^
      |               yn
a.cc:9:21: error: 'i' was not declared in this scope
    9 |         int b = x - i;
      |                     ^
Language: C

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

int main(){
    int x,y;

    cin >> x >> y;

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

    }

    cout << "No" << endl;
    return 0;
} 


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>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'if'
    7 |   derived = Y - 2*X
      |                    ^
      |                    ;
    8 |   if (derived == 0){
      |   ~~                
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if (derived - 2 >= 0 && derived % 2 == 0 && derived <= X){
      |   ^~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'j' was not declared in this scope
   10 |                 if((b-j*4)%2==0)
      |                       ^
Language: C++

#include<stdio.n>

int main() {
  int x, y;
  
  scanf("%d %d", &x, %y);
  
  for (int i = 0; i < x; i++) {
    int j = x - i;
    if (2 * i + 4 * j == y) printf("%s", "Yes");
    else printf("%s", "No");
  }
  
  return 0;
}

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

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

Compiler output:
a.cc:7:11: warning: missing terminating " character
    7 |     cout<<"yes;
      |           ^
a.cc:7:11: error: missing terminating " character
    7 |     cout<<"yes;
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:6:26: error: expected ')' before '{' token
    6 |   if(Y<=(4*X) && (Y%2==0){
      |     ~                    ^
      |                          )
a.cc:12:6: error: expected primary-expression before '}' token
   12 |      }
      |      ^
Language: C++

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

return 0;

}


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

#include <iostream>
using namespace std;
int main(){
  int a,b,c,d,e;
  cin >> a >> b;
  if (4*a<b) {
    cout << No;
  }else if (2*a>b) {
    cout << No;
  }else{
    cout << Yes;
  }
  return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'turt' was not declared in this scope; did you mean 'tut'?
   15 |     turt=y-x;
      |     ^~~~
      |     tut
Language: C++

#include<iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> x;
      |   ^~~
      |   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:15:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |            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:15:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |            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:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   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:20:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   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<iostream>
#include<vector>
#include<set>
#include<map>
#include<algorithm>
#include<string>
#include<cstring>
#include<cmath>

#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define FAST ios_base::sync_with_stdio(false);  cin.tie(NULL);
#define f(i,n) for(int i=0 ; i<n ; i++)
#define fll(i,n) for(ll i=0 ; i<n ; i++)
#define f1(a,b,i) for(ll i=a ; i<b ; i++)
#define fd(i,n) for(int i=n-1 ; i>=0 ; i--)
#define ll long long
#define ld long double
#define vi vector<int>
#define  pii pair<int,int>
#define vl vector<ll>
#define INF 1e9
#define epsn 1e-12

using namespace std ;
int M=1e9+7 ;
ll pow(ll a, ll b){
    if(b==0)return 1 ;
    else if(b%2)return a*pow(a,b-1) ;
    else return pow(a,b/2)*pow(a,b/2) ;
}

int main(){
	ll x,y ;
  	cin>>x>>y ;
  	if(y&1)cout<,"No\n" ;
  	else{
		ll a=(y/2)-x,b=(2*x)-(y/2) ;
      	if(a>=0 && b>=0)cout<<"Yes\n" ;
      	else cout<<"No\n" ;
    }
      return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:21: error: expected primary-expression before ',' token
   38 |         if(y&1)cout<,"No\n" ;
      |                     ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    int x,y;
    cin>>x>>y;
    int a,b;
    a+b=x;
    if (2*a+4*b==Y){
    	cout<<"Yes"
	}
    else
    	cout<<"No"
    

    

    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: lvalue required as left operand of assignment
    9 |     a+b=x;
      |     ~^~
a.cc:10:18: error: 'Y' was not declared in this scope
   10 |     if (2*a+4*b==Y){
      |                  ^
a.cc:11:20: error: expected ';' before '}' token
   11 |         cout<<"Yes"
      |                    ^
      |                    ;
   12 |         }
      |         ~           
a.cc:14:19: error: expected ';' before 'return'
   14 |         cout<<"No"
      |                   ^
      |                   ;
......
   19 |     return 0;
      |     ~~~~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int

int main(){
	ll x,y;
  cin>>x>>y;
  int flag = 0;
  for(ll i=1;i<=x;i++){
    for(ll j=1;j<=x;j++){
      if((i+j) == x && (2*i+4*j) == y){
        flag = 1;
        break;
      }
    }
  }
  if(flag != 1)
    cout<<"YES";
  else
    cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>x>>y;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     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:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     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;
	bool consegue = false;
	for(int i = 1; i <= x; i++){
		if((2*i +4(x-i)) == y ||  (4*i +2(x-i)) == y){
			consegue = true;
			break;
		}
	}
	if(consegue)cout<<"Yes";
	else cout<<"No";
	cout<<endl;
	
	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  int x, y,i , j;
  cin>>x>>y;
  for(i=0;i<x;i++){
  	if((x-i)*2+i*4==y){ 
      cout<<"Yes"<<endl;
      j=1;
      break;
  	
    }
    if(j==0)cout<<"No"<<endl;
}

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

#include<iostream>
int main()
{
  int x, y,i , j;
  cin>>x>>y;
  for(i=0;i<x;i++){
  	if((x-i)*2+i*4==y){ 
      cout<<"Yes"<<endl;
      j=1;
      break;
  	
    }
    if(j==0)cout<<"NO"<<endl;
}

Compiler output:
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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       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:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       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:13:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     if(j==0)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:13:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     if(j==0)cout<<"NO"<<endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include <bits/stdc++.h>
typedef long long int ll;
#define fio ios::sync_with_stdio(false); cin.tie(0)
#define foi(a,n) for(ll i=a;i<n;i++)
#define foir(a,n) for(ll i=a;i>=n;i--)
#define foj(a,n) for(ll j=a;j<n;j++)
#define fok(a,n) for(ll k=a;k<n;k++)
using namespace std;
int main() 
{
	fio;
	ll x,y;
  cin>>x>>y;
  ll min x*2;
  ll max = x*4;
  if(!(y>=min && y<=max))
    cout<<"No";
  else
  {
   if(y%2==0)
     cout<<"Yes";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: expected initializer before 'x'
   14 |   ll min x*2;
      |          ^
a.cc:16:9: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator>='
   16 |   if(!(y>=min && y<=max))
      |        ~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before ':' token
    9 |                 return 0:
      |                         ^
      |                         ;
a.cc:9:25: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
int main()
{
  bool flag = false;
  int X, Y;
  cin >> X >> Y;
  for(int i = 0; i <= X; i ++)
  {
    if((2 * i + 4 * (X - i)) == Y)
    {
      cout << "Yes";
      flag = true;
    }
  }
  if(flag == false)
  {
    cout << "No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout << "Yes";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     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 <iostream>
using namepsace std;
int main(){
  	int x,y;
    cin >> x >> y;
  	int f=0;
  	for(int i=1;i<=x;i++){
      	if(2*i+4*(x-i)==y)
        {	f=1;
        	}
    }
  if(f)	cout << "Yes\n";
  else	cout << "No\n";
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: 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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if(f) 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   else  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: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>
#include<vector>
using namespcae std;
int main(){
  int x, y;
  cin >> x >> y;
  int y2 = y/2;
  if(y&1==0 && (y2>=x) && (y2<=x*2)){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespcae'
    3 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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>
#define ll long long
using namespace std;
const int N = 2e5 + 5, mod = 1e9 + 7;


int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int n, x;
    cin >> n >> x;
    for(int i = 0; i <= n; i++){
        if(i * 2 + (n - i) * 4 == x) return cout  << "Yes", 0;
    }
    cout << "Np;

    return 0;

}



Compiler output:
a.cc:14:13: warning: missing terminating " character
   14 |     cout << "Np;
      |             ^
a.cc:14:13: error: missing terminating " character
   14 |     cout << "Np;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:16:5: error: expected primary-expression before 'return'
   16 |     return 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i <(n) ; ++i)
#define PI 3.14159265
#define pb push_back
#define pr pair<int,int>
using namespace std;
using ll = long long;
// using mod = 1000000000 + 7;
void self_max(int &a,int b){
	a = max(a,b);
}

void self_min(int &a,int b){
	a = min(a,b);
}
class Solution {
public:
    int main(){
    	
    int a,b; cin >> a >> b;

    if((b- 2*a)%2 ==0) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
    }
};

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {
  int x, y;
  scanf("%d %d", &x, &y);
  if(y&1) {
    printf("No\n");
  } else {
    int b = (y >> 1) - x;
    int a = (x << 1) - b;
    if(a < 0 || b < 0 || (a+b) == 0) {
      printf("No\n");
    } else {
      pintf("yes\n");
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'pintf' was not declared in this scope; did you mean 'rintf'?
   16 |       pintf("yes\n");
      |       ^~~~~
      |       rintf
Language: Java

import java.util.*;
public class Main{
 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int k=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			if((k-(i*2))%4==0)
			{
				int b=(k-(i*2))/4;
				if((b+i)==n)
				{
					System.out.println("yes");
					System.exit(0);
				}
			}
		}
		System.out.println("no");
	}
}
import java.util.*;
public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int k=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			if((k-(i*2))%4==0)
			{
				int b=(k-(i*2))/4;
				if((b+i)==n)
				{
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
}


Compiler output:
Main.java:24: error: class, interface, enum, or record expected
import java.util.*;
^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{long long int n,k;
 cin>>n>>k;
 if((4*n-k)%2==0)&&((4*n-k)>0))
   cout<<"YES";
 else
   cout<<"NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected identifier before '(' token
    6 |  if((4*n-k)%2==0)&&((4*n-k)>0))
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else{
      |     ^~~~
a.cc:10:9: note: to match this '{'
   10 |         {
      |         ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:6:26: note: to match this '{'
    6 |     for(int i=0;i<=x;i++){
      |                          ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x,y,z,w;
  w=0;
  cin >> x >> y;
  for(int i=0,i<=x;i++){
    z=x-i;
    if(i*2+z*4==y){
      w=1;
    }
  }
  if(w==1){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '<=' token
    7 |   for(int i=0,i<=x;i++){
      |                ^~
      |                ;
a.cc:7:16: error: expected primary-expression before '<=' token
    7 |   for(int i=0,i<=x;i++){
      |                ^~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
using namespace std;
 
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.precision(10);
 
    int x,y;
    cin >> x >> y;
 
    int a=((4*x)-y)/2;
    int b=(y-(2*x))/2;
 
    if ((a<0)||(b<0))
    {
        cout << "No" << endl;
        return 0;
    }
 
    if (((a+b)==x)&&(((2*a)+(4*b))==y))
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
 
    return 0;
}












a




a




a


a
a
a

a
aaaa
ds
fzsdf

fzsfad
fdfd

far
fhadfhzdh
fu
suf
sifybbu9gfjaujasfujijuiobguib ionjkvtr

Compiler output:
a.cc:48:1: error: 'a' does not name a type
   48 | a
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x,y,z,w;
  cin >> x >> y;
  for(int i=0,i<=x;i++){
    z=x-i;
    if(i*2+z*4==y){
      w=1;
    }
  }
  if(w==1){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before '<=' token
    6 |   for(int i=0,i<=x;i++){
      |                ^~
      |                ;
a.cc:6:16: error: expected primary-expression before '<=' token
    6 |   for(int i=0,i<=x;i++){
      |                ^~
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int n,y,c1=0,c2=0;
  cin>>n>>y;
  while(1){
    if(n>4){n-=4;
            c1++;}
    if(n>2){
      n-=2;
      c2++;
    }
    
    if(n==0 || n<0)break;
    
  }
  if(n==0 && (c1+c2)==y)cout<<"Yes";
  else cout<<"No";

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(2*X<=Y){
      |     ^~~~
a.cc:8:15: note: to match this '{'
    8 |     if(4*X>=Y){
      |               ^
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else{
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else{
      |   ^~~~
a.cc:20:3: error: expected unqualified-id before 'return'
   20 |   return 0;
      |   ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include<stdio.h>
main()
{
int h,f,turu,kame;

scanf("%d",&h);
scanf("%d",&f);

h=turu+kame;
f=2*turu+4*kame;

if(turu%2==0||kame%2==0)
printf("turu=%d\n",turu);
printf("kame=%d\n",kame);
else 
printf("ERROR\n");
}



Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:15:1: error: 'else' without a previous 'if'
   15 | else
      | ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'else' without a previous 'if'
    6 |         else if (2*x <= y && y <= 4*x && y % 2 == 0)
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long

using namespace std;

///Code starts from here
int main()
{
    double x,y;
    cin>>x>>y;
    if(y/x>=2&&y/x<=4&&y%2==0)
    {
        cout<<"Yes";
    }
    else
        cout<<"No";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(y/x>=2&&y/x<=4&&y%2==0)
      |                        ~^~
      |                        | |
      |                        | int
      |                        double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:59: error: 'newl' was not declared in this scope
    9 | cout << (((y%2==0)&&(2*x<=y)&&(y<=4*x))? "Yes" : "No") << newl;
      |                                                           ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){

int x,y;
  cin>>x>>y;
cout << (y%2==0 and 2*x<=y and y<=4*x ? "Yes" : "No") << newl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: 'newl' was not declared in this scope
    9 | cout << (y%2==0 and 2*x<=y and y<=4*x ? "Yes" : "No") << newl;
      |                                                          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef vector<char> vc;
typedef queue<ll> ql;
typedef deque<ll> dql;
typedef priority_queue<ll/*, vl, greater<ll>*/> pql; //降順(/*昇順*/)
typedef set<ll> sl;
typedef pair<ll, ll> pl;
typedef vector<vl> vvl;
typedef vector<pl> vpl;
#define rep(i, n) for(ll i = 0; i < ll(n); i++)
#define rep2(i, n) for(ll i = 1; i <= ll(n); i++)
//#define rep(i, k, n) for(ll i = k-1; i < ll(n); i++)
//#define rep2(i, k, n) for(ll i = k; i <= ll(n); i++)
#define all(v) (v).begin(), (v).end()
bool chmin(ll &a, ll b) {if(b < a) {a = b; return 1;} return 0;}
bool chmax(ll &a, ll b) {if(b > a) {a = b; return 1;} return 0;}
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
//const ll MOD = 998244353;
const ll MAX = 1e9;
const char newl = '\n';

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  ll x, y;
  cin >> x >>> y;
  cout << (y%2==0 and 2*x<=y and y<=4*x ? "Yes" : "No") << newl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:14: error: expected primary-expression before '>' token
   33 |   cin >> x >>> y;
      |              ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
  unsigned int x, y;
  cin >> x >> y;
  string ans = "NO";
  for(int turu = 0; turu <= X+1; turu++) {
    int c = x - turu;
    if((turu*2 + c*4) == Y) ans = "Yes";
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'X' was not declared in this scope
    8 |   for(int turu = 0; turu <= X+1; turu++) {
      |                             ^
a.cc:10:26: error: 'Y' was not declared in this scope
   10 |     if((turu*2 + c*4) == Y) ans = "Yes";
      |                          ^
Language: C++

#include <iotsream>
using namespace std;
int main () {
  unsigned int X, Y;
  bool flag = 0;
  cin >> X >> Y;
 
  for(int i = 0; i < X; i++) {
    for(int j = 0 ; j < X-i; j++) {
      if(i + j == Y) { 
        flag = 1;
        cout << "YES\n";
        break;
      }
    }
  }
    if(flag == 0) cout << "NO\n";
    return 0;
  }

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

#include <iotsream>
using namespace std;
int main () {
  unsigned int X, Y;
  
  cin >> X >> Y;
  
  if(2*X < Y) cout << "NO\n";
  else cout << "YES\n";
  return 0;
}

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

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

int main(){
  int a,b;
  
  cin >> a >>b;
  
  if(a*2<=b||a*4>=b&&b%2==0){
    cout << "Yes\n";
  }
  else{
    cout << "No\n";
  }
  return 0;
}
提出情報 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '<' token
    9 |   if(a*2=<b||a*4>=b&&b%2==0){
      |          ^
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc:33:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   33 | 提出情報
      | ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '<' token
    9 |   if(a*2=<b||a*4>=b&&b%2==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();
        sc.close();

        int b = Y / 2 - X;
        int a = X - b;
        if (a < 0　|| b < 0) {
            System.out.println("No");
        } else {
            if (2 * a + 4 * b == Y) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }

    }
}

Compiler output:
Main.java:13: error: illegal character: '\u3000'
        if (a < 0?|| b < 0) {
                 ^
Main.java:13: error: illegal start of type
        if (a < 0?|| b < 0) {
                         ^
Main.java:13: error: not a statement
        if (a < 0?|| b < 0) {
                       ^
Main.java:15: error: 'else' without 'if'
        } else {
          ^
4 errors
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ')' before 'a'
   11 |       a <= X, b <= X
      |                     ^
      |                     )
   12 |        a>=0, b>=0){
      |        ~             
a.cc:9:8: note: to match this '('
    9 |     if (ceil(a)==floor(a)&&
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected primary-expression before '<' token
   11 |       a =< X, b =< X ){
      |          ^
a.cc:11:18: error: expected primary-expression before '<' token
   11 |       a =< X, b =< X ){
      |                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ')' before 'a'
   10 |        ceil(b)==floor(b)
      |                         ^
      |                         )
   11 |       a > 0, b > 0 ){
      |       ~                  
a.cc:9:8: note: to match this '('
    9 |     if (ceil(a)==floor(a)&&
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected identifier before 'if'
   10 |        if (ceil(b)==floor(b)){
      |        ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected identifier before 'if'
   10 |        if (ceil(b)==florr(b)){
      |        ^~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected identifier before 'if'
    9 |     if (ceil(a)==floor(a))&&if (ceil(b)==florr(b)){
      |                             ^~
a.cc:14:12: error: expected '}' at end of input
   14 |           }
      |            ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^