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

#include <iostream>
using namespace

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

    if (A * B / 2 % 0){
        cout << "Even" << endl; 
    }

    else{
        cout << "Odd" << endl;
    }

}


Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:6:5: 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:8:19: warning: division by zero [-Wdiv-by-zero]
    8 |     if (A * B / 2 % 0){
      |         ~~~~~~~~~~^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "Even" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << "Even" << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << "Odd" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << "Odd" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before ':' token
    7 |   c=a*b:
      |        ^
      |        ;
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
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:5:3: error: expected initializer before 'cin'
    5 |   cin >> a >> b;
      |   ^~~
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   if ( (a*b/2) == 0 )
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |     ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |                   ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |     ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |                   ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |     ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |                   ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"Odd"<<endl;
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |     ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |     cout<<"Even"<<endl;
      |                   ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"Even"<<endl;
      |     ^~~~
a.cc:11:19: error: 'endl' was not declared in this scope
   11 |     cout<<"Even"<<endl;
      |                   ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"Odd"<<endl;
      |     ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     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;
  even cout << "Odd"<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'even' was not declared in this scope
   10 |   even cout << "Odd"<< endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '}' at end of input
   15 |  }
      |   ^
a.cc:4:11: 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 || b%2=0)
    cout << "Even" << endl;
  else
    cout << "Odd" << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b, c;
  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:7:7: error: lvalue required as left operand of assignment
    7 |   if(c%2=0);
      |      ~^~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b, c;
  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:7:7: error: lvalue required as left operand of assignment
    7 |   if(c%2=0)
      |      ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b, c;
  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:7:8: error: lvalue required as left operand of assignment
    7 |   if(c % 2 = 0)
      |      ~~^~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'b' was not declared in this scope
    5 |     cin>>a>>b;
      |             ^
a.cc:6:10: error: lvalue required as left operand of assignment
    6 |     if((a%2=1)&&(b%2=1)){
      |         ~^~
Language: C++

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

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

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include<iostream>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include<iostream>
      | ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 |   if(a*b%2==0){cout<<"Even";}
      |      ~~~^~
      |       |  |
      |       |  int
      |       double
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |   if(a*b%2==0){cout<<"Even";}
      |                ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else{cout<<"Odd";}
      |        ^~~~
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:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: Java

package test;

import java.util.Scanner;

public class Test {

	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:5: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

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: 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

public class Test {

	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:1: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc =  new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Test
Main.java:4: error: cannot find symbol
		Scanner sc =  new Scanner(System.in);
		                  ^
  symbol:   class Scanner
  location: class Test
3 errors
Language: C++

#define <iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc:1:9: error: macro names must be identifiers
    1 | #define <iostream>
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #define <iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Odd" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "Odd" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define <iostream>
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:11:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: no context to resolve type of 'std::endl'
    8 |   cout << "Odd", endl;
      |                  ^~~~
a.cc:10:21: error: no context to resolve type of 'std::endl'
   10 |     cout << "Even", endl;
      |                     ^~~~
Language: C++

process.stdin.resume();
process.stdin.setEncoding('utf8');

var input_lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  input_lines.push(parseInt(line));
});

if((input_lines[0]*input_lines[1]) % 2 === 0) console.log("Even");
else console.log("Odd");

Compiler output:
a.cc:2:27: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.setEncoding('utf8');
      |                           ^~~~~~
a.cc:5:22: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    5 | var reader = require('readline').createInterface({
      |                      ^~~~~~~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 | reader.on('line', (line) => {
      |           ^~~~~~
a.cc:1:1: error: 'process' does not name a type
    1 | process.stdin.resume();
      | ^~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.setEncoding('utf8');
      | ^~~~~~~
a.cc:4:1: error: 'var' does not name a type
    4 | var input_lines = [];
      | ^~~
a.cc:5:1: error: 'var' does not name a type
    5 | var reader = require('readline').createInterface({
      | ^~~
a.cc:8:2: error: expected unqualified-id before ')' token
    8 | });
      |  ^
a.cc:10:1: error: 'reader' does not name a type
   10 | reader.on('line', (line) => {
      | ^~~~~~
a.cc:12:2: error: expected unqualified-id before ')' token
   12 | });
      |  ^
a.cc:14:1: error: expected unqualified-id before 'if'
   14 | if((input_lines[0]*input_lines[1]) % 2 === 0) console.log("Even");
      | ^~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else console.log("Odd");
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'integer' was not declared in this scope
    5 | integer a,b;
      | ^~~~~~~
a.cc:6:8: error: 'a' was not declared in this scope
    6 | cin >> a,b;
      |        ^
a.cc:6:10: error: 'b' was not declared in this scope
    6 | cin >> a,b;
      |          ^
a.cc:8:18: error: no context to resolve type of 'std::endl'
    8 |   cout << "Odd", endl;
      |                  ^~~~
a.cc:10:21: error: no context to resolve type of 'std::endl'
   10 |     cout << "Even", endl;
      |                     ^~~~
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;
  }
  else{
    cout<<"Odd"<<endl;
  }
}

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

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

Compiler output:
a.cc:7:4: error: extended character × is not valid in an identifier
    7 |  c=a×b;
      |    ^
a.cc: In function 'int main()':
a.cc:7:4: error: 'a\U000000d7b' was not declared in this scope
    7 |  c=a×b;
      |    ^~~
a.cc:10:6: error: lvalue required as left operand of assignment
   10 |  if(c%2 = 0){
      |     ~^~
a.cc:13:11: error: lvalue required as left operand of assignment
   13 |  else if(c%2 =! 0){
      |          ~^~
Language: C++

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

Compiler output:
a.cc:7:4: error: extended character × is not valid in an identifier
    7 |  c=a×b;
      |    ^
a.cc: In function 'int main()':
a.cc:7:4: error: 'a\U000000d7b' was not declared in this scope
    7 |  c=a×b;
      |    ^~~
a.cc:10:6: error: lvalue required as left operand of assignment
   10 |  if(c%2=0){
      |     ~^~
a.cc:13:11: error: lvalue required as left operand of assignment
   13 |  else if(c%2=!0){
      |          ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 int a,b;
 cin>>a>>b;
 int c;
 c = a × b ;
 
 if(c%2=0){
  cout<<"even"<<endl;
 }
 even if(c%2=!0){
  cout<<"odd"<<endl;
 }
}

Compiler output:
a.cc:7:8: error: extended character × is not valid in an identifier
    7 |  c = a × b ;
      |        ^
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before '\U000000d7'
    7 |  c = a × b ;
      |       ^~
      |       ;
a.cc:9:6: error: lvalue required as left operand of assignment
    9 |  if(c%2=0){
      |     ~^~
a.cc:12:2: error: 'even' was not declared in this scope
   12 |  even if(c%2=!0){
      |  ^~~~
Language: C++

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


Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'Odd';
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: lvalue required as left operand of assignment
    6 |   if(a*b%2=1)
      |      ~~~^~
Language: C++

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

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'Odd':
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: lvalue required as left operand of assignment
    6 |   if(a*b%2=1)
      |      ~~~^~
a.cc:9:18: error: expected ';' before ':' token
    9 |     cout << 'Odd':
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
int main(void){
  int a,b;
  scanf("%d %d",&a,&b);

  if(a*b%2==0)printf("Odd\n");
  else printf("Even/n");
  
}

return 0;


Compiler output:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C

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

return 0;


Compiler output:
main.c: In function 'main':
main.c:4:12: error: 'd' undeclared (first use in this function)
    4 |   scanf(a,&d);
      |            ^
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    4 |   scanf(a,&d);
      |         ^
      |         |
      |         int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:5:9: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 |   scanf(b,&d);
      |         ^
      |         |
      |         int
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c: At top level:
main.c:12:1: error: expected identifier or '(' before 'return'
   12 | return 0;
      | ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'A' was not declared in this scope
    7 |   A = a%2;
      |   ^
a.cc:8:3: error: 'B' was not declared in this scope
    8 |   B = b%2;
      |   ^
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x = A*B;
      |   ^
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:7:12: error: lvalue required as left operand of assignment
    7 |   if(a%2=0 || 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:6:8: 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>>>a>>b;
  if(a*b%2==0){cout<<"Even"<<endl;}
  if else(a*b%2!=0){cout<<"Odd"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before '>' token
    6 |   cin>>>a>>b;
      |        ^
a.cc:8:6: error: expected '(' before 'else'
    8 |   if else(a*b%2!=0){cout<<"Odd"<<endl;}
      |      ^~~~
      |      (
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;}
  if(a*b%2!=0){cout<<"odd"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: 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>>>a>>b;
  if(a*b/2==0){cout<<"Even"<<endl;}
  if(a*b/2!=0){cout<<"odd"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: 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 >> a >> b;
    
    if ( a/2 == (a-1)/2 && b/2 == (b-1)/2 ) {
      cout << "Odd" << endl;
    }
  even {
    cout << "Even" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'even' was not declared in this scope
   11 |   even {
      |   ^~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
    
    if ( a/2 == (a-1)/2 && b/2 == (b-1)/2 ) {
      cout << "Odd" << endl;
    }
  even if (  a/2 == (a-1)/2 && b/2 == (b-1)/2 ) {
    cout << "Even" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'even' was not declared in this scope
   11 |   even if (  a/2 == (a-1)/2 && b/2 == (b-1)/2 ) {
      |   ^~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
    
    if ( a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      cout << "Odd" << endl;
    }
  even if (  a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
    cout << "Even" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: lvalue required as left operand of assignment
    8 |     if ( a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      |               ~~~~~~~~^~~~~~
a.cc:11:3: error: 'even' was not declared in this scope
   11 |   even if (  a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      |   ^~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b
    
    if ( a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      cout << "Odd" << endl;
    }
  even if (  a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
    cout << "Even" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> a >> b
      |                ^
      |                ;
    7 | 
    8 |     if ( a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      |     ~~          
a.cc:11:3: error: 'even' was not declared in this scope
   11 |   even if (  a/2 =(a-1)/2 && b/2 = (b-1)/2 ) {
      |   ^~~~
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: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   if (a % 2 = 1 && b % 2 = 1) {
      |               ~~^~~~~~~~
Language: C++

#include<stdio.h>

int main() {
	int a,b;
	string r;

	cin >> a >> b;
	
	r = a%2==0 || b%2==0 ? "Even" : "Odd";
	cout << r << endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |         string r;
      |         ^~~~~~
      |         stdin
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b;
      |         ^~~
a.cc:9:9: error: 'r' was not declared in this scope
    9 |         r = a%2==0 || b%2==0 ? "Even" : "Odd";
      |         ^
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << r << endl;
      |         ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |         cout << r << endl;
      |                      ^~~~
Language: C

#include <stdio.h>

int checknum(int num1, int num2)
{
  int sum;
  int rusult;

  sum = num1 * num2;
  result = sum % 2;
  return (result);
}

int main(void) {
  int a;
  int b;
  int i;
  
  i = checknum(a, b);
  if (i = 0)
    printf("Even");
  else
    printf("Odd");
  return (0);
}

Compiler output:
main.c: In function 'checknum':
main.c:9:3: error: 'result' undeclared (first use in this function); did you mean 'rusult'?
    9 |   result = sum % 2;
      |   ^~~~~~
      |   rusult
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc:39:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   39 | 提出情報
      | ^~~~~~~~
Language: Java

package seiji.c86;

import java.util.Scanner;

public class Product {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(check(a,b));
    }

    public static String check(int a, int b) {
        return (a*b % 2 == 0) ? "Even" : "Odd";
    }
}


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

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

int main() {
  int a, b;
  cin >> a >> b;
  if (a * b % == 2) {
  	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 % == 2) {
      |               ^~
Language: C++

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


Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('Odd' if a*b%2 else 'Even')
      |       ^~~~~
a.cc:2:27: warning: multi-character character constant [-Wmultichar]
    2 | print('Odd' if a*b%2 else '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;
  int 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:9:12: error: lvalue required as left operand of assignment
    9 |   if(A * B % 2 = 0)
      |      ~~~~~~^~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  
  if (a*b % 2 = 1){
    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 = 1){
      |       ~~~~^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: redeclaration of 'int x'
    8 |   int x = a * b % 2;
      |       ^
a.cc:5:13: note: 'int x' previously declared here
    5 |   int a, b, x;
      |             ^
Language: C

#include <stdio>

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a=0,b=0;
  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:6:12: error: lvalue required as left operand of assignment
    6 |   if(a%2=0 || b%2=0){
      |          ~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: found ':' in nested-name-specifier, expected '::'
    5 |   int a,b:
      |          ^
      |          ::
a.cc:5:9: error: 'b' has not been declared
    5 |   int a,b:
      |         ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> a >> b;
      |       ^~
a.cc:7:17: error: 'b' was not declared in this scope
    7 |   if (a%2==1 && b%1==1)
      |                 ^
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:13: 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 % 2 = 0 || B % 2 = 0 ) {
    cout << "Even" << endl;
  }
  else  {
    cout << "Odd" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   if (A % 2 = 0 || B % 2 = 0 ) {
      |               ~~^~~~~~~~
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:8:17: error: lvalue required as left operand of assignment
    8 |   if (A % 2 = 0 || B % 2 =0 ) {
      |               ~~^~~~~~~~
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:8:17: error: lvalue required as left operand of assignment
    8 |   if (A % 2 = 0 || B % 2 = 0) {
      |               ~~^~~~~~~~
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:8:17: error: lvalue required as left operand of assignment
    8 |   if (A % 2 = 0 || B % 2 =0) {
      |               ~~^~~~~~~~
Language: C

#include〈stdio.h〉
int main(void)
{
  int a;
  int b;
  scanf("%d%d",&ab);
  if(a*b/2==0)
    printf("Even",¥n);
  else
    printf("Odd");
  return 0;
}


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include〈stdio.h〉
      |         ^~
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d%d",&ab);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include〈stdio.h〉
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d%d",&ab);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:17: error: 'ab' undeclared (first use in this function); did you mean 'b'?
    6 |   scanf("%d%d",&ab);
      |                 ^~
      |                 b
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Even",¥n);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:19: error: stray '\302' in program
    8 |     printf("Even",<U+00A5>n);
      |                   ^~~~~~~~
main.c:8:20: error: 'n' undeclared (first use in this function)
    8 |     printf("Even",¥n);
      |                    ^
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |     printf("Odd");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
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:7:12: error: expected ')' before '__'
    7 |   if(a%2==0 __ b%2== 0){
      |     ~      ^~~
      |            )
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before '__'
    7 |   if(a %2 ==0 __ b% == 0){
      |     ~        ^~~
      |              )
Language: C++

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

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   int c = a * b　% 2;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'b\U00003000' was not declared in this scope
    9 |   int c = a * b　% 2;
      |               ^~~
Language: C++

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

Compiler output:
a.cc:9:18: error: extended character 　 is not valid in an identifier
    9 |   int c = (a * b)　% 2;
      |                  ^
a.cc: In function 'int main()':
a.cc:9:18: error: expected ',' or ';' before '\U00003000'
    9 |   int c = (a * b)　% 2;
      |                  ^~
Language: C++

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

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   int c = a * b　% 2;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'b\U00003000' was not declared in this scope
    9 |   int c = a * b　% 2;
      |               ^~~
Language: C++

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

Compiler output:
a.cc:9:15: error: extended character 　 is not valid in an identifier
    9 |   int c = a * b　% 2;
      |               ^
a.cc: In function 'int main()':
a.cc:9:15: error: 'b\U00003000' was not declared in this scope
    9 |   int c = a * b　% 2;
      |               ^~~
a.cc:10:7: error: lvalue required as left operand of assignment
   10 |   if(c/2 = 0){
      |      ~^~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'cout'
    6 |   cin >> a >> b
      |                ^
      |                ;
    7 |     cout << a * b << endl;
      |     ~~~~        
a.cc:10:7: error: lvalue required as left operand of assignment
   10 |   if(c/2 = 0){
      |      ~^~
a.cc:12:3: error: expected '}' before 'else'
   12 |   else
      |   ^~~~
a.cc:10:14: note: to match this '{'
   10 |   if(c/2 = 0){
      |              ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java

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


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

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


Compiler output:
Main.java:5: error: unexpected type
    if ((a * b) % 2 = 0) {
                ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class AProduct{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);

        int a, b;

        a = scanner.nextInt();
        b = scanner.nextInt();

        int seki;
        seki = a * b;

        //奇数
        if(seki % 2 == 1){
            System.out.println("Odd");
        }
        else{
            System.out.println("Even");
        }
    }
}

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

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

int main() {
  int a, b, hantei;
  cin >> N >> A;

  hantei = a * b % 2;

  if (hantei == 0) {
    cout << "Even" << endl;
  }
  else{
    cout <<"Odd"<<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;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A;
      |               ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: 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, 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:9:21: error: 'B' was not declared in this scope
    9 |   if (a % 2 == 0 || B % 2 == 0) {
      |                     ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:11:16: error: 'cout' was not declared in this scope
   11 |   if(x%2 == 1) cout << "Even" << endl;
      |                ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |   if(x%2 == 1) cout << "Even" << endl;
      |                                  ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout << "Odd" << endl;
      |        ^~~~
a.cc:12:25: error: 'endl' was not declared in this scope
   12 |   else cout << "Odd" << endl;
      |                         ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int num1, num2;
	int num1*num2;
	scanf("%d,%d", &num1, &num2);

	if(num1*num2 % 2 == 0)
	{
		printf("Even");
	}
	else
	{
		printf("Odd");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    5 |         int num1*num2;
      |                 ^
main.c:5:17: error: invalid type argument of unary '*' (have 'int')
    5 |         int num1*num2;
      |                 ^~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int num1, num2;
	int num1*num2
	scanf("%d,%d", &num1, &num2);

	if(num1*num2 % 2 == 0)
	{
		printf("Even");
	}
	else
	{
		printf("Odd");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    5 |         int num1*num2
      |                 ^
main.c:5:17: error: invalid type argument of unary '*' (have 'int')
    5 |         int num1*num2
      |                 ^~~~~
main.c:5:22: error: expected ';' before 'scanf'
    5 |         int num1*num2
      |                      ^
      |                      ;
    6 |         scanf("%d,%d", &num1, &num2);
      |         ~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int num1, num2;
	printf("number1?¥n");
	scanf("%d", &num1);
	printf("number2?¥n");
	scanf("%d", &num2);

	if(num1 * num2 % 2 = 0)
	{
		printf("Even");
	}
	else
	{
		printf("Odd");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:28: error: lvalue required as left operand of assignment
   10 |         if(num1 * num2 % 2 = 0)
      |                            ^
Language: C++

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

int main() {
  int a;
  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:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
Language: Java

public class Aaa {
  public static void main(String[] args) {
    boolean flag = (Integer.parseInt(args[0]) % 2 == 0) || (Integer.parseInt(args[0]) % 2 == 0);
    String out = flag ? "Even" : "Odd";
    System.out.print(out);
  }
}


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

class even() {
	public static void main(String[] args) {
      boolean flag = (Integer.parseInt(args[0]) % 2 == 0) || (Integer.parseInt(args[0]) % 2 == 0);
      String out = flag ? "Even" : "Odd";
      System.out.print(out);
  }
}


Compiler output:
Main.java:1: error: '{' expected
class even() {
          ^
1 error