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

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

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

If (a==2||b==2) {
 cout << “no” <<endl”
}
else {
 cout << “yes” << endl;
}

}


Compiler output:
a.cc:9:10: error: extended character “ is not valid in an identifier
    9 |  cout << “no” <<endl”
      |          ^
a.cc:9:10: error: extended character ” is not valid in an identifier
a.cc:9:17: error: extended character ” is not valid in an identifier
    9 |  cout << “no” <<endl”
      |                 ^
a.cc:12:10: error: extended character “ is not valid in an identifier
   12 |  cout << “yes” << endl;
      |          ^
a.cc:12:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:1: error: 'If' was not declared in this scope
    8 | If (a==2||b==2) {
      | ^~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else {
      | ^~~~
a.cc:12:10: error: '\U0000201cyes\U0000201d' was not declared in this scope
   12 |  cout << “yes” << endl;
      |          ^~~~~
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
int main{
  int A;
  cin >> A;
  int B;
  cin >> B;  
  int C;
  int f = 0;
  for(C = 1;C < 4;C++){
    if(A*B*C % 2 == 0){
      f = 1;
    }
  }
  if(f==1){
    cout << No << endl;
  }
  else{
    cout << Yes << 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;
      |   ^~~
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;
      |   ^~~
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> B;
      |   ^~~
a.cc:11:3: error: expected unqualified-id before 'for'
   11 |   for(C = 1;C < 4;C++){
      |   ^~~
a.cc:11:13: error: 'C' does not name a type
   11 |   for(C = 1;C < 4;C++){
      |             ^
a.cc:11:19: error: 'C' does not name a type
   11 |   for(C = 1;C < 4;C++){
      |                   ^
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(f==1){
      |   ^~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else{
      |   ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: Java

import  java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
 
public class Solution {
 
    
        
 
    private static final Scanner scanner = new Scanner(System.in);
 
    public static void main(String[] args) throws IOException {
      Scanner s = new Scanner(System.in);
      int a = s.nextInt();
      int b = s.nextInt();
      
       if(Math.abs(a-b)==2){ System.out.println("Yes");}
          else{System.out.println("No");}
      
        
    }
}

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

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int a,b;
      | ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(a*b%2==0){
      |   ^~
a.cc:9:3: 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*b%2==0){
  cout<<No<<endl;
  }
  else{
  cout<<Yes<endl;
  }
}

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

import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int A = in.nextInt();
      int B = in.nextInt();

      if (A % 2 == 0 || B % 2 == 0) {
        System.out.println("No");
      } else {
        System.out.println("Yes");
      }
    }
  }
}

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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void) {
	int a, b, c = 1;
	int f = 0;
	scanf("%d %d", &a, &b);
	while ((a * b * c) % 2 == 0 && c <= 3) {
		if ((a * b * c) % 2 == 1){
			f = 1;
			break;
		}
		c++;
	}
	if (f == 1)
		printf("Yes\n");
	else
		printf("No\n");


Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected declaration or statement at end of input
   18 |                 printf("No\n");
      |                 ^~~~~~
Language: C++

#include<cstdio>
using namespace std;
int main
{
int a=0,b=0;
scanf("%d %d",&a,&b);
if(a*b%2==0)
{
printf("No\n");
}
else
{
printf("Yes\n");
}
return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int a=0,b=0;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:6:6: error: expected constructor, destructor, or type conversion before '(' token
    6 | scanf("%d %d",&a,&b);
      |      ^
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a*b%2==0)
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin << a;
      |   ^~~
a.cc:9:3: error: 'cin' does not name a type
    9 |   cin << b;
      |   ^~~
a.cc:10:3: error: 'a' does not name a type
   10 |   a * b = sum;
      |   ^
a.cc:11:3: error: 'sum' does not name a type
   11 |   sum % 2 = sum;
      |   ^~~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(sum==0){
      |         ^~
a.cc:15:3: error: expected unqualified-id before 'else'
   15 |   else{
      |   ^~~~
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0;
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: Java

import import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;

public class Solution {

    
        

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) throws IOException {
      Scanner s = new Scanner(System.in);
      int a = s.nextInt();
      int b = s.nextInt();
      
       if(Math.abs(a-b)==2{ System.out.println("Yes");}
          else{System.out.println("No");}
      
        
    }
}


Compiler output:
Main.java:1: error: <identifier> expected
import import java.io.*;
      ^
Main.java:21: error: ')' expected
       if(Math.abs(a-b)==2{ System.out.println("Yes");}
                          ^
2 errors
Language: C++

#include<cstdio>
int main
{
int a=0,b=0;
scanf("%d %d",&a,&b);
if(a*b%2==0)
{
printf("No\n");
}
else
{
printf("Yes\n");
}
return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int a=0,b=0;
      | ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | scanf("%d %d",&a,&b);
      |      ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a*b%2==0)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<stdio.h>
using namespace std;
int main{
  int A;
  cin >> A;
  int B;
  cin >> B;  
  int C;
  int f = 0;
  for(C = 1;C < 4;C++){
    if(A*B*C % 2 == 0){
      f = 1;
    }
  }
  if(f==1){
    cout << No << endl;
  }
  else{
    cout << Yes << endl;
  }
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int A;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> A;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> B;
      |   ^~~
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(C = 1;C < 4;C++){
      |   ^~~
a.cc:10:13: error: 'C' does not name a type
   10 |   for(C = 1;C < 4;C++){
      |             ^
a.cc:10:19: error: 'C' does not name a type
   10 |   for(C = 1;C < 4;C++){
      |                   ^
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(f==1){
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else{
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <stack>
#include <set>
#include <map>


using namespace std;

int main(int argc, const char * argv[]) {
    int a, b;
    cin >> a;
    cin >> b;
    if(a != 2 && b != 2) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
}


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

#include<stdio.h>
int main(void){
int a,b;

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

if(a%2==1 && b%2==1)
printf("Yes");
else
printf("No";)

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected ')' before ';' token
   10 | printf("No";)
      |       ~    ^
      |            )
main.c:10:14: error: expected ';' before 'return'
   10 | printf("No";)
      |              ^
      |              ;
   11 | 
   12 | return 0;
      | ~~~~~~
Language: C++

#include<iosteram>
using namespace std;

int main{
  int a;
  int b;
  int sum;
  cin << a;
  cin << b;
  a * b = sum;
  sum % 2 = sum;
  	if(sum==0){
      cout << "Yes" <<endl;
    }
  else{
    cout << "No" <<endl;
  }
  return 0;
}
      

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

# include <stdio.h>

int main(void)
{
	int A, B,C;
	scanf("%d%d", &A, &B);
	C = A * B;
	if (C % 2 = 1)
		printf("Yes");
	else
		printf("No");
	
	
	return 0;
}

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

#include<cstdio>
int main
{
int a=0,b=0;
scanf("%d %d",&a,&b);
if(a*b%2==0)
{
printf("No\n");
}
else
{
printf("Yes\n");
}
return o;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int a=0,b=0;
      | ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | scanf("%d %d",&a,&b);
      |      ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a*b%2==0)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return o;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double PI = 4*atan(1);
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
const double EPS = 1e-6;
const string YES = "Possible";
const string NO = "Impossible";
#define pb push_back
#define mp make_pair

int A, B;

void solve()
{
	for(int c=1;c<=3;++c){
		int prod = a*b*c;
		if(prod&1){
			cout << "Yes" << endl;
			return;
		}
	}
	cout << "No" << endl;
}

int main()
{
	cin >> A >> B;
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:18:28: error: 'a' was not declared in this scope
   18 |                 int prod = a*b*c;
      |                            ^
a.cc:18:30: error: 'b' was not declared in this scope
   18 |                 int prod = a*b*c;
      |                              ^
Language: C

#include <stdio.h>
int main{
int a,b;
scanf("%d %d",&a,&b);
if((a*b)%2){
printf("No");
}else{
printf("Yes");
}
}

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

# include <stdio.h>

int main(void)
{
	int A, B,C;
	scanf("%d%d", &A, &B);
	C=A*B
	
	if(C%2=1)
		printf("Yes");
	else
		printf("No");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before 'if'
    7 |         C=A*B
      |              ^
      |              ;
    8 | 
    9 |         if(C%2=1)
      |         ~~    
main.c:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
Language: C++

#include<stdio.h>
using namespace std;
int main{
  int A;
  cin >> A;
  int B;
  cin >> B;
  int C = 1;
  int f = 0;
  for(C;C < 4;C++){
    if(A*B*C % 2 == 0){
      f = 1;
    }
  }
  if(f==1){
    cout << No << endl;
  }
  else{
    cout << Yes << endl;
  }
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int A;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> A;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> B;
      |   ^~~
a.cc:10:3: error: expected unqualified-id before 'for'
   10 |   for(C;C < 4;C++){
      |   ^~~
a.cc:10:9: error: 'C' does not name a type
   10 |   for(C;C < 4;C++){
      |         ^
a.cc:10:15: error: 'C' does not name a type
   10 |   for(C;C < 4;C++){
      |               ^
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(f==1){
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else{
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include <iostream>
using namespace std;

int main()
{
	int A, B;
	cin >> A >> B;
	if (A % 2 != 0 && B % 2 != 0)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
    return 0;
}


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

#include<iostream>
using namespace std;

int main()
{
  int a,b;
  cin>>a>>b;
  cout<<a%2&&b%2?'Yes':'No'<<endl;
  return 0;
}

Compiler output:
a.cc:8:18: warning: multi-character character constant [-Wmultichar]
    8 |   cout<<a%2&&b%2?'Yes':'No'<<endl;
      |                  ^~~~~
a.cc:8:24: warning: multi-character character constant [-Wmultichar]
    8 |   cout<<a%2&&b%2?'Yes':'No'<<endl;
      |                        ^~~~
a.cc: In function 'int main()':
a.cc:8:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<a%2&&b%2?'Yes':'No'<<endl;
      |                        ~~~~^~~~~~
Language: C++

var
  i,a,b:longint;
begin
  read(a,b);
  if a>b then
    begin
      i:=a;
      a:=b;
       b:=i;
    end;
  for i:=a to b do
    if (a*b*i) mod 2=1 then
      begin
        write('Yes');
        exit;
      end;
  write('No');
end.

Compiler output:
a.cc:14:15: warning: multi-character character constant [-Wmultichar]
   14 |         write('Yes');
      |               ^~~~~
a.cc:17:9: warning: multi-character character constant [-Wmultichar]
   17 |   write('No');
      |         ^~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
a.cc:3:1: error: 'begin' does not name a type
    3 | begin
      | ^~~~~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if a>b then
      |   ^~
a.cc:8:7: error: 'a' does not name a type
    8 |       a:=b;
      |       ^
a.cc:9:8: error: 'b' does not name a type
    9 |        b:=i;
      |        ^
a.cc:10:5: error: 'end' does not name a type
   10 |     end;
      |     ^~~
a.cc:11:3: error: expected unqualified-id before 'for'
   11 |   for i:=a to b do
      |   ^~~
a.cc:15:9: error: 'exit' does not name a type
   15 |         exit;
      |         ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | var
a.cc:16:7: error: 'end' does not name a type
   16 |       end;
      |       ^~~
a.cc:17:8: error: expected constructor, destructor, or type conversion before '(' token
   17 |   write('No');
      |        ^
a.cc:18:1: error: 'end' does not name a type
   18 | end.
      | ^~~
Language: C++

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

int main(){

  int A,B;

  cin>>A>>B;

  if(A==2 || B==2){
    cout<<"No"<<endl;
  }
  else{
    cout<<"Yes"<<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:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>A>>B;
      |   ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:11:17: error: 'endl' was not declared in this scope
   11 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     cout<<"Yes"<<endl;
      |                  ^~~~
Language: C++

using System;

class Program
{
    static void Main()
    {
        string[] array = Console.ReadLine().Split(' ');
        int A = int.Parse(array[0]);
        int B = int.Parse(array[1]);
        bool flag = false;

        for (int C = 1; C < 3; C++)
        {
            if (A * B * C % 2 == 1)
            {
                flag = true;
                break;
            }
        }

        if (flag) Console.WriteLine("Yes");
        else Console.WriteLine("No");

    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:25:2: error: expected ';' after class definition
   25 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string[] array = Console.ReadLine().Split(' ');
      |         ^~~~~~
a.cc:7:16: error: expected primary-expression before ']' token
    7 |         string[] array = Console.ReadLine().Split(' ');
      |                ^
a.cc:8:17: error: expected primary-expression before 'int'
    8 |         int A = int.Parse(array[0]);
      |                 ^~~
a.cc:9:17: error: expected primary-expression before 'int'
    9 |         int B = int.Parse(array[1]);
      |                 ^~~
a.cc:21:19: error: 'Console' was not declared in this scope
   21 |         if (flag) Console.WriteLine("Yes");
      |                   ^~~~~~~
a.cc:22:14: error: 'Console' was not declared in this scope
   22 |         else Console.WriteLine("No");
      |              ^~~~~~~
Language: C++

#include <stdio.h>
int main{
int a,b;
scanf("%d %d",&a,&b);
if((a*b)%2==0){
printf("No");
}else{
printf("Yes");
}
}


Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int a,b;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
    2 | int main{
      |         ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d %d",&a,&b);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if((a*b)%2==0){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else{
      |  ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <stdio.h>

int main()
{
    int a, b;

    if ((a * b) & 1) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "No" << endl;
      |         ^~~~
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |         cout << "No" << endl;
      |                         ^~~~
Language: Java

import java.util.Scanner;

/**
 * Created by thompson on 08/09/2018.
 */
public class ABC333 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        if (a==2 || b==2)
            System.out.println(false);
        else
            System.out.println(true);


    }
}

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

#include<stdio.h>
#include <string.h>
using namespace std;
int main()
{

  int A_initial,B_initial;
  scanf("%d %d", &A_initial, &B_initial);

  if(A_initial%2==1){
    if(B_initial%2==1){
      printf("Yes\n");
      return 0;
   }
  }

  printf("No\n");

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected '}' at end of input
   17 |   printf("No\n");
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

# include <stdio.h>

int main(void)
{
	int A, B;
	scanf("%d%d", &A, &B);

	if (A*B%2=1)
		printf("Yes");
	else
		printf("No");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: lvalue required as left operand of assignment
    8 |         if (A*B%2=1)
      |                  ^
Language: C++

#include <stdio.h>
int main{
int a,b;
scanf("%d %d",&a,&b);
if((a*b)%2=0){
printf("No");
}else{
printf("Yes");
}
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int a,b;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
    2 | int main{
      |         ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d %d",&a,&b);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if((a*b)%2=0){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else{
      |  ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        if (a==2 || b==2)
            System.out.println(false);
        else
            System.out.println(true);


    }
}

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 <stdio.h>

int main(void){
    int a,b;
    scanf("%d %d",&a,&b);
    for(int c=1;c<=3;c++){
        if((a*b*c)%2==1){
            printf("Yes\n");
            break;
        }
    }
    if(c==4){
        printf("No\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: 'c' undeclared (first use in this function)
   12 |     if(c==4){
      |        ^
main.c:12:8: 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;
  cin>>A>>B;
	int i = 0;
	int flag = 0;
	for (i = 1; i <= 3; i++) {
		if (A*B*C % 2 == 1) flag = 1;
	}
	if (flag) cout << "Yes" << endl;
	else	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'C' was not declared in this scope
   10 |                 if (A*B*C % 2 == 1) flag = 1;
      |                         ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b
  cin>>a>>b;
  if(a==2||b==2)cout<<"No"<<endl;
  else cout<<"Yes"<<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:12: error: 'b' was not declared in this scope
    6 |   if(a==2||b==2)cout<<"No"<<endl;
      |            ^
Language: C++

import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        String ans = "No";

        if(A%2 == 1 && B % 2 == 1){
            ans = "Yes";
        }
        System.out.println(ans);
    }
}

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:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args)
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args)
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args)
      |                                      ^~~~
a.cc:18:2: error: expected ';' after class definition
   18 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:9: error: 'Scanner' was not declared in this scope
    7 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:8:17: error: 'sc' was not declared in this scope
    8 |         int A = sc.nextInt();
      |                 ^~
a.cc:11:9: error: 'String' was not declared in this scope
   11 |         String ans = "No";
      |         ^~~~~~
a.cc:14:13: error: 'ans' was not declared in this scope
   14 |             ans = "Yes";
      |             ^~~
a.cc:16:9: error: 'System' was not declared in this scope
   16 |         System.out.println(ans);
      |         ^~~~~~
a.cc:16:28: error: 'ans' was not declared in this scope
   16 |         System.out.println(ans);
      |                            ^~~
Language: C++

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

#ifdef LOCAL
	#define D(a) cerr << #a << " = " << a << endl
#else
	#define D(a)
	#define cerr false && cerr
#endif
#define fastio ios_base::sync_with_stdio(0); cin.tie(0)
#define dforsn(i,s,n) for(int i=int(n-1);i>=int(s);i--)
#define forsn(i,s,n) for(int i=int(s);i<int(n);i++)
#define dforn(i,n) dforsn(i,0,n)
#define forn(i,n) forsn(i,0,n)
#define all(a) a.begin(),a.end()
#define si(a) int((a).size())
#define pb emplace_back
#define mp make_pair
#define snd second
#define fst first
#define endl '\n'
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef long long ll;

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

    cout << (a*b%2)? "Yes":"No" << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:33: error: invalid operands of types 'const char [3]' and 'char' to binary 'operator<<'
   32 |     cout << (a*b%2)? "Yes":"No" << endl;
      |                            ~~~~ ^~
      |                            |
      |                            const char [3]
Language: C++

using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] inputs = Console.ReadLine().Split(' ');
            int a = int.Parse(inputs[0]);
            int b = int.Parse(inputs[1]);
            if((a * b) % 2 == 1)
            {
                Console.WriteLine("Yes");
            } else
            {
                Console.WriteLine("No");
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:20:6: error: expected ';' after class definition
   20 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] inputs = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] inputs = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int a = int.Parse(inputs[0]);
      |                     ^~~
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int b = int.Parse(inputs[1]);
      |                     ^~~
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |                 Console.WriteLine("Yes");
      |                 ^~~~~~~
a.cc:17:17: error: 'Console' was not declared in this scope
   17 |                 Console.WriteLine("No");
      |                 ^~~~~~~
Language: C++

import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

a,b = Is()
if a%2 == 1 and b % 2 == 1:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys,collections,math;sys.setrecursionlimit(10**7)
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:1:29: error: 'sys' does not name a type
    1 | import sys,collections,math;sys.setrecursionlimit(10**7)
      |                             ^~~
Language: C

#include <stdio.h>

int main(void)
{
  int A,B;

  scanf("%d %d", &A. &B);

  if (A * B %2 == 0) {
    printf("Yes");
  } else {
    printf("No");
  }


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected identifier before '&' token
    7 |   scanf("%d %d", &A. &B);
      |                      ^
Language: C++

#include<ctsio>
using namespace std;
int n,m;
int main(){
	scanf("%d %d",&n,&m);
	if(n % 2 ==0 && m%2==0)
	printf("Yes\n");
	else
	{
		printf("No\n");
	}
	return(0);
}

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

a,b=map(int,input().split())
if a%2==1 and b%2==1 :
    print('Yes')
else :
    print('No')

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

#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#include <array>
#include <cmath>
#include <random>
#include <functional>
#include <climits>
using namespace std;
using lint=long long;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n,m;
  cin>>n>>m;
  cout<<(n==2||m==2)? "No" : "Yes"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:35: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   28 |   cout<<(n==2||m==2)? "No" : "Yes"<<endl;
      |                              ~~~~~^~~~~~
Language: Java

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a == 2 || b == 2) {
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
		
	}
}


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%2 ==1 && B%2 ==1){
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<ensl;
  }
}


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

#include <iostream>
using namespace std;
int main()
{
	int A, B;
	cin >> A >> B;
	if (A % 2 != 0 && B % 2 != 0)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
    return 0;
}

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

# include <stdio.h>

int main(void)
{
	int A, B, ;
	scanf("%d%d", &A, &B);

	if (A*B % 2 = 1)
		printf("Yes");
	else
		printf("No");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected identifier or '(' before ';' token
    5 |         int A, B, ;
      |                   ^
main.c:8:21: error: lvalue required as left operand of assignment
    8 |         if (A*B % 2 = 1)
      |                     ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int A,B;
  cin >> A >> B;
  for(int C = 1;C<=3;C++){
    if((A*B*C) % 2 == 1){
      cout <<"Yes"<<endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
}


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

public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a == 2 || b == 2) {
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
		
	}

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

#include<bits/stdc++.h>

#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define ALL(a) (a).begin(),(a).end()
#define Yes(hoge) cout<<((hoge)?"Yes":"No")<<endl;
#define YES(hoge) cout<<((hoge)?"YES":"NO")<<endl;
using namespace std;
int main(){
  Yes(((a%2) && (b%2)));
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'a' was not declared in this scope
   16 |   Yes(((a%2) && (b%2)));
      |         ^
a.cc:12:27: note: in definition of macro 'Yes'
   12 | #define Yes(hoge) cout<<((hoge)?"Yes":"No")<<endl;
      |                           ^~~~
a.cc:16:18: error: 'b' was not declared in this scope; did you mean 'pb'?
   16 |   Yes(((a%2) && (b%2)));
      |                  ^
a.cc:12:27: note: in definition of macro 'Yes'
   12 | #define Yes(hoge) cout<<((hoge)?"Yes":"No")<<endl;
      |                           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int A, B;
	int i = 0;
	int flag = 0;
	for (i = 1; i <= 3; i++) {
		if (A*B*C % 2 == 1) flag = 1;
	}
	if (flag) cout << "Yes" << endl;
	else	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'C' was not declared in this scope
    9 |                 if (A*B*C % 2 == 1) flag = 1;
      |                         ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int k,n;
    cin>>k>>n;
    if((k*n)%2=1){
        cout<<"Yes";
    }
    else cout<<"No";
    
	return 0;
}

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

#include <iostream>
using namespace std;
int main(){
  int a,b
  cin>>a>>b;
  if(a%2||b%2)cout<<"No"<<endl;
  else cout<<"Yes"<<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%2||b%2)cout<<"No"<<endl;
      |           ^
Language: C++

a,b=map(int,input().split())
if a%2 and b%2 :
    print('Yes')
else :
    print('No')

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

#include<bits/stdc++.h>
#define MAX 10005
using namespace std;
 
int main(){
  int a, b;
  scanf("%d%d", &a, &b);
  cout << (a%2)*(b%2) ? "Yes" : "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << (a%2)*(b%2) ? "Yes" : "No" << endl;
      |                                 ~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int A,B;
  cin >> A >> B;
  for(int C = 1;C<=3;C++){
    if((A*B*C) % == 1){
      cout <<"Yes"<<endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: expected primary-expression before '==' token
   26 |     if((A*B*C) % == 1){
      |                  ^~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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


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

include<bits/stdc++.h>
using namespace std;
int a,b;
int main() {
	cin>>a>>b;
	if(a*b%2) cout<<"Yes";
	else cout<<"No";
	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:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:6:19: error: 'cout' was not declared in this scope
    6 |         if(a*b%2) cout<<"Yes";
      |                   ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |         else cout<<"No";
      |              ^~~~
Language: C

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

int main()
{
    int a,b,n,k,i,j,x,y;
    scanf("%d %d",&a,&b);
    if(a%2!=0&&b%2!=0)
    printf("Yes",);
    else printf("No");

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected expression before ')' token
   11 |     printf("Yes",);
      |                  ^
Language: C++

var
a,b:longint;
begin
read(a,b);
if (a mod 2=0) or (b mod 2=0) then writeln('No')
else writeln('Yes');
end.

Compiler output:
a.cc:5:44: warning: multi-character character constant [-Wmultichar]
    5 | if (a mod 2=0) or (b mod 2=0) then writeln('No')
      |                                            ^~~~
a.cc:6:14: warning: multi-character character constant [-Wmultichar]
    6 | else writeln('Yes');
      |              ^~~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
a.cc:3:1: error: 'begin' does not name a type
    3 | begin
      | ^~~~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if (a mod 2=0) or (b mod 2=0) then writeln('No')
      | ^~
a.cc:7:1: error: 'end' does not name a type
    7 | end.
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int main(){
    int a,b;cin>>a>>b;
    bool f=false;
    for(int i=1;i<=3;i++){
        if((a*b*c)%2)f=true;
    }
    if(f){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'c' was not declared in this scope
   15 |         if((a*b*c)%2)f=true;
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define mod(a, b) ((((a)%(b))+(b))%(b))
#define pb push_back
#define sz(c) int((c).size())

typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<vector<int> > vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;

int main(){
   int a, b; cin >> a >> b;
   cout << ((a * b) % 2) ? "Yes" : "No" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:41: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |    cout << ((a * b) % 2) ? "Yes" : "No" << endl;
      |                                    ~~~~~^~~~~~~
Language: C++

object Main {
  import java.util.Scanner

  def readStrings(n: Int)(implicit sc: Scanner): Array[String] = Array.fill(n) { sc.next() }
  def readInts(n: Int)(implicit sc: Scanner): Array[Int] = Array.fill(n) { sc.nextInt() }
  def readLongs(n: Int)(implicit sc: Scanner): Array[Long] = Array.fill(n) { sc.nextLong() }
  def readLineStrings(implicit sc: Scanner): Array[String] = sc.nextLine().split(' ')
  def readLineInts(implicit sc: Scanner): Array[Int] = readLineStrings.map(_.toInt)
  def readLineLongs(implicit sc: Scanner): Array[Long] = readLineStrings.map(_.toLong)

  def main(args: Array[String]): Unit = solve(new Scanner(System.in))

  def solve(implicit sc: Scanner): Unit = {
    val Array(a, b) = readInts(2)
    val ans = if ((a % 2 == 1) && (b % 2 == 1)) "Yes" else "No"
    println(ans)
  }
}


Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std
  
  int main(){
int a,b,c;
  cin>>a>>b;
  if(a%2 + b%2==2){
  cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 |   int main(){
      |   ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int A, B;
	int i = 0;
	int flag = 0;
	for (i = 1; i <= 3; i++) {
		if (a*b*c % 2 == 1) flag = 1;
	}
	if (flag) cout << "Yes" << endl;
	else	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'a' was not declared in this scope
    9 |                 if (a*b*c % 2 == 1) flag = 1;
      |                     ^
a.cc:9:23: error: 'b' was not declared in this scope
    9 |                 if (a*b*c % 2 == 1) flag = 1;
      |                       ^
a.cc:9:25: error: 'c' was not declared in this scope
    9 |                 if (a*b*c % 2 == 1) flag = 1;
      |                         ^
Language: C++

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

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

#include<bits/stdc++.h>

#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define ALL(a) (a).begin(),(a).end()
#define Yes(hoge) cout<<((hoge)?"Yes":"No")<<endl;
#define YES(hoge) cout<<((hoge)?"YES":"NO")<<endl;
using namespace std;
int main(){
  YES(a%2 && b%2);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'a' was not declared in this scope
   16 |   YES(a%2 && b%2);
      |       ^
a.cc:13:27: note: in definition of macro 'YES'
   13 | #define YES(hoge) cout<<((hoge)?"YES":"NO")<<endl;
      |                           ^~~~
a.cc:16:14: error: 'b' was not declared in this scope; did you mean 'pb'?
   16 |   YES(a%2 && b%2);
      |              ^
a.cc:13:27: note: in definition of macro 'YES'
   13 | #define YES(hoge) cout<<((hoge)?"YES":"NO")<<endl;
      |                           ^~~~