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

#include <bits/stdc++.h>
using namespace std;
 
int main () {
  int a,b;
  cin >> a >> b;
  int c = a*b;
  if (c % 2 == 0) {
    cout << Even << endl;
  }
  if (c % 2 == 1) {
    cout << Odd << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'Even' was not declared in this scope
    9 |     cout << Even << endl;
      |             ^~~~
a.cc:12:13: error: 'Odd' was not declared in this scope
   12 |     cout << Odd << endl;
      |             ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int a,b;
  cin>>a>>b;
  if a*b%2==0
    cout<<"Even"<<endl;
  else
    cout<<"Odd"<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'a'
    7 |   if a*b%2==0
      |      ^
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <math.h>

using namespace std;

typedef long long int ll;
#define rep(i,n) for(int i = 0; i < (n); ++i)
const int MOD = 1000000007;
const int INF = INT_MAX;



int main(int argc, char const *argv[])
{
    int a, b;
    cin >> a >> b;

    if(a*b %2 == 0){
        cout << "Even" << endl;
    }
    else {
        cout << "Odd" << endl:
    }



    return 0;
}




//              g++ -std=c++1z  

Compiler output:
a.cc:10:17: error: 'INT_MAX' was not declared in this scope
   10 | const int INF = INT_MAX;
      |                 ^~~~~~~
a.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <math.h>
  +++ |+#include <climits>
    4 | 
a.cc: In function 'int main(int, const char**)':
a.cc:23:30: error: expected ';' before ':' token
   23 |         cout << "Odd" << endl:
      |                              ^
      |                              ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b, D;
  cin >> a >> b ; 
  D = a*b ; 
  if( D%2 =1 ){
    cout << "Odd" << endl;
  }
  	else{
      cout << "Even" << endl;
}}

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

#include "iostream"
using namespace std;
 
int main() {
  int a,b;
  cin >> a >> b;
  int c = a*b;
  if( c % 2 == 0) {
      cout "Even";
  } else {
      cout "Odd";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before string constant
    9 |       cout "Even";
      |           ^~~~~~~
      |           ;
a.cc:11:11: error: expected ';' before string constant
   11 |       cout "Odd";
      |           ^~~~~~
      |           ;
Language: C++

#include "iostream"
using std;
 
int main() {
  int a,b;
  cin >> a >> b;
  int c = a*b;
  if( c % 2 == 0) {
      cout "Even";
  } else {
      cout "Odd";
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'std'
    2 | using std;
      |       ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout "Even";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout "Odd";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include "iostream"
using namespace std;
 
int a,b;
cin >> a >> b;
int c = a*b;
if( c % 2 == 0) {
	cout "Even";
} else {
	cout "Odd";
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if( c % 2 == 0) {
      | ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 | } else {
      |   ^~~~
Language: C++

#include "iostream"
using std;
 
int a,b;
cin >> a >> b;
int c = a*b;
if( c % 2 == 0) {
	cout "Even";
} else {
	cout "Odd";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'std'
    2 | using std;
      |       ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if( c % 2 == 0) {
      | ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 | } else {
      |   ^~~~
Language: C++

#include "iostream"

int a,b;
cin >> a >> b;
int c = a*b;
if c % 2 == 0 {
	cout "Even";
} else {
	cout "Odd";
}

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> a >> b;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if c % 2 == 0 {
      | ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 | } else {
      |   ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <utility>
#include <cmath>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll, ll> P;
typedef vector<vector<P>> vvP;
#define rep(i, n) for(ll i = 0; i < n; i++)
#define exrep(i, a, b) for(ll i = a; i <= b; i++)
#define out(x) cout << x << endl
#define exout(x) printf("%.10f\n", x)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define pb push_back
#define re0 return 0
const ll mod = 1000000007;
const ll INF = 1e16;
const ll MAX_N = 100010;

int main() {
    ll a, b,;
    cin >> a >> b;

    if(a%2 == 0 || b%2 == 0) {
        out("Even");
    }
    else {
        out("Odd");
    }

    re0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
  cin >> a;
  cin >> b;
  
  if (a*b%2 == 1){
    cout << "Odd" << endl; // 2
  }else{
    cout << "Even" << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
  cin >> a;
  cin >> b;
  
  if (a*b%2 == 1){
    cout << "Odd" << endl; // 2
  else{
    cout << "Even" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else{
      |   ^~~~
a.cc:10:18: note: to match this '{'
   10 |   if (a*b%2 == 1){
      |                  ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
  cin >> a;
  cin >> b;
  
  if (a*b%2 = 1){
    cout << "Odd" << endl; // 2
  else{
    cout << "Even" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: lvalue required as left operand of assignment
   10 |   if (a*b%2 = 1){
      |       ~~~^~
a.cc:12:3: error: expected '}' before 'else'
   12 |   else{
      |   ^~~~
a.cc:10:17: note: to match this '{'
   10 |   if (a*b%2 = 1){
      |                 ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a,b;
    cin >> a >> b;
    
    c =  a * b ;
  
    if ( c % 2 == 0) { cout << "Even" << endl;        }
    else { cout << "Odd" << endl; }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'c' was not declared in this scope
    8 |     c =  a * b ;
      |     ^
Language: Java

		import java.util.*;

		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

		if ((a * b) % 2 == 0) {
			System.out.println("Even");
		} else {
			System.out.println("Odd");
		}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: class, interface, enum, or record expected
		if ((a * b) % 2 == 0) {
		^
Main.java:9: error: class, interface, enum, or record expected
		} else {
		^
Main.java:11: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

		import java.util.*;
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

		int seki = a * b;
		if (seki % 2 == 0) {
			System.out.println("Even");
		} else {
			System.out.println("Odd");
		}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: class, interface, enum, or record expected
		if (seki % 2 == 0) {
		^
Main.java:9: error: class, interface, enum, or record expected
		} else {
		^
Main.java:11: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

		int seki = a * b;
		if (seki % 2 == 0) {
			System.out.println("Even");
		} else {
			System.out.println("Odd");
		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
		if (seki % 2 == 0) {
		^
Main.java:8: error: class, interface, enum, or record expected
		} else {
		^
Main.java:10: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

		int seki = a * b;
		if (seki % 2 == 0) {
			System.out.println("Even");
		} else {
			System.out.println("Odd");
		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		int seki = a * b;
		^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
		if (seki % 2 == 0) {
		^
Main.java:4: error: class, interface, enum, or record expected
		} else {
		^
Main.java:6: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

		int a = 5;
		int b = 2;

		int seki = a * b;
		if (seki % 2 == 0) {
			System.out.println("Even");
		} else {
			System.out.println("Odd");
		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		int a = 5;
		^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		if (seki % 2 == 0) {
		^
Main.java:7: error: class, interface, enum, or record expected
		} else {
		^
Main.java:9: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

import java.util.*;
 
public class Main(){
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    if(a * b % 2 == 0){
        System.out.println("Even");
    }else{
        System.out.println("Odd");
    }    
  }
}

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
1 error
Language: C

#include<stdio.h>

int main {
  int a,b;
  scanf("%d,%d", &a, &b);
  
  if(a % 2 == 0 || b % 2 == 0) {
	printf("Even");
  } else {
    printf("Odd");
  }
}

Compiler output:
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main {
      |          ^
Language: C

#include <iostream>
typedef unsigned long ul;
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a, b;
	cin >> a >> b;
	if ((a * b) % 2 == 0)
	{
		std::cout << "Even\n";
	}
	else
	{
		std::cout << "Odd\n";
	}
}

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

#include <iostream>
typedef unsigned long ul;
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a, b;
	cin >> a >> b;
	if ((a * b) % 2 == 0)
	{
		std::cout << "Even¥n";
	}
	else
	{
		std::cout << "Odd¥n";
	}
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  cin >> a >> b;
  int x = a*b;
  if (x%2 == 0){
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  cin >> a >> b;
  int x = a*b;
  if (x/2 == 0){
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" << endl;
}

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

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define Vd vector<double>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b?gcd(b,a%b):a;} //最小公倍数

// デフォルト変数定義
double n,m,a,b,c,d,x,y,z;
string s,t;
//

signed main() {
  RAPID;
  IN2(a,b);
  if(a*b%2==0) OUT("Even");
  else OUT("Odd");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   59 |   if(a*b%2==0) OUT("Even");
      |      ~~~^~
      |       |  |
      |       |  int
      |       double
Language: C++

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

int main(){
  int a,b;
  int p,m;
  cin >> a >> b;
  p = a * b;
  m = p % 2;
  if (m == 0) {
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" << endl;
  }
}
  


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "Even" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:23: error: 'endl' was not declared in this scope
   11 |     cout << "Even" << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue <bits/stdc++.h>
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "Odd" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << "Odd" << endl;
      |                      ^~~~
a.cc:14:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main{
  int a,b;
  int p,m;
  cin >> a >> b;
  p = a * b;
  m = p % 2;
  if (m == 0) {
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" << endl;
  }
}
  


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'p' does not name a type
    8 |   p = a * b;
      |   ^
a.cc:9:3: error: 'm' does not name a type; did you mean 'tm'?
    9 |   m = p % 2;
      |   ^
      |   tm
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if (m == 0) {
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else {
      |   ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

int main{
  int a,b;
  int p,m;
  cin >> a >> b;
  p = a * b;
  m = p % 2;
  if (m == 0) {
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" << endl;
  }
}
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'p' does not name a type
    8 |   p = a * b;
      |   ^
a.cc:9:3: error: 'm' does not name a type
    9 |   m = p % 2;
      |   ^
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if (m == 0) {
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else {
      |   ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b ;

  if ( a*b%2 == 0 ) {
    cout << "Even" << endl;
  } else {
  cout << "Odd" << endl;
}


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

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextint();
    
    if((a*b)%2==0){
      System.out.println("Even");
    }else{
      System.out.println("Odd");
    }
  }
}
        

Compiler output:
Main.java:7: error: cannot find symbol
    int b = sc.nextint();
              ^
  symbol:   method nextint()
  location: variable sc of type Scanner
1 error
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a, b;
  cin >> a >> b;

  if(a*b%2 == 0){
    cout << "odd" << endl;
  }else {
    cout << "even" << endl;
  }
}
return 0;

Compiler output:
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
Language: C++

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

int main() {
	int a, b;
    cin >> a >> b;
  if (a * b % == 0) {
  	cout << "Even" << endl;
  }
  else {
  	cout << "Odd" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '==' token
    7 |   if (a * b % == 0) {
      |               ^~
Language: C++

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

int main() {
	int a, b+
    cin >> a >> b;
  	cout << a * b << endl;
  if (a * b % == 0) {
  	cout << "Even" << endl;
  }
  else {
  	cout << "Odd" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected initializer before '+' token
    5 |         int a, b+
      |                 ^
a.cc:7:21: error: 'b' was not declared in this scope
    7 |         cout << a * b << endl;
      |                     ^
a.cc:8:15: error: expected primary-expression before '==' token
    8 |   if (a * b % == 0) {
      |               ^~
Language: C++

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

int main() {
	int a, b+
    cin >> a >> b;
  	cout << a * b << endl;
  if (a * b % == 0) {
  	cout << "Even" << endl;
  }
  else {
  	cout << "Odd" << endl;
  }
}

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

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

int main() {
  int a, b;
  cin >> a >> b;
  if ((a*b%2) = 1) {
    cout << "Odd" << endl;
  }
  else {
    cout << "Even" << endl;
  }
}

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

a, b = map(int, input().split())
if (a * b) % 2 == 1 :
    print('Odd')
else :
    print('Even')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Odd')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('Even')
      |           ^~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(int, input().split())
      | ^
Language: C++

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

int main() {
  
   int A,B;
  cin>>A>>B;
  
  int c=A*B;
    
  if(c%2==0){
    	cout<<"Even";
    }
  	
  else{
    cout<<"Odd";
    }

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

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

int main() {
  int a,b;
  cin >> a >> b;

  if (a % 2==0) {
    cout << "Even" << endl;
  }
  else if (b % 2==0) {
    cout << "Even" << endl;
  }
  else{
    cout << "Odd" << endl;
 
  
}


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

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

int main() {
  int a,b;
  cin >> a >> b;

  if (a % 2==0) {
    cout << "Even" << endl;
  }
  if (b % 2==0) {
    cout << "Even" << endl;
  }
  else{
    cout << "Odd" << endl;
 
  
}


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

#include <iostream>
using namespace std;
int main(){
  int a,b;
  sin >> a >> b;
  if (a%2 == 0 || b%2 == 0) {
  	cout << "Even" << endl;
  } else {
  	cout << "Odd" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sin' was not declared in this scope
    5 |   sin >> a >> b;
      |   ^~~
Language: C++

#include <stdio.h>
 
void main(){
  unsigned int a,b;
  unsigned long c; 
  
  scanf("%d %d",&a,&b);
  c = a * b;
  if((c%2) == 0){
    printf("Even\n");
  }else{
    printf("Odd\n");
  }
}

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

#include<bits/stdc++.h>
using namespace std;
string to_string(const string& s) {
	return '"' + s + '"';
}
string to_string(const bool b) {
	return (b ? "true" : "false");
}
string to_string(const char* s) {
	return to_string((string)s);
}
string to_string(const char c) {
	string s = "'";
	s += c;
	s += "'";
	return s;
}
template<class T, class U>
string to_string(const pair<T, U>& p) {
	string s = "(";
	s += to_string(p.first);
	s += ", ";
	s += to_string(p.second);
	s += ")";
	return s;
}
template<class T>
string to_string(const T& a) {
	bool first = true;
	string s = "{";
	for (const auto& x : a) {
		if(!first){
			s += ", ";
		}
		first = false;
		s += to_string(x);
	}
	s += "}";
	return s;
}
void debug_out() {cerr << '\n';}
template<class Head, class... Tail>
void debug_out(Head head, Tail... tail) {
	cerr << ' ' << to_string(head);
	debug_out(tail...);
}
#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "] = ", debug_out(__VA_ARGS__)
#else
#define debug(...)
#endif
using ll = long long;
using ld = long double;
const int mod = 998244353;
const int inf = 1e9 + 100;
const ll inf64 = 7e18l;
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout << fixed << setprecision(20);
	int a, b;
	cin >> a >> b;
	if (a % 2 == 0 || b % 2 == 0) {
		cout << "Even\n";
	} else }
	cout << "Odd\n";
 	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:16: error: expected primary-expression before '}' token
   65 |         } else }
      |                ^
a.cc: At global scope:
a.cc:66:9: error: 'cout' does not name a type
   66 |         cout << "Odd\n";
      |         ^~~~
a.cc:67:9: error: expected unqualified-id before 'return'
   67 |         return 0;
      |         ^~~~~~
a.cc:68:1: error: expected declaration before '}' token
   68 | }
      | ^
Language: C++

a,b=map(int,input().split())
 if (a*b)%2==0:
     print('even')
 else:
     print("odd")

Compiler output:
a.cc:3:12: warning: multi-character character constant [-Wmultichar]
    3 |      print('even')
      |            ^~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
     int a,b;
      cin>>a>>b;
      if(a*b%2==0){
      	cout<<"Even"<<endl
      }else{
      	cout<<"Odd"<<endl
      }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before '}' token
    8 |         cout<<"Even"<<endl
      |                           ^
      |                           ;
    9 |       }else{
      |       ~                    
a.cc:10:26: error: expected ';' before '}' token
   10 |         cout<<"Odd"<<endl
      |                          ^
      |                          ;
   11 |       }
      |       ~
Language: C

#include <stdio.h>

int main(){
  
  int a,b,c;
  
  scanf("%d",&a);
  scanf("%d",&b)
  c = a*b;
  
  if (c%2)
    printf("Odd");
  else
    printf("Even");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before 'c'
    8 |   scanf("%d",&b)
      |                 ^
      |                 ;
    9 |   c = a*b;
      |   ~
Language: C++

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

int main(){
  int a,b;
  cin >>a >>b;
  if(a*b%2){
    cout << "Odd" <<endl;
  }else{
    cout << "Even" <<endl;
  }
}

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

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

int main() {
  int a,b,W,X,Y,Z;
  cin >> a >> b;
  W = a * b;
  X = W / 2;
  Y = X * 2;
  Z = W - Y
  if (Z == 0) {
    cout << "Even" << endl;
  }
  if (Z == 1) {
    cout << "Odd" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before 'if'
   10 |   Z = W - Y
      |            ^
      |            ;
   11 |   if (Z == 0) {
      |   ~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
 N == a * b;
  if (N % 2 == 0) {
    cout << "Even" << endl;
  }
  else {
    cout << "Odd" <<endl;
  }
}


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

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

int main(){
  int a,b;
  cit >> a >> b;
  if ((a % 2 == 0) || (b % 2 == 0)){
    cout << "Even" << endl;
  }else{
    cout << "Odd" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cit' was not declared in this scope
    6 |   cit >> a >> b;
      |   ^~~
Language: C++

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

int main(){
  int a,b;
  cit >> a >> b;
  if ((a % 2 == 0) || (b % 2 == 0)){
    cout << "Even" << Endl;
  }else{
    cout << "Odd" << Endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cit' was not declared in this scope
    6 |   cit >> a >> b;
      |   ^~~
a.cc:8:23: error: 'Endl' was not declared in this scope
    8 |     cout << "Even" << Endl;
      |                       ^~~~
a.cc:10:22: error: 'Endl' was not declared in this scope
   10 |     cout << "Odd" << Endl;
      |                      ^~~~
Language: C++

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

int main(){
  int a,b;
  cit >> a >> b;
  if (a % 2 == 0) || (b % 2 == 0){
    cout << 'Even' << Endl;
  }else{
    cout << 'Odd' << Endl;
  }
}

Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'Even' << Endl;
      |             ^~~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'Odd' << Endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cit' was not declared in this scope
    6 |   cit >> a >> b;
      |   ^~~
a.cc:7:19: error: expected primary-expression before '||' token
    7 |   if (a % 2 == 0) || (b % 2 == 0){
      |                   ^~
a.cc:10:22: error: 'Endl' was not declared in this scope
   10 |     cout << 'Odd' << Endl;
      |                      ^~~~
Language: C++

#include <iostream>

int main()
{
  int a, b;
  std::in >> a >> b;
  
  int r = a *b;
  
  std::cout << (r % 2 == 0 ? "Even" : "Odd");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'in' is not a member of 'std'; did you mean 'min'?
    6 |   std::in >> a >> b;
      |        ^~
      |        min
Language: C++

#include <iostream>
#include <string>
#include <math.h>
using namespace std;
using namespace std;
signed main()
{
    int a,b;
    if((a*b)%2==0)
        cout << "Even";
    else
        cout << "Odd";


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

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

int main(){
  int A , B , C;
  cin >> A , B;
  C = A * B;
  if (C%2=1){
    cout << "Odd" << endl;
  }else{
    cout << "Even" << endl;
  }
}

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

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

int main (){
	int a ,b;
	cin >>a > >b;
	int c = a * b ;
	if ( c %2 == 0) puts (" Even ");
	else puts (" Odd ");
	return 0;
}


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

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

int main() {
  int a, b;
  cin >> n >> a;

  int c = a * b % 2;
  
  if (c == 1) {
    cout << "Odd" << endl;
  }
  
  else {
    cout << "Even" << endl;
  }
}


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

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

int main() {
  int a,b;
  cin >> a >> b;

  if (a%2==1 && b%2==1) {
    cout<<"Odd"<<endl;
  } else
    cout<<"Even"<<endl;
}
}

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

import java.util.*;
 
class Main {
  public static void main(String[] args){
	Scanner sc new Scanner(System.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) 
      System.out.println("Even");
    else
      System.out.println("Odd");
  }
}

Compiler output:
Main.java:5: error: ';' expected
	Scanner sc new Scanner(System.in);
	          ^
1 error
Language: Java

import java.util.*;
 
class Main {
  public static void main(String[] args){
	Scanner scanner new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}

Compiler output:
Main.java:5: error: ';' expected
	Scanner scanner new Scanner(System.in);
	               ^
Main.java:12: error: 'else' without 'if'
    else
    ^
2 errors
Language: Java

import java.util.*;
 
class Main {
  public static void main(String[] args){
	Scanner scanner new Scanner(System.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}

Compiler output:
Main.java:5: error: ';' expected
	Scanner scanner new Scanner(System.in);
	               ^
Main.java:12: error: 'else' without 'if'
    else
    ^
2 errors
Language: Java

import java.util.*;
 
calss Main {
  public static void main(String args[]){
	Scanner scanner new Scanner(System.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main {
^
1 error
printing javac parameters to: /w/javac.20260128_172806.args
Language: Java

import java.util.*;
 
class Main {
  public static void main(String[] args){
	Scanner scanner new Scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}

Compiler output:
Main.java:5: error: ';' expected
	Scanner scanner new Scanner(system.in);
	               ^
Main.java:12: error: 'else' without 'if'
    else
    ^
2 errors
Language: Java

import java.util.*;
 
calss Main {
  public static void main(String[] args){
	Scanner scanner new Scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main {
^
1 error
printing javac parameters to: /w/javac.20260128_172806.args
Language: Java

import java.util.*;
 
calss Main {
  public static void main(String args[]){
	Scanner scanner new Scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}
    

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main {
^
1 error
printing javac parameters to: /w/javac.20260128_172807.args
Language: Java

import java.util.*;
 
calss Main{
  public static void main(String args[]){
	Scanner scanner new scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}
    

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
1 error
printing javac parameters to: /w/javac.20260128_172807.args
Language: Java

import java.util.Scanner;
 
calss Main{
  public static void main(String args[]){
	Scanner scanner new scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}
    

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
1 error
printing javac parameters to: /w/javac.20260128_172807.args
Language: Java

import java.util.Scanner;
 
public calss Main{
  public static void main(String args[]){
	Scanner scanner new scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}
    

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public calss Main{
       ^
1 error
printing javac parameters to: /w/javac.20260128_172807.args
Language: Java

java.util.Scanner;

public calss Main{
  public static void main(String args[]){
	Scanner scanner new scanner(system.in);
    
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    if((a * b) % 2 == 0) {
      System.out.println("Even");
    else
      System.out.println("Odd");
    }
  }
}
    

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
java.util.Scanner;
^
Main.java:3: error: class, interface, enum, or record expected
public calss Main{
       ^
2 errors
printing javac parameters to: /w/javac.20260128_172807.args
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  cin>>A;
  cin>>B;
  if (a*b%2==0)
    cout<<"Even"<<endl;
  else
  	cout<<"Odd"<<endl;
}

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

#include "iostream"
using namespace std;

int main(){
  int a,b;
  cin >> a >> b;
  ((a*b)%2 == 0) ? cout << "Even" << endl; : cout << "Odd" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected ':' before ';' token
    7 |   ((a*b)%2 == 0) ? cout << "Even" << endl; : cout << "Odd" << endl;
      |                                          ^
      |                                          :
a.cc:7:42: error: expected primary-expression before ';' token
a.cc:7:44: error: expected primary-expression before ':' token
    7 |   ((a*b)%2 == 0) ? cout << "Even" << endl; : cout << "Odd" << endl;
      |                                            ^
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextInt() % 2 == 0) {
    	result = "Even";
    } else {
        if (scn.nextInt() % 2 == 0) {
          result = "Even";
        else {
          result = "Odd";
        }
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:13: error: 'else' without 'if'
        else {
        ^
Main.java:20: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextInt() % 2 == 0) {
    	result = "Even";
    } else {
        scn.nextInt() % 2 == 0 ? result = "Even" : result = "Odd";
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:11: error: unexpected type
        scn.nextInt() % 2 == 0 ? result = "Even" : result = "Odd";
                               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextInt() % 2 == 0) {
    	result = "Even";
    } else {
        scn.nextInt() % 2 ? result = "Odd" : result = "Even";
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to boolean
        scn.nextInt() % 2 ? result = "Odd" : result = "Even";
                      ^
Main.java:11: error: unexpected type
        scn.nextInt() % 2 ? result = "Odd" : result = "Even";
                          ^
  required: variable
  found:    value
2 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextint() % 2 == 0) {
    	result = "Even";
    } else {
        scn.nextint() % 2 ? result = "Odd" : result = "Even";
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    if (scn.nextint() % 2 == 0) {
           ^
  symbol:   method nextint()
  location: variable scn of type Scanner
Main.java:11: error: cannot find symbol
        scn.nextint() % 2 ? result = "Odd" : result = "Even";
           ^
  symbol:   method nextint()
  location: variable scn of type Scanner
Main.java:11: error: unexpected type
        scn.nextint() % 2 ? result = "Odd" : result = "Even";
                          ^
  required: variable
  found:    value
3 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextint() mod 2 == 0) {
    	result = "Even";
    } else {
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:8: error: ')' expected
    if (scn.nextint() mod 2 == 0) {
                     ^
Main.java:8: error: not a statement
    if (scn.nextint() mod 2 == 0) {
                      ^
Main.java:8: error: ';' expected
    if (scn.nextint() mod 2 == 0) {
                         ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                     ^
Main.java:11: error: not a statement
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                      ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                         ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                                            ^
Main.java:10: error: 'else' without 'if'
    } else {
      ^
8 errors
Language: Java

import java.util.*
public class Main {
  public static void main(String args[]) {
	Scanner scn = new Scanner(System.in);
    String result;
    
    
    if (scn.nextint() mod 2 == 0) {
    	result = "Even";
    } else {
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
    }
    
    System.out.println(result);
  }
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:8: error: ')' expected
    if (scn.nextint() mod 2 == 0) {
                     ^
Main.java:8: error: not a statement
    if (scn.nextint() mod 2 == 0) {
                      ^
Main.java:8: error: ';' expected
    if (scn.nextint() mod 2 == 0) {
                         ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                     ^
Main.java:11: error: not a statement
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                      ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                         ^
Main.java:11: error: ';' expected
        scn.nextint() mod 2 ? result = "Odd" : result = "Even";
                                            ^
Main.java:10: error: 'else' without 'if'
    } else {
      ^
9 errors
Language: C++

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

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

  if (A % 2 == 0 || B % 2 == 0) {
    cout << "Even" << endl;
  }else{
    cout << "Odd" << endl;
}

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

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

int main() {
  int a,b;
  cin >> a >> b;
  
  if((a * b) % 2 = 0)
    cout << "Even" << endl;
  else 
    cout << "Odd" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |   if((a * b) % 2 = 0)
      |      ~~~~~~~~^~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  if(a *b % 2 = 0)
    cout << "Even" << endl;
  else
    cout << "Odd" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |   if(a *b % 2 = 0)
      |      ~~~~~^~~
Language: Java

import java.util*

public class Main{
 public static void main(String[] agrs){
  Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  if(a*b%2==0){
   System.out.println("Even");
  }else{
   System.out.println("Odd");
  }
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*
                ^
1 error
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int a,b,c;
  cin >> a >> b;
  c = a * b;
  
  if(c%2 == 1){
    cout << "Odd" << endl;
  }else{
    cout << "Even" << endl;
}

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