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

#include<iostream>
int main(){
    int a, b;
    cin >> a >> b;
    if(a > b){
        cout << "Alice" << endl;
    }
    if(a < b){
        cout << "Bob" << endl;
    }
    if(a == b){
        cout << "Draw" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << "Alice" << 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:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << "Alice" << 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "Bob" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << "Bob" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << "Draw" << 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:12:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << "Draw" << 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<iostream>
using namespace std;
int A, B;

int main(){

  scanf("%d %d", &A, &B);
//  scanf("%d\n", B);
  if (A == 1){
    if (B == 1){
      printf("%s\n", "Draw");
    }else{
      printf("%s\n", "Alice");
    }
  }
  if (B == 1 && A !== 1){
    printf("%s\n", "Bob");
  }
  if (A !== 1 && B !== 1){
    if (A < B){
      printf("%s\n", "Bob");
    }else if (A > B){
      printf("%s\n", "Alice");
    }else if (A = B){
      printf("%s\n", "Draw");
    }
  }
  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected primary-expression before '=' token
   16 |   if (B == 1 && A !== 1){
      |                     ^
a.cc:19:11: error: expected primary-expression before '=' token
   19 |   if (A !== 1 && B !== 1){
      |           ^
a.cc:19:22: error: expected primary-expression before '=' token
   19 |   if (A !== 1 && B !== 1){
      |                      ^
Language: C

#include<stdio.h>

int main(){
	int a,b;
	
	scanf("%d %d",&a,&b);
	
	if(a==0 || b==0){
		printf("UnderRange");
	}else if(a>13 || b >13){
		printf("OverRange")
	}else if(a==b){
		printf("Draw");
	}else if(a<b){
		printf("Alice");
	}else{
		printf("Bob")
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:36: error: expected ';' before '}' token
   11 |                 printf("OverRange")
      |                                    ^
      |                                    ;
   12 |         }else if(a==b){
      |         ~                           
main.c:17:30: error: expected ';' before '}' token
   17 |                 printf("Bob")
      |                              ^
      |                              ;
   18 |         }
      |         ~
Language: Java

import java.io.*;
import java.util.*;
public class Testy {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int Alice = in.nextInt();
		int Bob = in.nextInt();
		System.out.println(Alice == Bob ? "Draw" : Alice == 1 ? "Alice" : Bob == 1 ? "Bob" : Alice > Bob ? "Alice" : "Bob");
	}
	
}


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

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if (a == b) {
            System.out.println("Draw");
        } else if ((a > b && b != 1) || a == 1) {
            System.out.println("Alice");
        } else {
            System.out.println("Bob");
        }
    }

}

Compiler output:
Main.java:7: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std;
int n,m,c;
string a[55],b[55];
int main() {
	int i,j,k,l;
	cin>>n>>m;
	for(i=0; i<n; i++) cin>>a[i];
	for(i=0; i<m; i++) cin>>b[i];
	for(i=0; i=<n-m; i++)
		for(j=0; j<=n-m; j++) {
			c = 0;
			for(k=0; k<m; k++) for(l=0; l<m; l++)
				if(a[i+k][j+l] == b[k][l]) c++;
			if(c == m*m) {cout<<"Yes"; return 0;}
		}
	cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before '<' token
   10 |         for(i=0; i=<n-m; i++)
      |                    ^
Language: Java

import java.io.*;
import java.util.*;

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

		if (A == B) {
			System.out.println("Draw");
		}
		else if (A == 1) {
			System.out.println("Alice");
		}
		else if (B == 1) {
			System.out.println("Bob");
		}
		else if (A > B) {
			System.out.println("Alice");
		}
		else {
			System.out.println("Bob");
		}
	}

}

Compiler output:
Main.java:4: error: class OneCardPoker is public, should be declared in a file named OneCardPoker.java
public class OneCardPoker extends Main{
       ^
Main.java:4: error: cannot access Main
public class OneCardPoker extends Main{
                                  ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2 errors
Language: Java

import java.io.*;
import java.util.*;

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

		if (A == B) {
			System.out.println("Draw");
		}
		else if (A == 1) {
			System.out.println("Alice");
		}
		else if (B == 1) {
			System.out.println("Bob");
		}
		else if (A > B) {
			System.out.println("Alice");
		}
		else {
			System.out.println("Bob");
		}
	}

}

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

import java.io.*;
import java.util.*;

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

		if (A == B) {
			System.out.println("Draw");
		}
		else if (A == 1) {
			System.out.println("Alice");
		}
		else if (B == 1) {
			System.out.println("Bob");
		}
		else if (A > B) {
			System.out.println("Alice");
		}
		else {
			System.out.println("Bob");
		}
	}

}

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

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

int main() {
  int a, b;
  cin >> a >> b;
  if (a == 1) {
    if (b == 1) {
      cout << "Draw" << endl;
    } else {
      cout << "Alice" << endl;
    }
    return 0;
  }

  if (b == 1) {
    cout << "Bob" << endl;
    return 0;
  }

  if (a > b) {
    cout << "Alice" << endl;
  } else if (a == b) {
    cout << "Draw" << endl;
  } else {
    cout << "Bob" << endl;
  }

  return 0;
}


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

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int a, b;
    while( cin >> a >> b )
    {
        if(a==b)
            cout << "Draw" << endl;
        else
        {
            if{a==1}
                cout << "Alice" << endl;
            else if(b==1)
                cout << "Bob" << endl;
            else if(a>b)
                cout << "Alice" << endl;
            else
                cout << "Bob" << endl;
        }
    }
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected '(' before '{' token
   14 |             if{a==1}
      |               ^
      |               (
a.cc:16:13: error: 'else' without a previous 'if'
   16 |             else if(b==1)
      |             ^~~~
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std;

int main()
{
	long long lnN, lnM;
	cin >> lnN;
	cin >> lnM;

	char nMatrixN[50][50];
	memset(nMatrixN, NULL, sizeof(nMatrixN));
	for (int i = 0; i < lnN; i++)
	{
		cin >> nMatrixN[i];
	}

	char nMatrixM[50][50];
	memset(nMatrixM, NULL, sizeof(nMatrixM));
	for (int i = 0; i < lnM; i++)
	{
		cin >> nMatrixM[i];
	}

	bool bJubge = false;
	for (int i = 0; i <= (lnN-lnM); i++)
	{
		for (int j = 0; j <= (lnN-lnM); j++)
		{
			// MatrixMのループ用
			bool bMatch = true;
			for (int k = 0; k < lnM; k++)
			{
				if (0 != strnicmp(&nMatrixN[i + k][j], nMatrixM[k], lnM))
				{
					bMatch = false;
					break;
				}
			}

			if (true == bMatch)
			{
				bJubge = true;
				goto JUDGE;
			}
		}
	}

JUDGE:
	if (true == bJubge)
		cout << "Yes";
	else
		cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'memset' was not declared in this scope
   12 |         memset(nMatrixN, NULL, sizeof(nMatrixN));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:34:42: error: 'strnicmp' was not declared in this scope
   34 |                                 if (0 != strnicmp(&nMatrixN[i + k][j], nMatrixM[k], lnM))
      |                                          ^~~~~~~~
Language: C++

#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>

typedef struct edge{
	int u,v;
} EDGE;

int search(int n,int visited[],int node[n][n],int position){
	int node_local[n][n];
	int visited_local[n];
	memcpy(node_local,node,sizeof(int)*n*n);
	memcpy(visited_local,visited,sizeof(int)*n);
	int i,j;
	int sum=0;
	visited_local[position]=1;
	
	/* puts("==========");
	printf("node:%d\n",position+1);
	for(i=0;i<n;i++){
		for(j=0;j<n;j++){
			printf("%d",node_local[i][j]);
		}puts("");
	}
	printf("visited node\n");
	for(i=0;i<n;i++){
		printf("%d",visited_local[i]);
	}puts("");
	puts("=========="); */
	
	visited_local[position]=1;
	for(i=0;i<n;i++){
		if(node_local[position][i]==1){
			node_local[position][i]=0;
			if(visited_local[i]==0){
				sum+=search(n,visited_local,node_local,i);
			}
		}
	}
	
	int allVisited=1;
	for(i=0;i<n;i++){
		if(visited_local[i]==0){
			allVisited=0;
			break;
		}
	}
	
	return sum+allVisited;
}

int main(){
	int n,m;
	scanf("%d %d",&n,&m);
	EDGE e[m];
	int node[n][n];
	int visited[n];
	int i,j;
	for(i=0;i<n;i++){
		visited[i]=0;
		for(j=0;j<n;j++){
			node[i][j]=0;
		}
	}
	
	for(i=0;i<m;i++){
		scanf("%d %d",&e[i].u,&e[i].v);
		e[i].u--;e[i].v--;
		node[e[i].u][e[i].v]=1;
		node[e[i].v][e[i].u]=1;
	}
	
	int position=0;
	printf("%d\n",search(n,visited,node,position));
}


Compiler output:
a.cc:13:42: error: use of parameter outside function body before ']' token
   13 | int search(int n,int visited[],int node[n][n],int position){
      |                                          ^
a.cc:13:45: error: use of parameter outside function body before ']' token
   13 | int search(int n,int visited[],int node[n][n],int position){
      |                                             ^
a.cc:13:46: error: expected ')' before ',' token
   13 | int search(int n,int visited[],int node[n][n],int position){
      |           ~                                  ^
      |                                              )
a.cc:13:47: error: expected unqualified-id before 'int'
   13 | int search(int n,int visited[],int node[n][n],int position){
      |                                               ^~~
Language: C++

#include <iostream>

using namespace std;

int main(){
	int N[2];
	cin >> N[0] >> N[1];
	__int64 map[2][64];
	for (int i = 0; i < 2; i++){
		for (int j = 0; j < N[i]; j++){
			char in[50];
			cin >> in;
			map[i][j] = 0;
			for (int k = 0; k < N[i]; k++){
				if (in[k] == '#') map[i][j] = map[i][j] | (1<<k);
			}
			//cout << static_cast<bitset<8> >(map[i][j]) << endl;
		}
	}
	int mask = (1 << N[1]);
	mask--;

	for (int i = 0; i <= (N[0] - N[1]); i++){
		for (int j = 0; j <= (N[0] - N[1]); j++){
			if (( (map[0][i] & (mask << j)) == (map[1][i] << j))){
				for (int k = 1; k < N[1]; k++){
					if (((map[0][i+k] & (mask << j)) != (map[1][i+k] << j))){
						break;
					}
					if (k == (N[1] - 1)) { cout << "Yes" << endl; return 0; }
				}
			}

		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    8 |         __int64 map[2][64];
      |         ^~~~~~~
      |         __int64_t
a.cc:13:25: error: 'map' was not declared in this scope
   13 |                         map[i][j] = 0;
      |                         ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | 
a.cc:25:32: error: 'map' was not declared in this scope
   25 |                         if (( (map[0][i] & (mask << j)) == (map[1][i] << j))){
      |                                ^~~
a.cc:25:32: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
Language: Java



import java.util.Scanner;

public class OneCardPoker {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int alice = sc.nextInt(), bob = sc.nextInt();
	if(alice == 1 && bob != 1)
	    System.out.println("Alice");
	else if(bob  == 1 && alice != 1)
	    System.out.println("Bob");
	else if(alice < bob)
	    System.out.println("Bob");
	else if(alice > bob)
	    System.out.println("Alice");
	else
	    System.out.println("Draw");
    }

}


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

#include<iostream>

using namespace std;

int maim() {
	 unsigned int a,b;
	 cin >> a >> b;
	 a -= 2;
	 b -= 2;
	 if (a<b)cout << "Bob" << endl;
	 else if (a == b)cout << "Draw" << endl;
	 else cout << "Alice" << endl;
	 return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define PRIME 1000000007
using namespace std;
vector<bool> isprime(1000001, true);
void sieve()
{
	for(int i=2;i*i<=1000001;i++)
	{
		if(isprime[i]==true)
		{
			for(int j=(i+i);j<=1000001;j=j+i)
			{
				isprime[j]=false;
			}
		}
	}
}
int main()
{
	ios_base::sync_with_stdio(0); cin.tie(0);
	int a,b;
	cin>>a>>b;
	if(a==1)
	{
		a=14;
	}
	if(b==1)
	{
		b=14;
	}
	if(a>b)
	{
		cout<<"Alice";
	}
	else
	{
		cout<<"Bob";
	}
	else
	{
		cout<<"Draw";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:9: error: 'else' without a previous 'if'
   40 |         else
      |         ^~~~
Language: C

include<stdio.h>

int main(){
  int a, b;
  scanf("%d %d", &a, &b);
  if(a > b)
    printf("Alice\n");
  else if(a == b)
    printf("Draw\n");
  else
    printf("Bob\n");
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		String imgA[N];
		String imgB[M];
		Boolean checkAB;
		int j;
		int k;
		String s = "No";
		for(int i = 0;i<N;i++){
			imgA[i]=sc.next();
		}
		for(int i = 0;i<M;i++){
			imgB[i]=sc.next();
		}
		for(int i=0;i<(N-M+1);i++){
			for(j=0;j<(N-M+1);j++){
				checkAB = true;
				for (k=0;j<M;j++){
					checkAB = (checkAB) && (imgA[j+k].substring(i, i+M)==imgB[k]);
				}
				if(checkAB){
					s="Yes";
				}
			}
		}
		System.out.println(s);
		sc.close();
        }
}

Compiler output:
Main.java:8: error: ']' expected
		String imgA[N];
		            ^
Main.java:8: error: ';' expected
		String imgA[N];
		             ^
Main.java:9: error: ']' expected
		String imgB[M];
		            ^
Main.java:9: error: ';' expected
		String imgB[M];
		             ^
4 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		String[N] imgA;
		String[M] imgB;
		Boolean checkAB;
		int j;
		int k;
		String s = "No";
		for(int i = 0;i<N;i++){
			imgA[i]=sc.next();
		}
		for(int i = 0;i<M;i++){
			imgB[i]=sc.next();
		}
		for(int i=0;i<(N-M+1);i++){
			for(j=0;j<(N-M+1);j++){
				checkAB = true;
				for (k=0;j<M;j++){
					checkAB = (checkAB) && (imgA[j+k].substring(i, i+M)==imgB[k]);
				}
				if(checkAB){
					s="Yes";
				}
			}
		}
		System.out.println(s);
		sc.close();
        }
}

Compiler output:
Main.java:8: error: not a statement
		String[N] imgA;
		      ^
Main.java:8: error: ';' expected
		String[N] imgA;
		         ^
Main.java:8: error: not a statement
		String[N] imgA;
		          ^
Main.java:9: error: not a statement
		String[M] imgB;
		      ^
Main.java:9: error: ';' expected
		String[M] imgB;
		         ^
Main.java:9: error: not a statement
		String[M] imgB;
		          ^
6 errors
Language: Java

import java.util.*;
import java.io.*;

public class CardPoker{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		if(a == b)
			System.out.println("Draw");
		else if(a == 1)
			System.out.println("Alice");
		else if(b == 1)
			System.out.println("Bob");
		else if(a > b)	
			System.out.println("Alice");
		else
			System.out.println("Bob");		
	}
}

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

import java.util.*;
import java.sio.*;

public class CardPoker{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		if(a == b)
			System.out.println("Draw");
		else if(a == 1)
			System.out.println("Alice");
		else if(b == 1)
			System.out.println("Bob");
		else if(a > b)	
			System.out.println("Alice");
		else
			System.out.println("Bob");		
	}
}

Compiler output:
Main.java:4: error: class CardPoker is public, should be declared in a file named CardPoker.java
public class CardPoker{
       ^
Main.java:2: error: package java.sio does not exist
import java.sio.*;
^
2 errors
Language: C++

#include <iostream>
#include <cstdint>
 
using namespace std;
 
int main()
{
	int_least32_t a, b;
	cin >> a >> b;
 
	if(a == 1) {
		a = 14;
	}
 
	if(b == 1) {
		b == 14;
	}
	
	if(a > b) {
		cout << "Alice" << endl;
	}
	else if(b > a) {
		cout << "Bob" << endl;
	}
	else {
		cou << "Draw" << endl; 
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: 'cou' was not declared in this scope
   26 |                 cou << "Draw" << endl;
      |                 ^~~
Language: Java

import java.util.Scanner;

public class Main {

  public static int[] powerCard = new int[]{2,3,4,5,6,7,8,9,10,11,12,13,1};

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    String[] card = s.split(" ");

    int i = Integer.parseInt(card[0]);
    int j = Integer.parseInt(card[1]);
if ((i < 14 && j < 14) && (i > 0 && j > 0) {
    for (int k = 0; k < powerCard.length; k++){
      if (powerCard[k] == i){
        i = k;
      }
      if (powerCard[k] == j){
        j = k;
      }
    }

    if (i > j){
      System.out.println("Alice");
    }
    else if (i < j){
      System.out.println("Bob");
    }
    else{
      System.out.println("Draw");
    }
}else{
System.out.println("Draw");
}
  }
}


Compiler output:
Main.java:14: error: ')' expected
if ((i < 14 && j < 14) && (i > 0 && j > 0) {
                                          ^
1 error
Language: Java

import java.util.Scanner;

public class OneCardPoker {

  public static int[] powerCard = new int[]{2,3,4,5,6,7,8,9,10,11,12,13,1};

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    String[] card = s.split(" ");

    int i = Integer.parseInt(card[0]);
    int j = Integer.parseInt(card[1]);
if ((i < 14 && j < 14) && (i > 0 && j > 0) {
    for (int k = 0; k < powerCard.length; k++){
      if (powerCard[k] == i){
        i = k;
      }
      if (powerCard[k] == j){
        j = k;
      }
    }

    if (i > j){
      System.out.println("Alice");
    }
    else if (i < j){
      System.out.println("Bob");
    }
    else{
      System.out.println("Draw");
    }
}else{
System.out.println("Draw");
}
  }
}


Compiler output:
Main.java:14: error: ')' expected
if ((i < 14 && j < 14) && (i > 0 && j > 0) {
                                          ^
1 error
Language: C++

#include <iostream>
#include <cstdint>
 
using namespace std;
 
int main()
{
	int_least32_t a, b;
	cin >> a >> b;
 
	if(a == 1) {
		a = 14;
	}
 
	if(b == 1) {
		b == 14;
	}
	
	if(a > b) {
		cout << "Alice" << endl;
	}
	else if(b > a) {
		cout << "Bob" endl;
	}
	else {
		cou << "Draw" << endl; 
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:30: error: expected ';' before 'endl'
   23 |                 cout << "Bob" endl;
      |                              ^~~~~
      |                              ;
a.cc:26:17: error: 'cou' was not declared in this scope
   26 |                 cou << "Draw" << endl;
      |                 ^~~
Language: C++

#include <iostream>

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

  if(a == 1) a = 15;
  if(b == 1) b = 15;
  
  if(a > b) {
    std::cout << "Alice" << std::endl;
  else if(a < b) {
    std::cout << "Bob" << std::endl;
  }else {
    std::cout << "Draw" << std::endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else if(a < b) {
      |   ^~~~
a.cc:10:13: note: to match this '{'
   10 |   if(a > b) {
      |             ^
Language: Java

mport java.io.*;

public class OneCardPoker{
        public static void main(String[] args){
                BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
                String str;
                int checkn = (int)' ';
                String[] s = new String[2];
                int[] a = new int[2];

                try{
                        str = r.readLine();
                        s[0] = str.substring(0,str.indexOf(checkn));
                        s[1] = str.substring(str.indexOf(checkn)+1,str.length());
                }catch(IOException e){
                        System.out.println(e);
                }

                for(int i = 0;i < 2;i++){
                        a[i] = Integer.parseInt(s[i]);
                        if(a[i] == 1){
                                a[i] = 14;
                        }
                }

                if(a[0] > a[1]){
                        System.out.println("Alice");
                }else if(a[0] == a[1]){
                        System.out.println("Draw");
                }else{
                        System.out.println("Bob");
                }
        }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.*;
^
1 error
Language: C++

#include <iostream>
#include <cstdin>

using namespace std;

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

	if(a == 1) {
		a = 14;
	}

	if(b == 1) {
		b == 14;
	}
	
	if(a > b) {
		cout << "Alice" << endl;
	}
	else if(b > a) {
		cout << "Bob" endl;
	}
	else {
		cou << "Draw" << endl; 
	}
}


Compiler output:
a.cc:2:10: fatal error: cstdin: No such file or directory
    2 | #include <cstdin>
      |          ^~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Test {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int input1 = scanner.nextInt();
		int input2 = scanner.nextInt();
		
		if (input1 == input2){
			System.out.println("Draw");
		}else if(input1 == 1 && input2 != 1){
			System.out.println("Alice");
		}else if(input2 == 1 && input1 != 1){
			System.out.println("Bob");
		}else if(input1 > input2){
			System.out.println("Alice");
		}else if(input1 < input2){
			System.out.println("Alice");
		}
		scanner.close();
	}
}


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

import java.util.Scanner;

public class test {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int input1 = scanner.nextInt();
		int input2 = scanner.nextInt();
		
		if (input1 == input2){
			System.out.println("Draw");
		}else if(input1 == 1 && input2 != 1){
			System.out.println("Alice");
		}else if(input2 == 1 && input1 != 1){
			System.out.println("Bob");
		}else if(input1 > input2){
			System.out.println("Alice");
		}else if(input1 < input2){
			System.out.println("Alice");
		}
		scanner.close();
	}
}


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

package accoder;

import java.util.Scanner;

public class test {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int input1 = scanner.nextInt();
		int input2 = scanner.nextInt();
		
		if (input1 == input2){
			System.out.println("Draw");
		}else if(input1 == 1 && input2 != 1){
			System.out.println("Alice");
		}else if(input2 == 1 && input1 != 1){
			System.out.println("Bob");
		}else if(input1 > input2){
			System.out.println("Alice");
		}else if(input1 < input2){
			System.out.println("Alice");
		}
		scanner.close();
	}
}


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



#include<iostream>
using namespace std;
int main{
 int a,b;
 std::cin >> a >>b;
 if(a==1&&b==1){
   std::cout << "Draw" << '\n';
 }else if(a==1){
   std::cout << "Alice" << '\n';
 }else if(b==1){
   std::cout << "Bob" << '\n';
 }else if(a<b){
   std::cout << "Bob" << '\n';
 }else if(a>b){
   std::cout << "Alice" << '\n';
 }else{
   std::cout << "Draw" << '\n';
 }
 return 0;
}


Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:2: error: expected primary-expression before 'int'
    6 |  int a,b;
      |  ^~~
a.cc:6:2: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:7: error: 'cin' in namespace 'std' does not name a type
    7 |  std::cin >> a >>b;
      |       ^~~
In file included from a.cc:3:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:2: error: expected unqualified-id before 'if'
    8 |  if(a==1&&b==1){
      |  ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |  }else if(a==1){
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |  }else if(b==1){
      |   ^~~~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |  }else if(a<b){
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |  }else if(a>b){
      |   ^~~~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |  }else{
      |   ^~~~
a.cc:21:2: error: expected unqualified-id before 'return'
   21 |  return 0;
      |  ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
#include <stdint.h>
using namespace std;
int n,m;
int sub(string a[n],string b[m],int i,int j){
	for(int k=0;k<m;k++){
		if(a[i+k].substr(j,j+m)==b[k]){

		}else{
		return 0;
		}
	}
	cout<<"Yes"<<endl;
				return 1;

}

int main(){
	cin>>n>>m;
	string a[n];
	string b[m];
	for(int i=0;i<n;i++){
		cin>>a[i];
	}
	for(int i=0;i<m;i++){
			cin>>b[i];
	}
	for(int i=0;i<=n-m;i++){
		for(int j=0;j<=n-m;j++){
			if(a[i].substr(j,j+m)==b[0]){
				if(sub(a,b,i,j)==1){
					return 0;
				}
			}
		}
	}
	cout<<"No"<<endl;
		return 0;


}

Compiler output:
a.cc:5:18: error: size of array 'a' is not an integral constant-expression
    5 | int sub(string a[n],string b[m],int i,int j){
      |                  ^
a.cc:5:30: error: size of array 'b' is not an integral constant-expression
    5 | int sub(string a[n],string b[m],int i,int j){
      |                              ^
Language: C++

#include <iostream>

using namspace std;

int main() {
	int A, B;
	cin >> A >> B;
	A = A == 1 ? A : 14;
	B = B == 1 ? B : 14;
	cout << A == B ? "Draw" : A > B ? "Alice" : "Bob" << endl;
	
	return 0;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << A == B ? "Draw" : A > B ? "Alice" : "Bob" << 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:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << A == B ? "Draw" : A > B ? "Alice" : "Bob" << 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)
      |     ^~~~
Language: C++

#include "bits/stdc++.h"

using namespace std;

using ll  =          long long;
using ull = unsigned long long;
const char en='\n';

int main(){
	int a,b
	cin>>a>>b;
	a+=11;
	a%=13;
	b+=11;
	b%=13;
	if(a<b){
		cout<<"Alice"<<en;
	}else if(a>b){
		cout<<"Bob"<<en;
	}else{
		cout<<"Even"<<en;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected initializer before 'cin'
   11 |         cin>>a>>b;
      |         ^~~
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b+=11;
      |         ^
Language: Java

import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == 1) {
			A = 14;
		}
		if (B == 1) {
			B = 14;
		}
		if (A > B) {
			System.out.println("Alice");
			return;
		}
		if (B > A) {
			System.out.println("Bob");
			return;
		} if(A == B) {
			System.out.println("Draw");
		}
	}
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
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();
		sc.close();
		
		String ans;
		if(a==b){
			ans="Draw";
		}else if(a==1){
			ans="Alice";
		}else if(b==1){
			ans="Bob";
		}else{
			ans = a>b ? "Alice":"Bob";
		}
			
		System.out.println(ans);
	
	}

}


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

using ll  =          long long;
using ull = unsigned long long;
const char en='¥n';

int main(){
	int a,b
	cin>>a,b;
	a+=11;
	a%=13;
	b+=11;
	b%=13;
	if(a<b){
		cout<<"Alice"<<en;
	}else if(a>b){
		cout<<"Bob"<<en;
	}else{
		cout<<"Even"<<en;
	}
	return 0;
}

Compiler output:
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 | const char en='¥n';
      |               ^~~~
a.cc:7:15: warning: overflow in conversion from 'int' to 'char' changes value from '12756334' to '110' [-Woverflow]
a.cc: In function 'int main()':
a.cc:11:9: error: expected initializer before 'cin'
   11 |         cin>>a,b;
      |         ^~~
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b+=11;
      |         ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int a;int b;
cin>>a>>b;
if(b==1)b=14;
if(a==1)a=14;
if(a>b)cout<<"Alice";
else if(a<b)cout<<"Bob";
else cout<<"Draw"; 
	retu

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'retu' was not declared in this scope
   12 |         retu
      |         ^~~~
a.cc:12:13: error: expected '}' at end of input
   12 |         retu
      |             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;
public class main {
	public static void main(String[]args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a==1){
			if(b!=1){
				System.out.println("Alice");
			}
		}
		if(b==1){
			if(a!=1){
				System.out.println("Bob");
			}
		}
		 	
		if((a>b)&&(a!=1)&&(b!=1)) System.out.println("Alice");
		if((a<b)&&(a!=1)&&(b!=1)) System.out.println("Bob");
		if(a==b) System.out.println("Draw");
	}
}

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

#include<iostream>
#include<string>
#define vi vector<int>
#define vvi vector<vector<int> >
#define ll long long int
#define vl vector<ll>
#define vvl vector<vector<ll>>
using namespace std;
typedef pair<int, int> pii;
int main(){ll a,b;
cin>>a>>b;
if(a==b)return puts("Draw ") *0;
else if(a==1 ||b==1)a==1 ? cout<<"Alice"<<endl; : cout<<"Bob"<<endl;
else if(a>b) cout<<"Alice "<<endl;
else cout<<"Bob"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:47: error: expected ':' before ';' token
   13 | else if(a==1 ||b==1)a==1 ? cout<<"Alice"<<endl; : cout<<"Bob"<<endl;
      |                                               ^
      |                                               :
a.cc:13:47: error: expected primary-expression before ';' token
a.cc:13:49: error: expected primary-expression before ':' token
   13 | else if(a==1 ||b==1)a==1 ? cout<<"Alice"<<endl; : cout<<"Bob"<<endl;
      |                                                 ^
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else if(a>b) cout<<"Alice "<<endl;
      | ^~~~
Language: Java

import java.util.*;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int CardA = Integer.parseInt(sc.next());
		int CardB = Integer.parseInt(sc.next());
		String s = "";
		if(CardA == 1){
			CardA = 14";
		}

		if(CardB == 1){
			CardB = 14";
		}


		if(CardA > CardB){
			s="Alice";
		}else if(CardB > CardA){
			s="Bob";
		}else if(CardB == CardA){
			s="Draw";
		}
		System.out.println(s);
		sc.close();
	}
}

Compiler output:
Main.java:10: error: unclosed string literal
			CardA = 14";
			          ^
Main.java:14: error: unclosed string literal
			CardB = 14";
			          ^
2 errors
Language: C++

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from fractions import gcd

def readln():
    _res = list(map(int,str(input()).split(' ')))
    return _res

def strong(x,y):
    return (x == 1) or (x > y)

a = readln()
if a[0] == a[1]:
    print("Draw")
elif strong(a[0],a[1]):
    print("Alice")
else:
    print("Bob")


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:4:1: error: 'from' does not name a type
    4 | from fractions import gcd
      | ^~~~
Language: C++


#include "stdafx.h"


int main()
{
	int a, b;

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

	if (a == 1)
		a += 13;
	if (b == 1)
		b += 13;
	
	if (a > b)
		puts("Alice");
	else if (a == b)
		puts("Draw");
	else if (a < b)
		puts("Bob");

    return 0;
}

Compiler output:
a.cc:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(void){
int Alice, Bob;
scanf("%d %d", Alice, Bob);
if(Alice < Bob && 1 < Alice){
printf("Bob");
}
else if(Alice > Bob && 1 < Bob){
printf("Alice")
}
else if(Alice == Bob){
printf("Draw");
}
else if(Alice < Bob && Alice == 1){
printf("Alice");
}
else{
printf("Bob");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before '}' token
    9 | printf("Alice")
      |                ^
      |                ;
   10 | }
      | ~
Language: Java

import java.util.*;
public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if(A<B)
        {
            if(A==1)
            {
                System.out.priln("Alice");
            }
            else
            {
                System.out.println("Bob");
            }
        }
        else if(A>B)
        {
            if(B==1)
            {
                System.out.println("Bob");
            }
            else
            {
                System.out.println("Alice");
            }
        }
        else
        {
            System.out.println("Draw");
        }
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
                System.out.priln("Alice");
                          ^
  symbol:   method priln(String)
  location: variable out of type PrintStream
1 error
Language: Java

mport java.util.Scanner;

/**
 * Created by liguoxiang on 2017/02/11.
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        // スペース区切りの整数の入力
        int b = sc.nextInt();

        if(((a!=b)&&(a==1))|| a>b){
            System.out.println("Alice");
        }else if(((a!=b) && (b==1)) ||a<b){
            System.out.println("Bob");
        }else{
            System.out.println("Draw");
        }


    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

#include<iostream>
#include<vector>
#include<math.h>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << (a == b ? "Draw" : a < b && b =! 1 ? "Alice" : "Bob") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: lvalue required as left operand of assignment
    9 |   cout << (a == b ? "Draw" : a < b && b =! 1 ? "Alice" : "Bob") << endl;
      |                              ~~~~~~^~~~
Language: Java

import java.util.*;
public class a {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int a = sc.nextInt();
		// get two integers separated with half-width break
		int b = sc.nextInt();
		if (a > 12) {
			a = 0;
		}
		if (b > 12) {
			b = 0;
		}
		if (a > b) {
			System.out.println("Alice");
		}
		else {
			if (b > a) {
				System.out.println("Bob");
			}
			else {
				System.out.println("Draw");
			}
		}
		
	}
}
	

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

#include <iostream>
using namespace std;

int main() {
	int a;int b;
cin>>a>>b;
if(b==1)b=14;
if(a==1)a=14;
if(a<b)cout<<Alice;
else if(a>b)cout<<Bob;
else cout<<Draw; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'Alice' was not declared in this scope
    9 | if(a<b)cout<<Alice;
      |              ^~~~~
a.cc:10:19: error: 'Bob' was not declared in this scope
   10 | else if(a>b)cout<<Bob;
      |                   ^~~
a.cc:11:12: error: 'Draw' was not declared in this scope
   11 | else cout<<Draw;
      |            ^~~~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int CardA = Integer.parseInt(sc.next());
		int CardB = Integer.parseInt(sc.next());
		String s;
		if(CardA > CardB){
			s="Alice";
		}else if(CardB > CardA){
			s="Bob";
		}else if(CardB == CardA){
			s="Draw";
		}
		System.out.println(s);
		sc.close();
	}
}

Compiler output:
Main.java:16: error: variable s might not have been initialized
		System.out.println(s);
		                   ^
1 error
Language: C++

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

int main(){
    int a,b;
    cin>>a>>b;
    if(a>b || (a==1 && b!=1)cout<<"Alice"<<endl;
    else if(a<b || (b==1&&a!=1))cout<<"Bob"<<endl;
    else cout<<"Draw"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ';' before 'cout'
    7 |     if(a>b || (a==1 && b!=1)cout<<"Alice"<<endl;
      |                             ^~~~
      |                             ;
a.cc:8:5: error: expected primary-expression before 'else'
    8 |     else if(a<b || (b==1&&a!=1))cout<<"Bob"<<endl;
      |     ^~~~
a.cc:7:49: error: expected ')' before 'else'
    7 |     if(a>b || (a==1 && b!=1)cout<<"Alice"<<endl;
      |       ~                                         ^
      |                                                 )
    8 |     else if(a<b || (b==1&&a!=1))cout<<"Bob"<<endl;
      |     ~~~~
Language: Java

import java.util.*;
public class a {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int a = sc.nextInt();
		// get two integers separated with half-width break
		int b = sc.nextInt();
		if (a > 12) {
			a = 0;
		}
		if (b > 12) {
			b = 0;
		}
		if (a > b) {
			System.out.println("Alice");
		}
		else {
			if (b > a) {
				System.out.println("Bob");
			}
			else {
				System.out.println("Draw");
			}
		}
		
		System.out.println();
	}
}
	

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

a, b = map(int, input().split())

l = ["Alice", "Bob", "Draw"]

if a > b:
    if a == 13 and b == 1:
        idx = 1
    else:
        idx = 0
elif a < b:
    if a == 1 and b == 13:
        idx = 0
    else:
        idx = 1
else:
    idx = 2

print(l[idx])


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(int, input().split())
      | ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int cardA = Integer.parseInt(sc.next());
		int CardB = Integer.parseInt(sc.next());
		String s;
		if(CardA > CardB){
			s="Alice";
		}else if(CardB > CardA){
			s="Bob";
		}else{
			s="Draw";
		}
		System.out.println(s);
		sc.close();
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		if(CardA > CardB){
		   ^
  symbol:   variable CardA
  location: class Main
Main.java:11: error: cannot find symbol
		}else if(CardB > CardA){
		                 ^
  symbol:   variable CardA
  location: class Main
2 errors
Language: Java

import java.util.*;
public class a {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int a = sc.nextInt();
		// get two integers separated with half-width break
		int b = sc.nextInt();
		if (a > 12) {
			a = 0;
		}
		if (b > 12) {
			b = 0;
		}
		if (a > b) {
			System.out.println("Alice");
		}
		else {
			if (b > a) {
				System.out.println("Bob");
			}
			else {
				System.out.println("Draw");
			}
		}
		
		System.out.println();
	}
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#define FOR(i,k,n) for((i)=(k);(i)<(n);(i)++)
#define REP(i,n) for (int i=0;i<(n);i++)
#define pb push_back
#define all(a) (a).begin(),(a).end()  //greater<int>()
using namespace std;

int main(){
	int A,B;

	cin>>A>>B;

	if(A>B){
		cout<<"Alice";
	}

	else if(B>A){
		cout<<"Bob";
	}

	else{
		cout<<"Draw"
	}

   	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:29: error: expected ';' before '}' token
   25 |                 cout<<"Draw"
      |                             ^
      |                             ;
   26 |         }
      |         ~
Language: C

#include<stdio,h>

int main()
{
 int a, c;
 scanf("%d%d", &a, &c);
 if(a==c) printf("Draw");
 else if(a==1) printf("Alice");
 else if(c==1) printf("Bob");
 else if(a>c) printf("Alice");
 else printf("Bob");
 return 0;
}

Compiler output:
main.c:1:9: fatal error: stdio,h: No such file or directory
    1 | #include<stdio,h>
      |         ^~~~~~~~~
compilation terminated.