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

#include <iostream>
using namespace std;

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

}

Compiler output:
a.cc:10:21: warning: multi-character character constant [-Wmultichar]
   10 |             cout << 'Odd' <<endl
      |                     ^~~~~
a.cc:16:17: warning: multi-character character constant [-Wmultichar]
   16 |         cout << 'Even' << endl
      |                 ^~~~~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a,b >> endl
      |            ^
a.cc:5:14: error: 'b' was not declared in this scope
    5 |     cin >> a,b >> endl
      |              ^
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else
      |     ^~~~
a.cc:16:31: error: expected ';' before '}' token
   16 |         cout << 'Even' << endl
      |                               ^
      |                               ;
   17 |     }
      |     ~
Language: C

#include<stdio.h>

int main(int argc, char *argv[]){
  if(argv[0] * argv[1] % 2 == 0){
    printf("Even");
  }else{
    printf("Odd");
  }
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: invalid operands to binary * (have 'char *' and 'char *')
    4 |   if(argv[0] * argv[1] % 2 == 0){
      |      ~~~~~~~ ^ ~~~~~~~
      |          |         |
      |          char *    char *
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:10: 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, K;
  cin >> a >> b;
  k=a*b%2;
    
  if (K==1) {
    cout << "Odd" << endl;
  }
  else {
    cout << "Even" << endl;
  }

}


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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'k' was not declared in this scope
    7 |   k=a*b%2
      |   ^
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C

#include<sidio.h>

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

Compiler output:
main.c:1:9: fatal error: sidio.h: No such file or directory
    1 | #include<sidio.h>
      |         ^~~~~~~~~
compilation terminated.
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:10: error: 'A' was not declared in this scope
    6 |   cin >> A >> B;
      |          ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B;
      |               ^
Language: C

#include <stdio.h>

int main() {
    int16_t a = 0,b = 0;
    scanf("%d %d",&a,&b);
    printf("%s\n",(a * b % 2)? "Odd" : "Even");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'int16_t'
    4 |     int16_t a = 0,b = 0;
      |     ^~~~~~~
main.c:2:1: note: 'int16_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdint.h>
    2 |
Language: C

#include <stdio.h>

int main() {
    uint16_t a = 0,b = 0;
    scanf("%d %d",&a,&b);
    printf("%s\n",(a * b % 2)? "Odd" : "Even");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'uint16_t'
    4 |     uint16_t a = 0,b = 0;
      |     ^~~~~~~~
main.c:2:1: note: 'uint16_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdint.h>
    2 |
Language: C++

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

int main() {
  int a, b;
  string op;
  cin >> a >> b;
  op=a*b%2

  if (op == 0) {
    cout << "Even" << endl;
  }
  else{
    cout<<"Odd"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'if'
    8 |   op=a*b%2
      |           ^
      |           ;
    9 | 
   10 |   if (op == 0) {
      |   ~~       
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else{
      |   ^~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

public void main(String[] args){
	Scanner sc = new Scanner();
  	int a = sc.nextInt();
  	int b = sc.nextInt();
  	if(a*b % 2 == 0){
      	System.out.println("even");
    }
    else if(a*b % 2 == 1){
		System.out.println("0dd");
    }
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public void main(String[] args){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <iostream>

int main(){

    int a,b;cin >> a >> b;

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





    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     int a,b;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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:8:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         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;

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:8:9: error: lvalue required as left operand of assignment
    8 |   if (c % 2 = 0) {
      |       ~~^~~
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" << 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:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:11: error: 'a' was not declared in this scope
    7 |   int c = a*b;
      |           ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |   int c = a*b;
      |             ^
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(c % 2 ==0)
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else cout << "Odd" << endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

include<iostream>

using namespace std;

int main(){

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> a >> b;
      |   ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Even" << endl;
      |         ^~~~
a.cc:15:27: error: 'endl' was not declared in this scope
   15 |         cout << "Even" << endl;
      |                           ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "Odd" << endl;
      |         ^~~~
a.cc:17:26: error: 'endl' was not declared in this scope
   17 |         cout << "Odd" << endl;
      |                          ^~~~
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
  public static void main(Strings []args){
                          ^
  symbol:   class Strings
  location: class Main
1 error
Language: C++

import java.util.Scanner;

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'ab' was not declared in this scope; did you mean 'b'?
    8 |   if(x*2 == ab){
      |             ^~
      |             b
a.cc:13:5: error: expected ';' before '}' token
   13 |   }a
      |     ^
      |     ;
   14 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << ((a * b) % 2 == 0) ? "Even" : "Odd" << endl;
      |                                         ~~~~~~^~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'B' was not declared in this scope
    7 |   cout << ((a * B) % 2 == 0) ? "Even" : "Odd" << endl;
      |                 ^
a.cc:7:47: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << ((a * B) % 2 == 0) ? "Even" : "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;
   }
   else{
    cout<<"Odd"<<endl
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before '}' token
   10 |     cout<<"Odd"<<endl
      |                      ^
      |                      ;
   11 | }
      | ~
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:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | 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:10:22: error: expected ';' before '}' token
   10 |     cout<<"Odd"<<endl
      |                      ^
      |                      ;
   11 | }
      | ~                     
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | 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:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:17: note: to match this '{'
    6 |   if(a*b/2 == 0){
      |                 ^
a.cc:9:22: error: expected ';' before '}' token
    9 |     cout<<"Odd"<<endl
      |                      ^
      |                      ;
   10 |     }
      |     ~
Language: C

#include<stdio.h>

int main(void) {
    int a,b;

    scanf("%d", %a);
    scanf("%d", %b);

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
    6 |     scanf("%d", %a);
      |                 ^
main.c:7:17: error: expected expression before '%' token
    7 |     scanf("%d", %b);
      |                 ^
main.c:13:25: error: expected ')' before ';' token
   13 |         printf("Even\n");
      |                         ^
      |                         )
main.c:12:10: note: to match this '('
   12 |     else (
      |          ^
main.c:14:6: error: expected ';' before 'return'
   14 |     )
      |      ^
      |      ;
   15 | 
   16 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(void) {
    int a,b;

    scanf("%d", %a);
    scanf("%d", %b);

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

    return 0
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
    6 |     scanf("%d", %a);
      |                 ^
main.c:7:17: error: expected expression before '%' token
    7 |     scanf("%d", %b);
      |                 ^
main.c:13:25: error: expected ')' before ';' token
   13 |         printf("Even\n");
      |                         ^
      |                         )
main.c:12:10: note: to match this '('
   12 |     else (
      |          ^
main.c:14:6: error: expected ';' before 'return'
   14 |     )
      |      ^
      |      ;
   15 | 
   16 |     return 0
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(void) {
    int a,b;

    scanf("%d", %a);
    scanf("%d", %b);

    if ((a * b) % 2) {
        printf("odd\n");
    }
    else (
        printf("even\n");
    )

    return 0
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
    6 |     scanf("%d", %a);
      |                 ^
main.c:7:17: error: expected expression before '%' token
    7 |     scanf("%d", %b);
      |                 ^
main.c:13:25: error: expected ')' before ';' token
   13 |         printf("even\n");
      |                         ^
      |                         )
main.c:12:10: note: to match this '('
   12 |     else (
      |          ^
main.c:14:6: error: expected ';' before 'return'
   14 |     )
      |      ^
      |      ;
   15 | 
   16 |     return 0
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(void) {
    int a,b;

    scanf("%d%d", %a, %b);

    if ((a * b) % 2) {
        printf("odd\n");
    }
    else (
        printf("even\n");
    )

    return 0
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '%' token
    6 |     scanf("%d%d", %a, %b);
      |                   ^
main.c:12:25: error: expected ')' before ';' token
   12 |         printf("even\n");
      |                         ^
      |                         )
main.c:11:10: note: to match this '('
   11 |     else (
      |          ^
main.c:13:6: error: expected ';' before 'return'
   13 |     )
      |      ^
      |      ;
   14 | 
   15 |     return 0
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(void) {
    int a,b;

    scanf("%d %d", a, b);

    if ((a * b) % 2) {
        printf("odd\n");
    }
    else (
        printf("even\n");
    )

    return 0
}

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected ')' before ';' token
   12 |         printf("even\n");
      |                         ^
      |                         )
main.c:11:10: note: to match this '('
   11 |     else (
      |          ^
main.c:13:6: error: expected ';' before 'return'
   13 |     )
      |      ^
      |      ;
   14 | 
   15 |     return 0
      |     ~~~~~~
Language: Java

package abc086;

import java.util.Scanner;

public class Main086 {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int i1 = sc.nextInt();
        int i2 = sc.nextInt();

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


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

package abc086;


public class Main086 {

    public static void main(String[] args) {

        int i = Integer.parseInt(args[0]) * Integer.parseInt(args[1]) % 2;
        if (i == 0) {
            System.out.println("Even");
        } else {
            System.out.println("Odd");
        }
    }
}


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

#include <iostream>
#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:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  int a, b;
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C++

#include <iostream>
#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:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  int a, b;
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C++

#include <iostream>
#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:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  int a,b;
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C++

#include<stdio.h>
int main() {
  int a;
  int b;
  if(a * b ==

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression at end of input
    5 |   if(a * b ==
      |              ^
a.cc:5:14: error: expected ')' at end of input
    5 |   if(a * b ==
      |     ~        ^
      |              )
a.cc:5:14: error: expected statement at end of input
a.cc:5:14: error: expected '}' at end of input
a.cc:2:12: note: to match this '{'
    2 | int main() {
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:1: error: unknown type name 'iint'; did you mean 'int'?
    2 | iint a,b;
      | ^~~~
      | int
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d",&a,&b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("Odd\n");
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |     printf("Even\n");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'b' was not declared in this scope
    7 |   if ((a * b) % == 0) {
      |            ^
a.cc:7:17: 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;
  
  if (A * B % 2 = 1){
    cout << "odd" << endl;
  }
  
  else {
    cout << "even" << 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 = 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" << 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:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   int c = a * b;
      |           ^
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   int c = a * b;
      |               ^
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if (c % 2 == 0) cout << "Even" << endl;
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else cout << "Odd" << endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
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:3: error: 'c' was not declared in this scope
    8 |   c = a * b;
      |   ^
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: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:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'c' does not name a type
    8 |   c = a * b;
      |   ^
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if (c % 2 == 0) cout << "Even" << endl;
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else cout << "Odd" << endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		               ^
  symbol:   class Scanner
  location: class Main
2 errors
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" << emdl;
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'emdl' was not declared in this scope
   11 |     cout << "Odd" << emdl;
      |                      ^~~~
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:16: error: expected primary-expression before '==' token
    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:8:12: error: 'B' was not declared in this scope
    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 == o) {
    cout << "Even" << endl;
  } else {
  	cout << "Odd" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'B' was not declared in this scope
    8 |   if ( a * B % 2 == o) {
      |            ^
a.cc:8:21: error: 'o' was not declared in this scope
    8 |   if ( a * B % 2 == o) {
      |                     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> a >> b
      |                ^
      |                ;
    7 |     if ( ( a * b )%2 == 1) {
      |     ~~          
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
a.cc:11:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [5]' to binary 'operator<<'
   11 |     count << "Even" << end;}
      |     ~~~~~~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before ':' token
    7 |   cout << (a*b%2 ==0):"Even"?"Odd" << endl;
      |                      ^
      |                      ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  
  cout << (((a*b)%0):"Even"?"Odd") << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: warning: division by zero [-Wdiv-by-zero]
    7 |   cout << (((a*b)%0):"Even"?"Odd") << endl;
      |             ~~~~~^~
a.cc:7:21: error: expected ')' before ':' token
    7 |   cout << (((a*b)%0):"Even"?"Odd") << endl;
      |           ~         ^
      |                     )
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  
  cout << ((a*b)%0):"Even"?"Odd" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: warning: division by zero [-Wdiv-by-zero]
    7 |   cout << ((a*b)%0):"Even"?"Odd" << endl;
      |            ~~~~~^~
a.cc:7:20: error: expected ';' before ':' token
    7 |   cout << ((a*b)%0):"Even"?"Odd" << endl;
      |                    ^
      |                    ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  
  cout << (a*b)%0:"Even"?"Odd" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: warning: division by zero [-Wdiv-by-zero]
    7 |   cout << (a*b)%0:"Even"?"Odd" << endl;
      |           ~~~~~^~
a.cc:7:18: error: expected ';' before ':' token
    7 |   cout << (a*b)%0:"Even"?"Odd" << endl;
      |                  ^
      |                  ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  
  cout << a*b%0:"Even"?"Odd" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: warning: division by zero [-Wdiv-by-zero]
    7 |   cout << a*b%0:"Even"?"Odd" << endl;
      |           ~~~^~
a.cc:7:16: error: expected ';' before ':' token
    7 |   cout << a*b%0:"Even"?"Odd" << endl;
      |                ^
      |                ;
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:16: error: expected ';' before 'if'
    6 |   cin >> a >> b
      |                ^
      |                ;
    7 |     if(a%2==0||b%2==0) {
      |     ~~          
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {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;
    
  else{
      cout << "Odd" << endl;
  }
  
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:8:21: note: to match this '{'
    8 |   if(a * b % 2 == 0){
      |                     ^
a.cc: At global scope:
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:10:5: error: expected '}' before 'else'
   10 |     else{
      |     ^~~~
a.cc:8:21: note: to match this '{'
    8 |   if(a * b % 2 == 0){
      |                     ^
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:6: error: 'aaa' undeclared (first use in this function)
   10 |   if(aaa % 2 == 0){
      |      ^~~
main.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:6: error: 'aaa' undeclared (first use in this function)
   10 |   if(aaa % 2 == 0){
      |      ^~~
main.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:16: warning: multi-character character constant [-Wmultichar]
   11 |    printf("%c",'Even');
      |                ^~~~~~
main.c:13:16: warning: multi-character character constant [-Wmultichar]
   13 |    printf("%c",'Odd');
      |                ^~~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: lvalue required as left operand of assignment
    9 |   else if(a%2=1 && b%2=1)  {cout <<"Odd" << endl;}
      |               ~~^~~~~~
Language: C++

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

int main() {
  int 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:6:3: error: 'c' was not declared in this scope
    6 |   c = a * b;
      |   ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
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 s;
	s=a*b;
  if(s%2==0) cout<<"Even"<<endl;
	else cout<<"Odd"<<endl;
}

Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int a,b;
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b;
      |   ^~~
a.cc:7:9: error: 's' does not name a type
    7 |         s=a*b;
      |         ^
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(s%2==0) cout<<"Even"<<endl;
      |   ^~
a.cc:9:9: error: expected unqualified-id before 'else'
    9 |         else cout<<"Odd"<<endl;
      |         ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

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

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


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

//B
int main(void) {
  int n, k, i, cou=0, tmp;
  scanf(" %d %d", &n, &k);

  if(n * k % 2 == 0) printf("Even");
  else printf("Odd");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf(" %d %d", &n, &k);
      |   ^~~~~
a.cc:6:22: error: 'printf' was not declared in this scope
    6 |   if(n * k % 2 == 0) printf("Even");
      |                      ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | //B
a.cc:7:8: error: 'printf' was not declared in this scope
    7 |   else printf("Odd");
      |        ^~~~~~
a.cc:7:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

#include <string>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <math.h>
 
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);
 
	int x,y,z;
	cin >> x >> y;
    z = x*y;
  
    if(z%2=0){
      cout << "Even" << "\n";
    }else{
      cout << "Odd" << "\n";
    }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: lvalue required as left operand of assignment
   18 |     if(z%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 == 1){
    cout << "Odd" << endl;
  }
  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, 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:10:13: error: 'Odd' was not declared in this scope
   10 |     cout << Odd << endl;
      |             ^~~
a.cc:13:13: error: 'Even' was not declared in this scope
   13 |     cout << Even << endl;
      |             ^~~~
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:10:13: error: 'Odd' was not declared in this scope
   10 |     cout << Odd << endl;
      |             ^~~
a.cc:13:13: error: 'Even' was not declared in this scope
   13 |     cout << Even << endl;
      |             ^~~~
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, 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:8:18: error: expected ';' before 'endl'
    8 |     cout << "Odd" endl;
      |                  ^~~~~
      |                  ;
a.cc:10:19: error: expected ';' before 'endl'
   10 |     cout << "Even" endl;
      |                   ^~~~~
      |                   ;
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();
      	int c = a * b;
      	if(c % 2 == 0){
          System.our.println("Even");
        }
        else{
          System.our.println("Odd");
        }
	}
}


Compiler output:
Main.java:10: error: cannot find symbol
          System.our.println("Even");
                ^
  symbol:   variable our
  location: class System
Main.java:13: error: cannot find symbol
          System.our.println("Odd");
                ^
  symbol:   variable our
  location: class System
2 errors
Language: C++

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();
      	int c = a * b;
      	if(c % 2 == 0){
          System.our.println("Even");
        }
        else{
          System.our.println("Odd");
        }
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
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();
      	int c = a * b;
      	if(c % 2 == 0){
          System.our.println("Even");
        }
        else{
          System.our.println("Odd");
	}
}

Compiler output:
Main.java:15: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef vector<vector<int>> Matrix;
static const int INF = 2000000000;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |   else cout << "Even\n"
      |                        ^
      |                        ;
   16 | }
      | ~
Language: C++

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

        }
        else cout << 'Even' <<endl;
        
    }

Compiler output:
a.cc:9:21: warning: multi-character character constant [-Wmultichar]
    9 |             cout << 'Odd' <<endl:
      |                     ^~~~~
a.cc:12:22: warning: multi-character character constant [-Wmultichar]
   12 |         else cout << 'Even' <<endl;
      |                      ^~~~~~
a.cc: In function 'int main()':
a.cc:5:17: error: found ':' in nested-name-specifier, expected '::'
    5 |         int a, b:
      |                 ^
      |                 ::
a.cc:5:16: error: 'b' has not been declared
    5 |         int a, b:
      |                ^
a.cc:6:13: error: qualified-id in declaration before '>>' token
    6 |         cin >> a >> b:
      |             ^~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else cout << 'Even' <<endl;
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> a >> b;
      |   ^~~
Language: C++

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

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> a >> b;
      |   ^~~
a.cc:5:7: error: cannot declare '::main' to be a global variable
    5 |   int main{
      |       ^~~~
a.cc:6:5: error: expected primary-expression before 'if'
    6 |     if((a*b)%2 == 0){
      |     ^~
a.cc:6:5: error: expected '}' before 'if'
a.cc:5:11: note: to match this '{'
    5 |   int main{
      |           ^
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else{
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> a >> b;
      |   ^~~
a.cc:5:7: error: cannot declare '::main' to be a global variable
    5 |   int main{
      |       ^~~~
a.cc:6:5: error: expected primary-expression before 'if'
    6 |     if(a*b%2 == 0){
      |     ^~
a.cc:6:5: error: expected '}' before 'if'
a.cc:5:11: note: to match this '{'
    5 |   int main{
      |           ^
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else{
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> a >> b;
      |   ^~~
a.cc:5:7: error: cannot declare '::main' to be a global variable
    5 |   int main{
      |       ^~~~
a.cc:6:5: error: expected primary-expression before 'if'
    6 |     if((a*b)%2 == 0){
      |     ^~
a.cc:6:5: error: expected '}' before 'if'
a.cc:5:11: note: to match this '{'
    5 |   int main{
      |           ^
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else{
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
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:14:16: warning: missing terminating " character
   14 |     cout << Odd" << endl;
      |                ^
a.cc:14:16: error: missing terminating " character
   14 |     cout << Odd" << endl;
      |                ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:13: error: 'Odd' was not declared in this scope
   14 |     cout << Odd" << endl;
      |             ^~~
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:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> b;
      |   ^~~
a.cc:9:21: error: 'b' was not declared in this scope
    9 |   if (a % 2 == 1 && b % 2 == 1){
      |                     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'ab' was not declared in this scope; did you mean 'b'?
    7 |   if(ab%2==0){
      |      ^~
      |      b
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'ab' was not declared in this scope; did you mean 'b'?
    7 |   if(ab%2==0){
      |      ^~
      |      b
a.cc:9:5: error: expected '}' before 'else'
    9 |     else{
      |     ^~~~
a.cc:7:14: note: to match this '{'
    7 |   if(ab%2==0){
      |              ^