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

#include<bits/stdc++.h>
#define fi first
#define se second
#define mp make_pair
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
const double eps = 1e-8;
const int NINF = 0xc0c0c0c0;
const int INF  = 0x3f3f3f3f;
const ll  mod  = 1e9 + 7;
const ll  N = 1e6 + 5;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	for(int i=1;i<=5;i++){
		ll x;cin>>x;
		if(x==0) ans=i;
	}
	cout<<ans<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |                 if(x==0) ans=i;
      |                          ^~~
      |                          abs
a.cc:21:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |         cout<<ans<<'\n';
      |               ^~~
      |               abs
Language: C++

#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repk(i, k, n) for (int i = k; i < n; i++)
#define MOD 1000000007
#define INF 1e9
#define PIE 3.14159265358979323

template <class T>
inline bool chmin(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T>
inline bool chmax(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
template <class T>
T GCD(T a, T b) {
    if (b == 0)
        return a;
    else
        return GCD(b, a % b);
}
template <class T>
inline T LCM(T a, T b) {
    return (a * b) / GCD(a, b);
}

using namespace std;
//#inculude <bits/stdc++.h>
//#define int long long

signed main() {
    int a[5];
    rep(i, 5) {
        cin >> a[i];
    }
    rep(i, 5) {
        if (a[i] == 0) {
            cout << i << endl;
            return 0;
        }
    }

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

//Author: AnandRaj doubleux
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vpii;
typedef pair<ll,ll> pll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<pll> vpll; 

#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define test() int t;cin>>t;while(t--)
#define all(v) v.begin(),v.end()
#define prin(V) for(auto v:V) cout<<v<<" ";cout<<endl
#define take(V,f,n) for(int in=f;in<f+n;in++) cin>>V[in]
#define what(x) cerr<<#x<<" = "<<x<<endl
#define KStest() int t,t1;cin>>t;t1=t;while(t--)
#define KScout cout<<"Case #"<<t1-t<<": "

const int MOD = 1e9+7,MAX = 1e6+5;
/////////////////FastExp///////////////////
ll powN(ll a,ll p,ll mod)
{
	if(p==0) return 1;
	ll z=powN(a,p/2,mod);
	z=(z*z)%mod;
	if(p%2) z=(z*a)%mod;
	return z;
}
/////////////////FastExp///////////////////
//////////////////Sieve////////////////////
vector<bool> is_prime(MAX, true);
vector<int> MinDiv(MAX);
void Sieve()
{
	is_prime[0] = is_prime[1] = false;
	int i,j;
	for (i = 2; i*i <= MAX; i++) 
	{
    	if (is_prime[i]) 
    	{
    		MinDiv[i]=i;
        	for (j = i * i; j <= MAX; j += i)
            {
				is_prime[j] = false;
				MinDiv[j]=i;
    		}
    	}
	}
	for(int i=2;i<=MAX;i++) if(is_prime[i]) MinDiv[i]=i;
}
//////////////////Sieve////////////////////

int main()
{
	vi X(5);
	take(X,0,5);
	for(int i=0;i<n;i++)
	{
		if(X[i]!=i+1)
		{
			cout<<i+1<<endl;
			return 0;
		}
	}
}		

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

#include <bits/stdc++.h>
#define DEBUG if(0)
#define lli long long int
#define ldouble long double
using namespace std;

int main()
{
  int a[5];
  for (int i = 0; i < 5; i++) scanf("%d", &a[i]);
  for (int i = 0; i < 5; i++) { if (a[i] == 0) { printf("%d\n", i + 1); break } }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:78: error: expected ';' before '}' token
   11 |   for (int i = 0; i < 5; i++) { if (a[i] == 0) { printf("%d\n", i + 1); break } }
      |                                                                              ^~
      |                                                                              ;
Language: C++

//Author- VMAX


#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_multiset tree<long long , null_type,less_equal<long long >, rb_tree_tag,tree_order_statistics_node_update>
#define ordered_set tree<long long , null_type,less<long long >, rb_tree_tag,tree_order_statistics_node_update>
using namespace std;
#define ll long long int
#define YES cout<<"YES"<<"\n";
#define NO cout<<"NO"<<"\n";
#define ld     long double 
#define yes cout<<"yes"<<"\n";
#define no cout<<"no"<<"\n";
#define No cout<<"No"<<"\n";
#define Yes cout<<"Yes"<<"\n";
#define f(i,a) for(i=0;i<a;i++)
#define fo(i,a) for(i=1;i<=a;i++)
#define fa(i,a) for(auto i:a)
#define r(i,a) for(auto i=a.rbegin();i!=a.rend();i++)
#define en cout<<"\n";
#define ull unsigned long long int
#define o(x) cout<<x<<"\n";
#define o1(x) cout<<x<<" ";
#define pb push_back
#define F first
#define in insert
#define mp make_pair
#define S second
#define pre(n) cout<<fixed<<setprecision(n);
#define      gcd(a,b)    __gcd(a,b)
#define bs            binary_search
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);
#define test ll t;cin>>t;while(t-->0)
const ll Mod = 998244353;
#define mod 1000000007
#define pi 3.14159265358979323846
#define all(x) x.begin(),x.end()
#define re return 0;
// *#######################################################################################*
/*
ll prf(ll n)
{
    ll c=0,i;
    while(n%2==0)
    {
        n=n/2;
        c++;
    }
    for(i=3;i*i<=n;i++)
    {
        while(n%i==0)
    }
    
    
    
}
*/
//vector<ll>a(26);
int main()
{
     
      

ll a[5],i;
ll p;
 f(i,n)
{
    cin>>a[i];
    if(a[i]==0)
    {
        p=i;
    }
}

o(p+1)

















      
  
     re
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:6: error: 'n' was not declared in this scope
   69 |  f(i,n)
      |      ^
a.cc:19:26: note: in definition of macro 'f'
   19 | #define f(i,a) for(i=0;i<a;i++)
      |                          ^
Language: C++

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

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second
#define pb push_back
#define eb emplace_back

using ll = long long;
using vll = vector<ll>;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using P = pair<int, int>;

void Main(){
    rep(i, 5){
	    int n; 
        cin >> n;
      if(n == 0) {
			cout << i+1 << endl;
        	return;
    }
    
    return;
}

int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    Main();
    return 0;
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:32:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   32 | int main(){
      |         ^~
a.cc:32:9: note: remove parentheses to default-initialize a variable
   32 | int main(){
      |         ^~
      |         --
a.cc:32:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:32:11: error: a function-definition is not allowed here before '{' token
   32 | int main(){
      |           ^
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:20:12: note: to match this '{'
   20 | void Main(){
      |            ^
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 a[5];
  rep(i,n){
    cin >> a[i];
    if(a[i] == 0){
      cout << i + 1 << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'n' was not declared in this scope
   10 |   rep(i,n){
      |         ^
a.cc:2:45: note: in definition of macro 'rep'
    2 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

def lscan; gets.split.map(&:to_i); end

p lscan.index(0)+1

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def lscan; gets.split.map(&:to_i); end
      | ^~~
a.cc:1:12: error: 'gets' does not name a type
    1 | def lscan; gets.split.map(&:to_i); end
      |            ^~~~
a.cc:1:36: error: 'end' does not name a type
    1 | def lscan; gets.split.map(&:to_i); end
      |                                    ^~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;

public class A {

	public static void main(String[] args) {
		FastScanner fs=new FastScanner();
		int[] a=fs.readArray(5);
		for (int i=0; i<5; i++) {
			if (a[i]==0) System.out.println(i+1);
		}
	}

	static void sort(int[] a) {
		ArrayList<Integer> l=new ArrayList<>();
		for (int i:a) l.add(i);
		Collections.sort(l);
		for (int i=0; i<a.length; i++) a[i]=l.get(i);
	}
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		long nextLong() {
			return Long.parseLong(next());
		}
	}

	
}


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

#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;

int main() {
  for (int i = 0; i < 5; i++) {
    int a;
    cin >> a;
    if (a == 0) {
      cout << i + 1 << endl;
      return;
    }
  }
  return 0;
}

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

import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush
from math import *
from collections import defaultdict as dd, deque, Counter as C
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from time import perf_counter
from fractions import Fraction
# import numpy as np
sys.setrecursionlimit(int(pow(10,6)))
# sys.stdin = open("input.txt", "r")
# sys.stdout = open("output.txt", "w")
mod = int(pow(10, 9) + 7)
mod2 = 998244353
def data(): return sys.stdin.readline().strip()
def out(*var, end="\n"): sys.stdout.write(' '.join(map(str, var))+end)
def l(): return list(sp())
def sl(): return list(ssp())
def sp(): return map(int, data().split())
def ssp(): return map(str, data().split())
def l1d(n, val=0): return [val for i in range(n)]
def l2d(n, m, val=0): return [l1d(n, val) for j in range(m)]



x=l()
print(x.index(0)+1)

Compiler output:
a.cc:10:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
   10 | # import numpy as np
      |   ^~~~~~
a.cc:10:10: error: #import expects "FILENAME" or <FILENAME>
   10 | # import numpy as np
      |          ^~~~~
a.cc:12:3: error: invalid preprocessing directive #sys
   12 | # sys.stdin = open("input.txt", "r")
      |   ^~~
a.cc:13:3: error: invalid preprocessing directive #sys
   13 | # sys.stdout = open("output.txt", "w")
      |   ^~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>
#include<unordered_set>
#include<unordered_map>
#include <algorithm> 
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
#define ll long long
#define REP(i,n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n) for(ll i=n;i>=0;i--)
#define all(v)(v).begin(),(v).end()
#define rall(v)(v).rbegin(),(v).rend()
#define F first
#define S second
#define pb push_back
#define pu push
#define COUT(x) cout<<(x)<<endl
#define PQ priority_queue<ll>
#define PQR priority_queue<ll,vector<ll>,greater<ll>>
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define mp make_pair
#define sz(x) (ll)(x).size()
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const ll MOD = 1000000007LL;
const ll INF = 1LL << 60;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvll = vector<vll>;
using vstr = vector<string>;
using pll = pair<ll, ll>;
using vc = vector<char>;
using vvc = vector<vc>;
template<class T> inline bool chmax(T& a, T b) { 
 if (a < b) { a = b; return true; } return false; 
}
template<class T> inline bool chmin(T& a, T b) {
 if (a > b) { a = b; return true; } return false; 
}
ll dx[4]={0,1,0,-1};
ll dy[4]={1,0,-1,0};
int main(){
  vll a(5);
  rep(i,5) cin>>a[i];
  rep(i,5){
    if(a[i]==0){
      COUT(i+1);
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:7: error: 'i' was not declared in this scope
   49 |   rep(i,5) cin>>a[i];
      |       ^
a.cc:49:3: error: 'rep' was not declared in this scope; did you mean 'repR'?
   49 |   rep(i,5) cin>>a[i];
      |   ^~~
      |   repR
Language: C++

#include <bits/stdc++.h>
using namespace std;
//#define int long long
typedef pair<int,int> ii;
typedef tuple<int,int,int> iii;
#define ll long long
#define miniiPQ priority_queue<ii,vector<ii>,greater<ii> >
#define minPQ priority_queue<int,vector<int>,greater<int> >
#define PQ priority_queue<int>
#define iiPQ priority_queue<ii>
#define US unordered_set<int>
#define UMS unordered_multiset<int>
#define UM unordered_map<int>
#define ST stack<int>
 
void m1(){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  if(a == 0) cout << 1;
  else if(b == 0) cout << 2;
  else if(c == 0) cout << 3;
  else if(d == 0) cout << 4;
  else cout 5;
}
 
/*
void m2(){
  int t; cin >> t;
  while(t--) m1();
}
*/
 
int main(){
  //freopen("in.txt","r",stdin);
  m1();
  //m2();
}

Compiler output:
a.cc: In function 'void m1()':
a.cc:23:12: error: expected ';' before numeric constant
   23 |   else cout 5;
      |            ^~
      |            ;
Language: C++

/*input
1
1

*/
 
/*
                                                    ______________
                                                          |       )
                                                          |   )   /
                                                          |______/
                                                    |     |      \
                                                    |     |   )   \
                                                    |_____|_______)
 
*/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <queue>
#include <bitset>
#include <iomanip>
#include <fstream>
#include <stack>

using namespace std;
 
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> PII;
typedef pair<ll , ll> PLL;
typedef long double ld;
 
#define pb push_back
#define all(c) c.begin(),c.end()
#define allr(c) c.rbegin(),c.rend()
int mod = 1000000007;
const int inf = 1034567891;
const ll LL_INF = 1234567890123456789ll;
#define PI 3.14159265
#define endl '\n'
#define F first
#define S second
#define debug(x) cout << #x << " = " << x << endl;
#define TRACE
 
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
  cout << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
  const char* comma = strchr(names + 1, ',');cout.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...)
#endif
 
#define out(container) for (auto it : container) cout << it << " "; cout << endl;
 
 
template < typename T > T GCD(T a, T b)            { ll t; while(a) { t = a; a = b % a; b = t; } return b; }
template < typename T > string toString(T a)       { return to_string(a); }
template < typename T > void toInt(string s, T &x) { stringstream str(s); str >> x;}
inline int add(int x, int y){ x += y; if(x >= mod) x -= mod; return x;}
inline int sub(int x, int y){ x -= y; if(x < 0) x += mod; return x;}
inline int mul(int x, int y){ return (x * 1ll * y) % mod;}
inline int powr(int a, ll b){
  int x = 1 % mod;
  while(b){
    if(b & 1) x = mul(x, a);
    a = mul(a, a);
    b >>= 1;
  }
  return x;
}
inline int inv(int a){ return powr(a, mod - 2);}

int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  
  for (int i = 1; i <= 5; i++) {
    cin >> v;
    if (v == 0) {
      cout << i << endl;
      return 0;
    }
  }  

  return 0;
}

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

#include <iostream> 
#include <string> 
#include <vector> 
#include <cmath> 
#include <algorithm> 
#include <cstdlib> 
#include <ctime> 
#include <cstdio> 
#include <functional> 
#include <set> 
#include <queue> 
#include <cctype> 
#include <climits> 
#include <stack> 
#include <map> 
#include <cstring> 
#include <numeric>
#include <cctype>

using namespace std; 

const long long mod=1e9+7;


int main(){

    for(int i=0;i<n;i++){
        int x;
        cin>>x;

        if(x==0){
            cout<<i+1<<endl;
        }
    }

    return 0;
}


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

//shara's here
//speeeeeeeeeed is keeeeeeeeeey
//reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaaaaaaaaaaaaaaaaaaaadddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
#include <bits/stdc++.h>
using namespace std;
typedef string s;
typedef long long ll;
typedef long double ld;
const ll inf = 1e18 + 10;
const ll minf = -(1e18 + 10);
const ll mod = 1e9 + 7;
#if !defined(online_judge)
#include "debug.hpp"
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define pb push_back
#define all(x) x.begin(),x.end()
#define vl vector<ll>
#define vll vector<vector<ll> >
#define ins insert
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int main(){
    speed
    ll x , y;
    cin >> x >> y;
    debug(x,y);
    while(x>0){
    if(x-4>=0)x-=4;
    else if(x-2>=0)x-=2;
    else break;
    }
    puts(x==0?"No":"Yes");
    
























return 0;}
/*
███████████████████████████████████████████████████
███████████████████████████████████████████████████
██████████████████████████████████▀████████████████
██████████████████████████████████░▀███████████████
██████████████████████████████▌███░░░▀▀████████████
██▀████████████████████▐██████░▐██░░░░░░▀▀█████████
██░████████████████████▐█████▌░██▌▄░░░░▄▄░▄████▀███
█▌░███████████████████▀░█████░░░█░░░▄████░░███▀▐███
█▌░▐██████████████████░░████▌░░░▀░░▀███▀▀░▐███▄████
██░▀██████████████▌▐█▐▄▄████▌░░░░░░░░░░░░░▌████████
███░███████████████▀░▄▄██▀█▐░░░░░░░░░░░░░░▐████████
███▄░██████████████▄░░░░░░▀▀▀░░░░░░░░░░░░░█▐███████
████▄░██████████████████▄▄▄▄▄▄▐▄░░░░░░░░░░░████████
█████▄█████████████████▀▀▀▀▀▀░░░░░░░░░░░░░░████████
████████████████████████▄░░░░░░░░░░░░░░░▄░░████████
██████████████████████████▄▄▄░░░░░░░░░▄█░▄█████████
████████████████████████████████▄░░░░██▄███▀░░▀████
█████████████████████████████▀█████▄███▀▀▀░░▄▄░████
████████████████████████████▀░░▀░░▀▀░░░░▄▄▄██▀░░▀▀█
███████████████████████████▌░░░░░░░░░░░███████░░░▄█
███████████████▄░▀████████▀░░░░░░▀░░░░███████▌░░░██
███▄▄████████████▄░▀██████▄░░░░░█░░░░████████░░░▀▀
░▀█████████████████▄░▀█████░░░░██░░░░▀██████░░░░░▄█
▐█▄▀█████████████████▄░▀████░░░██▌░░░▐████▀░░░░▄███
▐███▄▀▀█████████████████▄░▀▀░░░░▀██▌▄█▀▀░░░▄▄██████
▀▀▀▀▀░░░▀▀▀▀▀░░░▀▀▀▀▀▀▀▀▀▀▀░░░░░░░▀▀░░░░░░▀▀▀▀▀▀▀▀▀
*/


Compiler output:
a.cc:13:10: fatal error: debug.hpp: No such file or directory
   13 | #include "debug.hpp"
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int x,y;
int main(void)
{
	while(cin>>x>>y)
	{
//	2m+4n=y;
//	m+n=x; 4m+4n=4x
//	n=(y-x)/2; m=x-(y-x)/2;
int fg=1;
	for(int i=0;i<=x;++i)
	{
		if(2*i+4*(x-i)==y)
		{
			puts("Yes");
			fg=0;
			break;
		}
	}
	if(fg)
	puts("No")
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: expected ';' before '}' token
   23 |         puts("No")
      |                   ^
      |                   ;
   24 |         }
      |         ~
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |       return;
      |       ^~~~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else cout<<"No"<<endl;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int X,Y;
  cin >> X >> Y;
  bool ans= false;
  for(int i=0; i<X; i++){
    if(4X-2i==0){
      ans = true;
      break;
    }
  }
  if(ans){
    cout << "Yes" << endl;
  }
    else{
      cout<< "No" << endl;
    }
}

    
    


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

#include <iostream>
using namespace std;
int main(){
  int X,Y;
  cin >> X >> Y;
  bool ans= false;
  for(i=0; i<X; i++){
    if(4x-2i==0){
      bool ans = true;
      break;
    }
  }
  if(ans){
    cout << "Yes" << endl;
  }
    else{
      cout<< "No" << endl;
    }
}

    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0; i<X; i++){
      |       ^
a.cc:8:8: error: unable to find numeric literal operator 'operator""x'
    8 |     if(4x-2i==0){
      |        ^~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int X,Y;
  cin >> X >> Y;
  bool ans= false;
  for(i=0; i<X; i++){
    if(4x-2i==0){
      bool ans = true;
      break;
    }
  }
  if(ans){
    cout << "Yes" << endl;
  }
    else{
      cout "No" << endl;
    }
}

    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0; i<X; i++){
      |       ^
a.cc:8:8: error: unable to find numeric literal operator 'operator""x'
    8 |     if(4x-2i==0){
      |        ^~
a.cc:17:11: error: expected ';' before string constant
   17 |       cout "No" << endl;
      |           ^~~~~
      |           ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: unable to find numeric literal operator 'operator""t'
   11 |   if(y==2i+4t) yes=true;
      |            ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: unable to find numeric literal operator 'operator""t'
   10 |   if(y==2i+4t)bool yes=true;
      |            ^~
a.cc:12:4: error: 'yes' was not declared in this scope
   12 | if(yes)cout<<"Yes"<<endl;
      |    ^~~
Language: C++

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

int main(){
int x,y;
for(int i=0;i<x;i++){
  int t=x-i;
  if(y==2i+4t)bool yes=true;
}
if(yes)cout<<"Yes"<<endl;
else{cout<<"No"<<endl;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: unable to find numeric literal operator 'operator""t'
    9 |   if(y==2i+4t)bool yes=true;
      |            ^~
a.cc:11:4: error: 'yes' was not declared in this scope
   11 | if(yes)cout<<"Yes"<<endl;
      |    ^~~
Language: C++

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

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

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

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

  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'y' was not declared in this scope
   10 |   if(2*X<=Y&&Y<=4*X&&y%2==0) cout << "Yes" << endl;
      |                      ^
Language: C

#include<stdio.h>

int main(void){
  int X,Y;
  scanf("%d %d",&X,&Y);
  for(int i=0;i<=X;i++){
    if((2*i+(X-i)*4)==Y){
      printf("Yes\n");
      return 0;
    }
  }
  pritnf("No\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   pritnf("No\n");
      |   ^~~~~~
      |   printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: 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:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "No";
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << "Yes";
      |                 ^~~~
a.cc:11:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

int main() {
  int x, y; std::cin >> x >> y;
  bool ans = true;
  // 偶数個
  if ((4*x-y)%2 != 0) ans = false;
  int crane = (4*x-y)/2;
  int turtle = x-crane;
  if (crane + turtle != x) ans = false;
  if (crane < 0 || crane > 100) ans = false;
  if (tutle < 0 || tutle > 100) ans = false;

  if (ans) std::cout << "Yes" << std::endl;
  else std::cout << "No" << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'tutle' was not declared in this scope; did you mean 'turtle'?
   12 |   if (tutle < 0 || tutle > 100) ans = false;
      |       ^~~~~
      |       turtle
Language: C++

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

int main() {
  int x, y;
  bool ans = false;
  cin >> x >> y;

  for (int crane = 0; crane <= x; crane++) {
    int turtle = x - crane;
    int sum = crane * 2 + turtle * 4;
    if (sum == y) ans = true;
  }
  if (ans) cout << "Yes" << endl;
  else cout << "No" << endl;

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

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

#define ll long long int
#define li int64_t

int main()
{
	4a+4b = 4x;
	2a+4b = y;
	

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: unable to find numeric literal operator 'operator""a'
    9 |         4a+4b = 4x;
      |         ^~
a.cc:9:12: error: unable to find numeric literal operator 'operator""b'
    9 |         4a+4b = 4x;
      |            ^~
a.cc:9:17: error: unable to find numeric literal operator 'operator""x'
    9 |         4a+4b = 4x;
      |                 ^~
a.cc:10:9: error: unable to find numeric literal operator 'operator""a'
   10 |         2a+4b = y;
      |         ^~
a.cc:10:12: error: unable to find numeric literal operator 'operator""b'
   10 |         2a+4b = y;
      |            ^~
a.cc:10:17: error: 'y' was not declared in this scope; did you mean 'yn'?
   10 |         2a+4b = y;
      |                 ^
      |                 yn
a.cc:13:9: error: 'b' was not declared in this scope
   13 |         b = y-2x/2
      |         ^
a.cc:13:15: error: unable to find numeric literal operator 'operator""x'
   13 |         b = y-2x/2
      |               ^~
a.cc:17:14: error: 'x' was not declared in this scope
   17 |         cin>>x>>y;
      |              ^
Language: C++

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

#define ll long long int
#define li int64_t

int main()
{


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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: unable to find numeric literal operator 'operator""x'
   13 |         if((y-2x)%2 == 0)cout<<"Yes";
      |               ^~
Language: C++

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
Language: C++

using namespace std;

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  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:9:6: error: 'cout' was not declared in this scope
    9 |      cout<<"Yes";
      |      ^~~~
a.cc:9:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:6: error: 'cout' was not declared in this scope
   13 |      cout<<"No";
      |      ^~~~
a.cc:13:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/std++.h>

using namespace std;

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

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

#include<bits/std++.h>

using namespace std;

void main()
{
 int X,Y;
 cin>>X>>Y;
 if((Y>=(2*X))&&(Y<=(4*X))&&(Y%2==0))
 {
     cout<<"yes";
 }
 else
 {
     cout<<"no";
 }
}

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

void main()
{
 int x,y;
 cin>>x;
 cin>>y;
 if((y>=(2*x))&&(y<=(4*x)))
 {
     cout<<"yes";
 }
 else
 {
     cout<<"no";
 }
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:2: error: 'cin' was not declared in this scope
    4 |  cin>>x;
      |  ^~~
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |      cout<<"yes";
      |      ^~~~
a.cc:12:6: error: 'cout' was not declared in this scope
   12 |      cout<<"no";
      |      ^~~~
Language: C++

#include<iostram.h>
#include<stdio.h>
#include<bits/std++.h>

using namespace std;

void main()
{
 int x,y;
 cin>>x;
 cin>>y;
 if((y>=(2*x))&&(y<=(4*x)))
 {
     cout<<"yes";
 }
 else
 {
     cout<<"no";
 }
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: lvalue required as left operand of assignment
    7 |   if(x*2<=y && x*4>=y && y%2=0){
      |      ~~~~~~~~~~~~~~~~~^~~~~~
Language: Java

public class A {

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

}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected initializer before '-=' token
   10 |     int n -= i*2;
      |           ^~
a.cc:11:8: error: 'n' was not declared in this scope
   11 |     if(n%4 == 0)
      |        ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main1 {
    public static void main(String []args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer(br.readLine());
        int animals=Integer.parseInt(st.nextToken());
        int legs=Integer.parseInt(st.nextToken());
        int A=0;
        int B=0;
        A=((4*animals)-legs)/2;
        B=(legs-(2*animals))/2;
        if(A+B==animals && 2*A+4*B==legs && A>=0 && B>=0)
            System.out.println("Yes");
        else
            System.out.println("No");

    }
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Main1 {
    public static void main(String []args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer(br.readLine());
        int animals=Integer.parseInt(st.nextToken());
        int legs=Integer.parseInt(st.nextToken());
        int c=0;
        int mask=0;
        int sum1=0;
        int sum2=0;
        if(animals==1 && (legs==2 || legs==4))
            System.out.println("Yes");
        else{
            if(legs%animals==0) {
                sum1=4*animals;
                sum2=2*animals;
            }
            else {
                if(legs%4==0){
                    sum1=legs;
                }
                else{
                    if(legs/4<animals){
                        int temp=animals-(legs/4);
                        if(temp*2+(legs/4)*4==legs){
                            sum1=legs;
                        }
                    }
                }
            }
            if(sum1==legs || sum2==legs)
                System.out.print("Yes");
            else
                System.out.print("No");
        }

    }
}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Main1 {
    public static void main(String []args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer(br.readLine());
        int animals=Integer.parseInt(st.nextToken());
        int legs=Integer.parseInt(st.nextToken());
        int c=0;
        int mask=0;
        int sum1=0;
        int sum2=0;
        if(animals==1 && (legs==2 || legs==4))
            System.out.println("Yes");
        else{
            if(legs%animals==0) {
                sum1=4*animals;
                sum2=2*animals;
            }
            else {
                sum1 = (4 * (legs / animals)) + 2;
                sum2 = (2 * (legs / animals)) + 4;
            }
            if(sum1==legs || sum2==legs)
                System.out.print("Yes");
            else
                System.out.print("No");
        }

    }
}


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

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void){
  int x, y;
  cin >> x >> y;

  string ans = 'No';
  for (int i = 0; i <= x; i++) {
    if (2 * i + 4 * (x - i) == y) ans = "Yes";
  }

  cout << ans << endl;
}


Compiler output:
a.cc:11:16: warning: multi-character character constant [-Wmultichar]
   11 |   string ans = 'No';
      |                ^~~~
a.cc: In function 'int main()':
a.cc:11:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
Language: C++

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void){
  int x, y;
  cin >> x >> y;

  string ans = 'No';
  for (int i = 0; i <= x; i++) {
    if (2 * i + 4 * (x - i) == y) ans = "Yes"
  }

  cout << ans << endl;
}


Compiler output:
a.cc:11:16: warning: multi-character character constant [-Wmultichar]
   11 |   string ans = 'No';
      |                ^~~~
a.cc: In function 'int main()':
a.cc:11:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
a.cc:13:46: error: expected ';' before '}' token
   13 |     if (2 * i + 4 * (x - i) == y) ans = "Yes"
      |                                              ^
      |                                              ;
   14 |   }
      |   ~
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();
    
    String result = ”No”;
    if ((y%2 == 0) && (y/2 <= x) && (y/4 >= x)) {
      result = ”Yes”;
    }
    System.out.println(result);
  }
}


Compiler output:
Main.java:11: error: illegal character: '\u201d'
    String result = ?No?;
                    ^
Main.java:11: error: illegal character: '\u201d'
    String result = ?No?;
                       ^
Main.java:11: error: not a statement
    String result = ?No?;
                     ^
Main.java:13: error: illegal character: '\u201d'
      result = ?Yes?;
               ^
Main.java:13: error: illegal character: '\u201d'
      result = ?Yes?;
                   ^
Main.java:13: error: not a statement
      result = ?Yes?;
                ^
6 errors
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();
    
    String result = 'No';
    if ((y%2 == 0) && (y/2 <= x) && (y/4 >= x)) {
      result = 'Yes';
    }
    System.out.println(result);
  }
}


Compiler output:
Main.java:11: error: unclosed character literal
    String result = 'No';
                    ^
Main.java:11: error: unclosed character literal
    String result = 'No';
                       ^
Main.java:11: error: not a statement
    String result = 'No';
                      ^
Main.java:13: error: unclosed character literal
      result = 'Yes';
               ^
Main.java:13: error: unclosed character literal
      result = 'Yes';
                   ^
Main.java:13: error: not a statement
      result = 'Yes';
                 ^
6 errors
Language: C++

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

}

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

#incluce <iostream>

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include?
    1 | #incluce <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::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 | #incluce <iostream>
a.cc:7:20: error: 'cout' is not a member of 'std'
    7 |   if (Y%2==1) std::cout << "No" << std::endl;
      |                    ^~~~
a.cc:7:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:41: error: 'endl' is not a member of 'std'
    7 |   if (Y%2==1) std::cout << "No" << std::endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluce <iostream>
a.cc:9:46: error: 'cout' is not a member of 'std'
    9 |     if (2*X - Y/2 >= 0 && Y/2 - X >= 0) std::cout << "Yes" << std::endl;
      |                                              ^~~~
a.cc:9:46: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:68: error: 'endl' is not a member of 'std'
    9 |     if (2*X - Y/2 >= 0 && Y/2 - X >= 0) std::cout << "Yes" << std::endl;
      |                                                                    ^~~~
a.cc:9:68: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:15: error: 'cout' is not a member of 'std'
   10 |     else std::cout << "No" << std::endl;
      |               ^~~~
a.cc:10:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:36: error: 'endl' is not a member of 'std'
   10 |     else std::cout << "No" << std::endl;
      |                                    ^~~~
a.cc:10:36: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define rep(i, n) for (int i = 0; i <= (int)(n); i++)
int main(){
   
    int x,y;1
    cin >> x >> y;
    rep(i,x){
        if(2*i+4*(x-i)==y){
            cout << "Yes  ";
            exit(1);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cin'
    8 |     int x,y;1
      |              ^
      |              ;
    9 |     cin >> x >> y;
      |     ~~~
Language: C++

   if(b%2!=0)cout<<"No"<<endl;
 
    if((a*2)>b||(a*4)<b)cout<<"No"<<endl;
 
   else cout<<"Yes"<<endl;
 
}

Compiler output:
a.cc:1:4: error: expected unqualified-id before 'if'
    1 |    if(b%2!=0)cout<<"No"<<endl;
      |    ^~
a.cc:3:5: error: expected unqualified-id before 'if'
    3 |     if((a*2)>b||(a*4)<b)cout<<"No"<<endl;
      |     ^~
a.cc:5:4: error: expected unqualified-id before 'else'
    5 |    else cout<<"Yes"<<endl;
      |    ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C

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

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x >> y;
      |   ^~~
a.cc:16:11: error: 'cout' was not declared in this scope
   16 |   if(ans) cout << "Yes" << endl;
      |           ^~~~
a.cc:16:28: error: 'endl' was not declared in this scope
   16 |   if(ans) cout << "Yes" << endl;
      |                            ^~~~
a.cc:17:8: error: 'cout' was not declared in this scope
   17 |   else cout << "No" << endl;
      |        ^~~~
a.cc:17:24: error: 'endl' was not declared in this scope
   17 |   else cout << "No" << endl;
      |                        ^~~~