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

#include <bits/stdc++.h>

using namespace std;

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

            }
    }
    cout << "NO";

}



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

#include <iostream>

using namespace std;

int main(){
    int x,y;
    cin >> x >> y;

    int t = (2*x-y);
    int k = (y - 4*x)*2

    if(t%2 == 0 && k%4 == 0){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'if'
   12 |     if(t%2 == 0 && k%4 == 0){
      |     ^~
a.cc:14:6: error: 'else' without a previous 'if'
   14 |     }else{
      |      ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
    int x,y;
    cin >> x >> y;

    t = (2*x-y);
    k = (y - 4*x)*2

    if(t%2 == 0 && k%4 == 0){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 't' was not declared in this scope
    9 |     t = (2*x-y);
      |     ^
a.cc:10:5: error: 'k' was not declared in this scope
   10 |     k = (y - 4*x)*2
      |     ^
a.cc:14:6: error: 'else' without a previous 'if'
   14 |     }else{
      |      ^~~~
Language: C

#include <stdio.h>

int main(void) {
  int i,x,y,kame,turu,ans;
  i=0;
  x=0;
  y=0;
  kame=0;
  turu=0;
  ans=0;
  scanf("%d",&x);
  scanf("%d",&y);
  kame=(y-2*x)/2*4;
  turu=(y-kame)/2;
  if((x==1&&y==2)||(x==1&&y==4))
  {
    printf("Yes");
  }
  else if(turu%2==0&&y>turu&&turu>=2)
  {
    printf("Yes");Z
  }
  else
  {
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:19: error: 'Z' undeclared (first use in this function)
   21 |     printf("Yes");Z
      |                   ^
main.c:21:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:20: error: expected ';' before '}' token
   21 |     printf("Yes");Z
      |                    ^
      |                    ;
   22 |   }
      |   ~
Language: C++

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


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

#include<bits/stdc++.h>
int main()
{
    int i,j,a,b;
    cin>>a>>b;
        if(b%2==0 && b>=a*2 && b<=a*4){
            cout<<Yes;
          }
        else{
            cout<<No;
        }
}


Compiler output:
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>>a>>b;
      |     ^~~
      |     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:7:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |             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:7:19: error: 'Yes' was not declared in this scope
    7 |             cout<<Yes;
      |                   ^~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<No;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:19: error: 'No' was not declared in this scope
   10 |             cout<<No;
      |                   ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: break statement not within loop or switch
   10 |         break ;
      |         ^~~~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

x,y=map(int,input().split())
if (y/2-x)%1==0 and (2*x-y/2)>=0:
    print("Yes")
else:
    print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x,y=map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | x,y=map(int,input().split())
      |   ^
main.c:1:5: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | x,y=map(int,input().split())
      |     ^~~
main.c:1:9: error: expected expression before 'int'
    1 | x,y=map(int,input().split())
      |         ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if (y/2-x)%1==0 and (2*x-y/2)>=0:
      | ^~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define B begin()
#define E end()
using namespace std;
int main()
{
    ll n,k; cin>>n>>k;
    if(k<(n*2) || k>(n*4) || k%2) cout<<"No";
    else 3cout<<"Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: unable to find numeric literal operator 'operator""cout'
   11 |     else 3cout<<"Yes";
      |          ^~~~~
Language: C++

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

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

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



Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected expression before '<' token
    7 | else if(2*x=<y&&y=<4*x){
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |           ans ="Yes";
      |           ^~~
      |           abs
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'x' was not declared in this scope
    8 |     int j = x -i;
      |             ^
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |           ans ="Yes";
      |           ^~~
      |           abs
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |           ans ="Yes";
      |           ^~~
      |           abs
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '<' token
    6 |     if(y=<4*x && y>=2*x) cout << "Yes" ;
      |          ^
Language: C

#include <iostream>
using namespace std;
int main(void){
   int s,n;
   cin>>s>>n;
   int b=(n-2)*s;
   if(n=1||(n%2)>0){
       cout<<"No"<<endl;
   }
   else if((4*n)<s){
       cout<<"No"<<endl;
   }
   else if(b%2>0){
       cout<<"No"<<endl;
   }
   else if(b%2==0){
       cout<<"Yes"<<endl;
   }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
    9 |       return cout << "Yes" << endl;
      |              ~~~~~~~~~~~~~~^~~~~~~
      |                            |
      |                            std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected '}' before 'else'
    9 |         else {
      |         ^~~~
a.cc:7:41: note: to match this '{'
    7 |         if(y%2 == 0 && x*2<=y && x*4>=y){
      |                                         ^
Language: C++

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

using namespace std;
typedef long long ll;

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

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

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

using namespace std;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'flag' was not declared in this scope
   10 |   flag = 0;
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'o' undeclared (first use in this function)
    5 |   if((4*x-y)%2==o && ((4*x-y)/2)>=0)
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n, legs;
  cin >> n >> legs;
  legs=legs-2*n;
  if(legs%2==0 && legs/2<=n){
    prinf("Yes");
  }
  else{
    printf("No");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'prinf' was not declared in this scope; did you mean 'printf'?
    8 |     prinf("Yes");
      |     ^~~~~
      |     printf
Language: C++

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


int main(int argc, char const *argv[])
{
	//ifstream cin("input.txt");
	
	int x, y;
	cin>>x>>y;
	
	if(4*x >= y && 2*x =< y)
		cout<<"Yes";
	else
		cout<<"No";
		



}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         if(4*x >= y && 2*x =< y)
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int X, Y;
  int count = 0;
  cin >> X >> Y;
  while(true){
    if(Y % 4 == 0){
     Y /= 4; 
     count++;
    }else{
     break;
    }
  }
  while(true){
    if(Y % 2 == 0){
     Y /= 2; 
     count++;
    }else{
     break;
    }
  }
  cout << (count == x ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: 'x' was not declared in this scope
   24 |   cout << (count == x ? "Yes" : "No") << endl;
      |                     ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  cin>>X>>Y;
  ans = "NO";
  for(int i=0;i<=X;i++)
  {
     int j = X-i;
      if(Y == i*2 + j*4) 
      {
        ans="YES;
          break;
      }
  }
  
  cout << ans;


}

Compiler output:
a.cc:14:13: warning: missing terminating " character
   14 |         ans="YES;
      |             ^
a.cc:14:13: error: missing terminating " character
   14 |         ans="YES;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'X' was not declared in this scope
    7 |   cin>>X>>Y;
      |        ^
a.cc:7:11: error: 'Y' was not declared in this scope
    7 |   cin>>X>>Y;
      |           ^
a.cc:8:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   ans = "NO";
      |   ^~~
      |   abs
a.cc:15:11: error: expected primary-expression before 'break'
   15 |           break;
      |           ^~~~~
Language: C

#include <stdio.h>
int main(void) {
	int x,y;
	scanf("%d%d",&x,&y);
	if(y%2==0&&2*x<=y&&y<=4*x);{
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: 'else' without a previous 'if'
    7 |         }else{
      |          ^~~~
Language: C

#include <stdio.h>
int main(void) {
	int x y;
	scanf("%d%d",&x,&y);
	if(y%2==0&&2*x<=y&&y<=4*x);{
		printf("yes");
	}else{
		printf("no");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    3 |         int x y;
      |               ^
main.c:3:15: error: 'y' undeclared (first use in this function)
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:23: error: 'x' undeclared (first use in this function)
    4 |         scanf("%d%d",&x,&y);
      |                       ^
main.c:7:10: error: 'else' without a previous 'if'
    7 |         }else{
      |          ^~~~
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int	x,y;
	scanf("%d%d",&x,&y);
	if(2y&&1<=x<=100&&2<=y<=400){
	printf("yes");
	}else{
	printf("no");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: invalid suffix "y" on integer constant
    7 |         if(2y&&1<=x<=100&&2<=y<=400){
      |            ^~
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int	x,y;
	scanf("%d%d",&x,&y);
	if(2x&&1<=x<=100&&2<=y<=400){
	printf("yes");
	}else{
	printf("no");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: invalid suffix "x" on integer constant
    7 |         if(2x&&1<=x<=100&&2<=y<=400){
      |            ^~
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int	x,y;
	scanf("%d%d",&x,&y);
	if(2x,1<=x<=100 2<=y<=400){
	printf("yes");
	}else{
	printf("no");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: invalid suffix "x" on integer constant
    7 |         if(2x,1<=x<=100 2<=y<=400){
      |            ^~
main.c:7:24: error: expected ')' before numeric constant
    7 |         if(2x,1<=x<=100 2<=y<=400){
      |           ~            ^~
      |                        )
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: invalid suffix "x" on integer constant
    8 |         2x=y
      |         ^~
main.c:8:9: error: expected '(' before numeric constant
    8 |         2x=y
      |         ^~
      |         (
Language: C++

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

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

#pragma GCC optimize("O3")
#include<bits/stdc++.h>

using namespace std;
typedef long long ll;

#define REP(i,n) for(ll i=0;i<ll(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<ll(b);i++)
#define FORD(i,a,b) for(ll i=a;i>ll(b);i--)
#define ALL(x) x.begin(),x.end() 
#define SIZE(x) ll(x.size()) 
#define INF 1000000000000 
#define MOD 1000000007 
#define MAXR 100000 
#define PB push_back 
#define MP make_pair 
#define F first 
#define S second 
#define Umap unordered_map
#define Uset unordered_set


signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int X, Y;
    cin >> X >> Y;;
    
  	bool flag = false;
  	REP(i, A) {
        int sosu = i*2 + (X-i)*4;
        if (sosu == Y) flag = true;
    }
  
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: 'A' was not declared in this scope
   32 |         REP(i, A) {
      |                ^
a.cc:7:34: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(ll i=0;i<ll(n);i++)
      |                                  ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int X, Y;
  cin >> X >> Y;
  
  for(int i = 0; i < X; i++){
    int j;
    j = X - i;
    string ans;
    if(2*i + 4*j == Y){
      ans = "YES";
    }
    else {
      ans = "NO";
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
using namespace std;

int main(){
  int X, Y;
  cin >> X >> Y;
  
  int a, b;
  for(int i = 0; i < X; i++){
    j = X - i;
    string ans;
    if(2*i + 4*j == Y){
      ans = "YES";
    }
    else {
      ans = "NO";
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'j' was not declared in this scope
   10 |     j = X - i;
      |     ^
a.cc:19:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

int main(){
  int X, Y;
  cin >> X >> Y;
  
  int a, b;
  for(int i = 0; i < X; i++){
    a = i;
    b = X - a;
    string ans;
    if(2*a + 4*b == Y){
      ans = "YES";
      break;
    }
    else {
      ans = "NO";
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X >> Y;
      |   ^~~
a.cc:9:5: error: 'string' was not declared in this scope
    9 |     string ans;
      |     ^~~~~~
a.cc:11:7: error: 'ans' was not declared in this scope
   11 |       ans = "YES";
      |       ^~~
a.cc:15:7: error: 'ans' was not declared in this scope
   15 |       ans = "NO";
      |       ^~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << ans << endl;
      |   ^~~~
a.cc:18:11: error: 'ans' was not declared in this scope
   18 |   cout << ans << endl;
      |           ^~~
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int X, Y;
  cin >> X >> Y;
  
  int a, b;
  for(int i = 0; i < X; i++){
    a = i;
    b = X - a;
    string ans;
    if(2*a + 4*b == Y){
      ans = "YES";
    }
    else {
      ans = "NO";
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

void solve()
{
   return;
}
int main() {
    int n,l;
    cin>>n>>l;
    string and= "No";
    for(int i=1;i<=n;i++)
    {
        int rem= n-i;
        if(2* i + 4* rem == l)
        ans="Yes";
    }
    cout<<and<<endl;
    return;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected unqualified-id before '=' token
   11 |     string and= "No";
      |               ^
a.cc:16:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |         ans="Yes";
      |         ^~~
      |         abs
a.cc:18:14: error: expected identifier before '<<' token
   18 |     cout<<and<<endl;
      |              ^~
a.cc:19:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |     return;
      |     ^~~~~~
Language: C++

/*
*
* author: ian macleod
*
*/

#include <bits/stdc++.h>

using namespace std;

typedef long long int ll;
typedef vector<long long int> vll;

#define IO                 \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \
    cout.tie(0);
 
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fo(i,a,b) for(ll i = a; i<=b;i+=1)
#define rf(i,a,b) for(ll i=a;i>=b;i--)

ll power(ll x, ll y) {
    ll res = 1;     // Initialize result
    x = x ;
    if (y==0)return 1;
    if(x==0)return 0;
    while (y > 0) {
        if (y & 1)
            res = (res*x);
        y = y>>1; // y = y/2
        x = (x*x);  // Change x to x^2
    }
    return res;
}


void solve() {
    
    ll x, y;
    cin >> x >> y;
    if (y % 2 != 0) {
        cout << "No" << endl;
        return;
    }
    ll r, l;
    l = 2x;
    r = 4x;
    if ( y>r || y<l) {
        cout << "No" << endl;
    }
    else {
        cout << "Yes" << endl;
    }
    return ;
}



int main() {
    solve();
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:47:9: error: unable to find numeric literal operator 'operator""x'
   47 |     l = 2x;
      |         ^~
a.cc:48:9: error: unable to find numeric literal operator 'operator""x'
   48 |     r = 4x;
      |         ^~
Language: C++

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

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

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

#include <iostream>
using namespace std;

int main(){
    int X, Y, i;
    result = 0;
    cin >> X >> Y;
    for (i=0; i<=X; i++){
        if (i*2 + (X-i)*4 == Y){
            cout << "YES";
            return 0;
        }
    }
    cout << "NO";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'result' was not declared in this scope
    6 |     result = 0;
      |     ^~~~~~
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int X = scan.nextInt();
    int Y = scan.nextInt();
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (Y>X && (4*X-Y) => 0 && (Y-2*X)%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:13: error: illegal start of expression
    if (Y>X && (4*X-Y) => 0 && (Y-2*X)%2 == 0) {
                        ^
1 error
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = scan.nextInt();
    int y = scan.nextInt();
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if ((y-2x)%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:13: error: ')' expected
    if ((y-2x)%2 == 0) {
            ^
Main.java:13: error: ';' expected
    if ((y-2x)%2 == 0) {
             ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int X = scan.nextInt();
    int Y = scan.nextInt();
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if ((Y-2X)%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:13: error: ')' expected
    if ((Y-2X)%2 == 0) {
            ^
Main.java:13: error: ';' expected
    if ((Y-2X)%2 == 0) {
             ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int X = scan.nextInt();
    int Y = scan.nextInt();
    int F = Y-2X;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ';' expected
    int F = Y-2X;
               ^
1 error
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int X = scan.nextInt();
    int Y = scan.nextInt();
    int F = Y-2(X);
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ';' expected
    int F = Y-2(X);
               ^
Main.java:10: error: not a statement
    int F = Y-2(X);
                ^
Main.java:10: error: ';' expected
    int F = Y-2(X);
                 ^
3 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int X = scan.nextInt();
    int Y = scan.nextInt();
    int F = (Y-2X)/2;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ')' expected
    int F = (Y-2X)/2;
                ^
Main.java:10: error: ';' expected
    int F = (Y-2X)/2;
                 ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    int F = Y - X;
    /* The equations c + t = X --> 2c + 2t = 2X 
    and 2c + 4t = Y give us 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    X = scan.nextInt();
    ^
  symbol:   variable X
  location: class Main
Main.java:9: error: cannot find symbol
    Y = scan.nextInt();
    ^
  symbol:   variable Y
  location: class Main
Main.java:10: error: cannot find symbol
    int F = Y - X;
            ^
  symbol:   variable Y
  location: class Main
Main.java:10: error: cannot find symbol
    int F = Y - X;
                ^
  symbol:   variable X
  location: class Main
4 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    /* The equations c + t = X --> 2c + 2t = 2X 
    and 2c + 4t = Y give us 2t = Y - 2X */
    
    if ((Y-2X)%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:13: error: ')' expected
    if ((Y-2X)%2 == 0) {
            ^
Main.java:13: error: ';' expected
    if ((Y-2X)%2 == 0) {
             ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = (Y-2(X));
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ')' expected
    float F = (Y-2(X));
                  ^
Main.java:10: error: not a statement
    float F = (Y-2(X));
                   ^
Main.java:10: error: ';' expected
    float F = (Y-2(X));
                    ^
3 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = Y-2(X);
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ';' expected
    float F = Y-2(X);
                 ^
Main.java:10: error: not a statement
    float F = Y-2(X);
                  ^
Main.java:10: error: ';' expected
    float F = Y-2(X);
                   ^
3 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = Y-2X;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%2 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ';' expected
    float F = Y-2X;
                 ^
1 error
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = (Y-2X)/2;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%1 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ')' expected
    float F = (Y-2X)/2;
                  ^
Main.java:10: error: ';' expected
    float F = (Y-2X)/2;
                   ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    int F = (Y - 2X)/2;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%1 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ')' expected
    int F = (Y - 2X)/2;
                  ^
Main.java:10: error: ';' expected
    int F = (Y - 2X)/2;
                   ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = ((Y - 2X)/2);
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%1 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}


Compiler output:
Main.java:10: error: ')' expected
    float F = ((Y - 2X)/2);
                     ^
Main.java:10: error: ';' expected
    float F = ((Y - 2X)/2);
                      ^
2 errors
Language: Java

import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    X = scan.nextInt();
    Y = scan.nextInt();
    float F = (Y - 2X)/2;
    /* This comes from the equations c + t = X 
    --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */
    
    if (F%1 == 0) {
      System.out.println("Yes");
    }
    
    System.out.println("No");
  }
}

Compiler output:
Main.java:10: error: ')' expected
    float F = (Y - 2X)/2;
                    ^
Main.java:10: error: ';' expected
    float F = (Y - 2X)/2;
                     ^
2 errors
Language: C++

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


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

#include<bits/stdc++.h>
#define endl '\n'
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define mod 1000000007
#define FASTIO ios::sync_with_stdio(0); cin.tie(0);
#define REP(i,a,b) for(int i=a;i<b;i++)

using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:46: error: invalid operands of types 'const char [4]' and 'char' to binary 'operator<<'
   20 |     if((y-2*x)%2==0&&(y-2*x)/2<=x) cout<"Yes"<<endl;
      |                                         ~~~~~^~
      |                                         |
      |                                         const char [4]
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

ll mod;

ll powimod(ll x,ll n,ll mod){
    ll res=1;
    while(n){
        if(n&1) res=(res*x)%mod;
        x=(x*x)%mod;
        n>>=1;
    }
    return res;
}

ll powi(ll x,ll n){
    ll res=1;
    while(n){
        if(n&1) res*=x;
        x*=x;
        n>>=1;
    }
    return res;
}

vector<int> z_function(string s) {
    int n = (int) s.length();
    vector<int> z(n);
    for (int i = 1, l = 0, r = 0; i < n; ++i) {
        if (i <= r)
            z[i] = min (r - i + 1, z[i - l]);
        while (i + z[i] < n && s[z[i]] == s[i + z[i]])
            ++z[i];
        if (i + z[i] - 1 > r)
            l = i, r = i + z[i] - 1;
    }
    return z;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: expected unqualified-id before 'int'
   46 |   int x,int y;
      |         ^~~
a.cc:47:11: error: 'y' was not declared in this scope
   47 |   cin>>x>>y;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X >> Y;
      |   ^~~
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "Yes";
      |       ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "No";
      |     ^~~~
Language: C++

int main() {
  int X, Y;
  cin >> X >> Y;
  int judge = 01;
  
  for (int i = 0; i <= 100; i++) {
    if (2 * i + (X - i) * 4 == Y) {
      cout << "Yes";
      judge += 1;
      break;
    }
  }

  if (judge == 0) {
    cout << "No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X >> Y;
      |   ^~~
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "Yes";
      |       ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "No";
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'y' was not declared in this scope
    7 |   if(2*X<=Y && y<=2*X && Y%2==0){
      |                ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: lvalue required as left operand of assignment
    8 |     if(y / 4 + (y%4)/2 <=x && y%2 = 0) cout << "Yes" << endl;
      |        ~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C

#include <stdio.h>

int main()
{
    int x[2];
    char result = "NO"

    for (int s = 0; s < 2; s++)
    {
        scanf("%d", &x[s]);
    }

    for (int v = 0; v < x[0]; v++)
    {
        if (x[1] == ((x[0]-v) * 2 + v * 4))
        {
            result = "YES";
        }
    }
    printf("%c\n", result);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |     char result = "NO"
      |                   ^~~~
main.c:8:5: error: expected ',' or ';' before 'for'
    8 |     for (int s = 0; s < 2; s++)
      |     ^~~
main.c:8:21: error: 's' undeclared (first use in this function)
    8 |     for (int s = 0; s < 2; s++)
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:31: error: expected ';' before ')' token
    8 |     for (int s = 0; s < 2; s++)
      |                               ^
      |                               ;
main.c:8:31: error: expected statement before ')' token
main.c:17:20: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   17 |             result = "YES";
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: unable to find numeric literal operator 'operator""X'
    6 |   if((Y-2X >0)&&((Y-2X)%2==0)) std::cout << "Yes";
      |         ^~
a.cc:6:21: error: unable to find numeric literal operator 'operator""X'
    6 |   if((Y-2X >0)&&((Y-2X)%2==0)) std::cout << "Yes";
      |                     ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |     if (y % 2) {cout << "No"; return;}
      |                               ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |     if (y % 2) {cout << "No"; return;}
      |                               ^~~~~~
Language: Java

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

Compiler output:
Main.java:17: error: bad operand types for binary operator '&&'
if (n==Y && k=X){
         ^
  first type:  boolean
  second type: int
1 error
Language: Java

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

Compiler output:
Main.java:16: error: ';' expected
k= i+j
      ^
Main.java:26: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

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

Compiler output:
Main.java:16: error: cannot find symbol
if (n==b){
       ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

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




Compiler output:
Main.java:16: error: variable n might not have been initialized
}if(n==b){
    ^
1 error
Language: Java

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




Compiler output:
Main.java:16: error: variable f might not have been initialized
n= e+f;
     ^
1 error
Language: Java

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




Compiler output:
Main.java:2: error: <identifier> expected
public class main{java{
                      ^
Main.java:3: error: illegal start of expression
public static void main( String [] args){
^
2 errors
Language: Java

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




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

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




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

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




Compiler output:
Main.java:2: error: '{' expected
public class Solution.java{
                     ^
1 error
Language: Java

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




Compiler output:
Main.java:2: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
1 error