criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main2 {
        private static class FastScanner {
            private BufferedReader reader = null;
            private StringTokenizer tokenizer = null;

            public FastScanner(InputStream in) {
                reader = new BufferedReader(new InputStreamReader(in));
                tokenizer = null;
            }

            public String next() {
                if (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    try {
                        tokenizer = new StringTokenizer(reader.readLine());
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                }
                return tokenizer.nextToken();
            }

            public String nextLine() {
                if (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    try {
                        return reader.readLine();
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                }

                return tokenizer.nextToken("\n");
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public int[] nextIntArray(int n) {
                int[] a = new int[n];
                for (int i = 0; i < n; i++)
                    a[i] = nextInt();
                return a;
            }

            public long[] nextLongArray(int n) {
                long[] a = new long[n];
                for (int i = 0; i < n; i++)
                    a[i] = nextLong();
                return a;
            }
        }
    public static void main(String[] args) {
        Main2.FastScanner sc = new Main2.FastScanner(System.in);

        int N = 0;
        N = sc.nextInt();
        boolean flag = true;
        int array[] = new int[N];
        for (int i = 0; i < N; i++) {
            array[i] = sc.nextInt();
        }
        for (int i = 0; i < N; i++) {
            if (array[i] % 2 == 0 && array[i] != 0) {
                if (array[i] % 3 == 0 || array[i] % 5 == 0) {
                    flag = true;
                } else {
                    flag = false;
                }
            }
        }

        System.out.println(flag == true ? "APPROVED" : "DENIED");
    }
}



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

import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str;
		
		if ((a==b || b==c) && !(a==b && b==c))
		{
			String str = "Yes";
		} else {
			String str = "No";
		}
		
		System.out.println(str);
	}
}

Compiler output:
Main.java:14: error: variable str is already defined in method main(String[])
			String str = "Yes";
			       ^
Main.java:16: error: variable str is already defined in method main(String[])
			String str = "No";
			       ^
2 errors
Language: Java

import java.util.*;
public class Main
{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str;
		
		if ((a==b || b==c) && !(a==b && b==c))
		{
			String str = "Yes";
		} else {
			String str = "No";
		}
		
	System.out.println(str);
}

Compiler output:
Main.java:19: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
public class Main
{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str;
		
		if ((a==b || b==c) && !(a==b && b==c))
		{
			String str = "Yes";
		} else if {
			String str = "No";
		}
		
	System.out.println(str);
}

Compiler output:
Main.java:14: error: '(' expected
		} else if {
		         ^
Main.java:14: error: illegal start of expression
		} else if {
		          ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.*;
public class Main
{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str = new String();
		
		if ((a==b || b==c) && !(a==b && b==c))
		{
			str = "Yes";
		} else if {
			str = "No";
		}
		
	System.out.println(str);
}

Compiler output:
Main.java:14: error: '(' expected
		} else if {
		         ^
Main.java:14: error: illegal start of expression
		} else if {
		          ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ff first
#define ss second
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x.size())
#define PI 3.1415926535897932384626433832795
int MOD=1e9+7;
int powmod(int a,int l, int md){int res=1;while(l){if(l&1)res=res*a%md;l/=2;a=a*a%md;}return res;}
int binpow(int a,int l){int res=1;while(l){if(l&1)res=res*a;l/=2;a=a*a;}return res;}
typedef long long ll; typedef vector<ll> vi; typedef pair<ll, ll> ii; typedef vector<ii> vii;
#define pb push_back
int __set(int b, int i) {return b|(1LL<<i);} //set ith bit
int __unset(int b, int i) {return b&(~(1UL<<i));}
int __check(int b, int i) {return b&(1LL<<i);} //returns 0 if ith bit is 0
int mulmod(int a, int b, int md) {return ((a%md)*(b%md))%md;}
int addmod(int a, int b, int md) {return (a+b)%md;}
int submod(int a, int b, int md) {return (((a-b)%md)+md)%md;}
int divmod(int a, int b, int md) {return mulmod(a, powmod(b, md-2, md), md);} //if md is prime;
const ll inf = 0xFFFFFFFFFFFFFFFL; //very large number
priority_queue<int, vector<int>, greater<int> > pq; //for min priority_queue
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
clock_t time_p=clock();
void time()
{
    time_p=clock()-time_p;
    cerr<<"Time Taken : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";
}


signed main(void)
{
	IOS;
	int ar[3];
	for(int i = 0; i < n; i++)
		cin>>a[i];
	sort(a,a+n);
	if(a[0]==a[i] && a[0]!=a[2])
		cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:28: error: 'n' was not declared in this scope
   36 |         for(int i = 0; i < n; i++)
      |                            ^
a.cc:37:22: error: 'a' was not declared in this scope
   37 |                 cin>>a[i];
      |                      ^
a.cc:38:14: error: 'a' was not declared in this scope; did you mean 'ar'?
   38 |         sort(a,a+n);
      |              ^
      |              ar
a.cc:38:18: error: 'n' was not declared in this scope; did you mean 'yn'?
   38 |         sort(a,a+n);
      |                  ^
      |                  yn
a.cc:39:20: error: 'i' was not declared in this scope; did you mean 'vi'?
   39 |         if(a[0]==a[i] && a[0]!=a[2])
      |                    ^
      |                    vi
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str;
		if ((a==b || b==c) && !(a==b && b==c))
		{
			str = "Yes";
			} else if {
			str = "No";
		}
		System.out.println(str);
	}

Compiler output:
Main.java:12: error: '(' expected
			} else if {
			         ^
Main.java:12: error: illegal start of expression
			} else if {
			          ^
Main.java:16: error: reached end of file while parsing
	}
	 ^
3 errors
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
  vector<int> a(3);
  for (int i = 0; i < 3; ++i)
    	cin >> a[i];
  sort(a.begin(), a.end());
  if (a[0] == a[1] && a[1] != a[2])
    return (0 & puts("Yes");
  if (a[1] == a[2] && a[1] != a[0])
    return (0 & puts("Yes");
  else puts("No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ')' before ';' token
   11 |     return (0 & puts("Yes");
      |            ~               ^
      |                            )
a.cc:13:28: error: expected ')' before ';' token
   13 |     return (0 & puts("Yes");
      |            ~               ^
      |                            )
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str;
		if ((a==b || b==c) && !(a==b && b==c))
		{
			str="Yes";
			}else if{
			str="No";
		}
		System.out.println(str);
	}

Compiler output:
Main.java:12: error: '(' expected
			}else if{
			        ^
Main.java:16: error: reached end of file while parsing
	}
	 ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b= sc.nextInt();
		int c= sc.nextInt();
		String str;
		if ((a==b || b==c) && !(a==b && b==c)){
		str="Yes";
		}else{
		str="No";
		}else if{
		System.out.println(str);
		}
	}

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

ort java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }
 
        }
 
        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String str
		if (a==b || b==c) && !(a==b && b==c){
		str="Yes"
		}else{
		str="No"
		}
		System.out.println(str);
		}
	}

Compiler output:
Main.java:8: error: ';' expected
		String str
		          ^
Main.java:9: error: illegal start of expression
		if (a==b || b==c) && !(a==b && b==c){
		                  ^
Main.java:9: error: ';' expected
		if (a==b || b==c) && !(a==b && b==c){
		                                    ^
Main.java:10: error: ';' expected
		str="Yes"
		         ^
Main.java:12: error: ';' expected
		str="No"
		        ^
Main.java:11: error: 'else' without 'if'
		}else{
		 ^
6 errors
Language: C

#inlcude "stdio.h"
int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b)
  {
    if(a==c)
      printf("No\n");
    else
      printf("Yes\n");
  }
  else
  {
    if(a==c||b==c)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude "stdio.h"
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude "stdio.h"
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("No\n");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |       printf("Yes\n");
      |       ^~~~~~
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |       printf("Yes\n");
      |       ^~~~~~
main.c:16:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |       printf("No\n");
      |       ^~~~~~
main.c:18:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
using std;

int main()
{
int a,b,c;
cin>>a>>b>>c;
  if(a==b==c)
    cout<<"No"<<endl;
  else if(a!=b!=c)
    cout<<"No"<<endl;
  else 
    cout<<"Yes"<<endl;
  
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'std'
    2 | using std;
      |       ^~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>a>>b>>c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"No"<<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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<"No"<<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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"No"<<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:11:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<"No"<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<"Yes"<<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>

int main(int argc, char** argv)
{
  short n1=argv[0];
  short n2=argv[1];
  short n3=argv[2];
	if(n1==n2==n3)
      std::cout<<"No"<<std::endl;
  	else if(n1!=n2!=n3)
      std::cout<<"No"<<std::endl;
  	else
      std::cout<<"Yes"<<std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:18: error: invalid conversion from 'char*' to 'short int' [-fpermissive]
    5 |   short n1=argv[0];
      |            ~~~~~~^
      |                  |
      |                  char*
a.cc:6:18: error: invalid conversion from 'char*' to 'short int' [-fpermissive]
    6 |   short n2=argv[1];
      |            ~~~~~~^
      |                  |
      |                  char*
a.cc:7:18: error: invalid conversion from 'char*' to 'short int' [-fpermissive]
    7 |   short n3=argv[2];
      |            ~~~~~~^
      |                  |
      |                  char*
Language: Java

import java.util.HashMap;
import java.util.Scanner;
import java.util.Map;
import java.util.Collections;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> hm = new HashMap<>();
		int max = 1;
		for(int i=0;i<n;i++) {
		    String s = sc.next();
		    if(!hm.containsKey(s))
		    	hm.put(s,1);
		    else {
		    	hm.put(s, hm.get(s)+1);
		    	max = Math.max(max, map.get(s)+1);
			}
		}      	
      	List<String> ans = new ArrayList<>();
		for(String i: hm.keySet())
			if(map.hey(key) == max)
				ans.add(key);
		Collections.sort(ans);
		for(Sring item: ans)
			System.out.println(item);
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
		    	max = Math.max(max, map.get(s)+1);
		    	                    ^
  symbol:   variable map
  location: class Main
Main.java:20: error: cannot find symbol
      	List<String> ans = new ArrayList<>();
      	^
  symbol:   class List
  location: class Main
Main.java:20: error: cannot find symbol
      	List<String> ans = new ArrayList<>();
      	                       ^
  symbol:   class ArrayList
  location: class Main
Main.java:22: error: cannot find symbol
			if(map.hey(key) == max)
			           ^
  symbol:   variable key
  location: class Main
Main.java:22: error: cannot find symbol
			if(map.hey(key) == max)
			   ^
  symbol:   variable map
  location: class Main
Main.java:23: error: cannot find symbol
				ans.add(key);
				        ^
  symbol:   variable key
  location: class Main
Main.java:25: error: cannot find symbol
		for(Sring item: ans)
		    ^
  symbol:   class Sring
  location: class Main
7 errors
Language: C++

int main(int argc, char** argv)
{
	if((int)argv[0]==(int)argv[1]==(int)argv[2])
      std::cout<<"No"<<std::endl;
  	else if((int)argv[0]!=(int)argv[1]!=(int)argv[2])
      std::cout<<"No"<<std::endl;
  	else
      std::cout<<"Yes"<<std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:3:12: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    3 |         if((int)argv[0]==(int)argv[1]==(int)argv[2])
      |            ^~~~~~~~~~~~
a.cc:3:26: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    3 |         if((int)argv[0]==(int)argv[1]==(int)argv[2])
      |                          ^~~~~~~~~~~~
a.cc:3:40: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    3 |         if((int)argv[0]==(int)argv[1]==(int)argv[2])
      |                                        ^~~~~~~~~~~~
a.cc:4:12: error: 'cout' is not a member of 'std'
    4 |       std::cout<<"No"<<std::endl;
      |            ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(int argc, char** argv)
a.cc:4:29: error: 'endl' is not a member of 'std'
    4 |       std::cout<<"No"<<std::endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(int argc, char** argv)
a.cc:5:17: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    5 |         else if((int)argv[0]!=(int)argv[1]!=(int)argv[2])
      |                 ^~~~~~~~~~~~
a.cc:5:31: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    5 |         else if((int)argv[0]!=(int)argv[1]!=(int)argv[2])
      |                               ^~~~~~~~~~~~
a.cc:5:45: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    5 |         else if((int)argv[0]!=(int)argv[1]!=(int)argv[2])
      |                                             ^~~~~~~~~~~~
a.cc:6:12: error: 'cout' is not a member of 'std'
    6 |       std::cout<<"No"<<std::endl;
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:29: error: 'endl' is not a member of 'std'
    6 |       std::cout<<"No"<<std::endl;
      |                             ^~~~
a.cc:6:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:8:12: error: 'cout' is not a member of 'std'
    8 |       std::cout<<"Yes"<<std::endl;
      |            ^~~~
a.cc:8:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: error: 'endl' is not a member of 'std'
    8 |       std::cout<<"Yes"<<std::endl;
      |                              ^~~~
a.cc:8:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

int main(int argc, char** argv)
{
	if(argv[0]==argv[1]==argv[2])
      std::cout<<"No"<<std::endl;
  	else if(argv[0]!=argv[1]!=argv[2])
      std::cout<<"No"<<std::endl;
  	else
      std::cout<<"Yes"<<std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 |         if(argv[0]==argv[1]==argv[2])
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:7:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         else if(argv[0]!=argv[1]!=argv[2])
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~
Language: C

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

int mian(){
	int A,B,C;
	
	if(scanf("%d",&A) == 0){
		fprintf(stderr,"No\n");
	}

	if(scanf("%d",&B) == 0){
		fprintf(stderr,"No\n");
	}
	
	if(scanf("%d",&C) == 0){
		fprintf(stderr,"No\n");
	}


	/*if( A==B && A != C){
		printf("Yes\n");
	}
	else if(A==C && A != B){
		printf("Yes\n");
	}
	else if(B==C && B != A){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}*/

	printf("%d\n%d\n%d\n",A,B,C);
	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 <iostream>
#include <set>
using namespace std;
int main()
{
  int a,b,c;
  set<int> s;
  sin >> a >> b >> c;
  s.insert(a);
  s.insert(b);
  s.insert(c);
  if (s.size()==2){
  	cout << "Yes";
  }
  else cout << "No";
}

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

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

int mian(){
	int A;
	int B;
	int C;

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

	if( A==B && A != C){
		printf("Yes\n");
	}
	else if(A==C && A != B){
		printf("Yes\n");
	}
	else if(B==C && B != A){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	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>
using namespace std;

int main() {
  int a,b,c;
  cin >> a >> b >> c;
  if (a==b==c){
    cout << "No" << endl;
    }
    
  if else (a==b || a==c ||b==c){
    cout << "Yes" << endl;
    }
  
  else{
    cout << "No" << endl;
    }
    
  
}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else (a==b || a==c ||b==c){
      |      ^~~~
      |      (
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{
      |   ^~~~
Language: C++

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

int main()
{
	int a,b,c;
	
	if 
    a=c;
	cout <<"Yes";
	else
	cout <<"No";
	if a=b;
	cout <<"Yes";
	else
	cout <<"No";
	if b=c;
	cout <<"Yes";
	else
	cout <<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '(' before 'a'
    9 |     a=c;
      |     ^
      |     (
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
a.cc:13:12: error: expected '(' before 'a'
   13 |         if a=b;
      |            ^
      |            (
a.cc:15:9: error: 'else' without a previous 'if'
   15 |         else
      |         ^~~~
a.cc:17:12: error: expected '(' before 'b'
   17 |         if b=c;
      |            ^
      |            (
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else
      |         ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<unordered_map>
#include<string>
 
using namespace std;
 
int main(void){
 int N;
 vector<string> s(20000);
 unordered_map<string, int> mp;
 cin >> N;
  
 for(int i=0; i<N; i++){
  cin >> s[i];
 }
  mp[s[0]] = 1;
  for(int i=0; i < N; i++){
   if(mp.find(s[i]) == mp.end()){
     mp[s[i]] = 1;
   }else{
     mp[mp.find(s[i])->first]++;
  } 
  int max = 1;
  vector<string> maxs;
  for(auto it = mp.begin(); it != mp.end(); it++){
    if (it->second > max){
      max = it->second;
    }
  }
  for(auto it = mp.begin(); it != mp.end(); it++){
    if (it->second == max){
      maxs.push_back(it->first);
    }
  }
  sort(maxs.begin(), maxs.end());
  for(int k= 0; k < maxs.size(); k++){
   cout << maxs[k] << endl; 
  }
  return 0;
}

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

#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<queue>
#include<stack>
#include<algorithm>
#include<vector>
#pragma GCC optimize(2)
#define ll long long
using namespace std;
inline int read()
{
	int x=0,f=1;
	char ch=getchar();
	while(ch<'0'||ch>'9')
	{
		if(ch=='-')
			f=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9')
	{
		x=(x<<1)+(x<<3)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
ll aa[200005],b[200005];
ll a[20000000005];
priority_queue <ll>q;
void down();
void pop()
{
	cout<<a[1]<<" ";
	a[1]=a[a[0]--];
	down();
}
void down()
{
	int x=1;
	while(2*x<=a[0]&&(a[2*x]<a[x]||a[2*x+1]<a[x]))
	{
		int i;
		if(2*x==a[0]||a[2*x]<a[2*x+1])i=2*x;
		else i=2*x+1;
		swap(a[x],a[i]);
		x=i;
	}
}
void up()
{
	int x=a[0];
	while(x>1&&a[x]<a[x/2])swap(a[x],a[x/2]),x/=2;
}
void tree(int x)
{
	a[++a[0]]=x;
	up();
}
int main()
{

	/*	cout<<-1;
		return 0;*/
	ll n;
	n=read();
	ll m;
	m=read();
	ll s=0;
	for(int i=1; i<=n; ++i)
	{
		aa[i]=read();
		if(aa[i]<=0)s++;
	}
	sort(aa+1,aa+n+1);
	memcpy(b,aa,sizeof(aa));
	//for(int i=2;i<=n;++i)q.push(a[1]*b[i]);
	/*if(s*(s-1)/2>=m)
	{
		for(int i=1; i<=s; ++i)
		{
			for(int j=i+1; j<=s; ++j)
			{
				if(a[0]<m)
				{
					tree(aa[i]*b[j]);
				}
				else
				{
					if(aa[i]*b[j]<a[1])
					{
						tree(aa[i]*b[j]);
						pop();
					}
					//	else break;
				}
			}
		}
	}
	else
	{*/
		for(int i=1; i<=n; ++i)
		{
			for(int j=i+1; j<=n; ++j)
			{
				if(a[0]<m)
				{
					tree(aa[i]*b[j]);
				}
				else
				{
					if(aa[i]*b[j]<a[1])
					{pop();
						tree(aa[i]*b[j]);
						
					}
					//	else break;
				}
			}
		}
//	}
	cout<<a[1];
}



Compiler output:
/tmp/cc1dMYID.o: in function `__static_initialization_and_destruction_0()':
a.cc:(.text+0x179): relocation truncated to fit: R_X86_64_PC32 against symbol `q' defined in .bss section in /tmp/cc1dMYID.o
a.cc:(.text+0x192): relocation truncated to fit: R_X86_64_PC32 against symbol `q' defined in .bss section in /tmp/cc1dMYID.o
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		int b = sc.nextInt();
		int c = sc.nextInt();
        if(a == b){
            if(a != c){
                System.out.println("Yes");
            }else{
                System.out.println("No");
        }else if(b == c){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        

       
        
	}
}

Compiler output:
Main.java:15: error: 'else' without 'if'
        }else if(b == c){
         ^
Main.java:25: error: reached end of file while parsing
}
 ^
2 errors
Language: C

#include<stdio.h>

int mian(){
	int A;
	int B;
	int C;

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

	if( A==B && A != C){
		printf("Yes\n");
	}
	else if(A==C && A != B){
		printf("Yes\n");
	}
	else if(B==C && B != A){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	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>
using namespace std;

int main()
{
	int a,b,c;
	
	if a=c;
	cout <<"Yes";
	else
	cout <<"No";
	if a=b;
	cout <<"Yes";
	else
	cout <<"No";
	if b=c;
	cout <<"Yes";
	else
	cout <<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected '(' before 'a'
    8 |         if a=c;
      |            ^
      |            (
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
a.cc:12:12: error: expected '(' before 'a'
   12 |         if a=b;
      |            ^
      |            (
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
a.cc:16:12: error: expected '(' before 'b'
   16 |         if b=c;
      |            ^
      |            (
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else
      |         ^~~~
Language: C++

int main() {
  int N; cin >> N;
  vector<int> papers;

  while (N--) {
    int A; cin >> A;
    if (A % 2 == 0) {
      papers.push_back(A);
    }
  }
  
  int count = 0;
  for (int i = 0; i < papers.size(); i++) {
     if (papers[i] % 3 == 0 || papers[i] % 5 == 0) {
      count++;
    }
  }
  if (count == papers.size()) {
    cout << "APPROVED";
  }
  else {
    cout << "DENIED";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:10: error: 'cin' was not declared in this scope
    2 |   int N; cin >> N;
      |          ^~~
a.cc:3:3: error: 'vector' was not declared in this scope
    3 |   vector<int> papers;
      |   ^~~~~~
a.cc:3:10: error: expected primary-expression before 'int'
    3 |   vector<int> papers;
      |          ^~~
a.cc:8:7: error: 'papers' was not declared in this scope
    8 |       papers.push_back(A);
      |       ^~~~~~
a.cc:13:23: error: 'papers' was not declared in this scope
   13 |   for (int i = 0; i < papers.size(); i++) {
      |                       ^~~~~~
a.cc:18:16: error: 'papers' was not declared in this scope
   18 |   if (count == papers.size()) {
      |                ^~~~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   19 |     cout << "APPROVED";
      |     ^~~~
      |     count
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   22 |     cout << "DENIED";
      |     ^~~~
      |     count
Language: Java

import java.util.Scanner;

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

        if (a==b || a==c || b==c){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
}

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

nclude<bits/stdc++.h>
using namespace std;
 
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b && b==c)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b>>c;
      |   ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"Yes";
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"No";
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
  int N,i;
  int A[100] = {};
  int judge[100] = {};
  int judge = 0;
  
  scanf("%d", &N);

  for(i=0;i<N;i++){
    scanf("%d", &A[i]);
  }

  for(i=0;i<N;i++){
    if((A[i]%2 == 0)||((A[i]%3 == 0) && (A[i]%5 == 0))){
      judge[i] = 1;
    }
    else if(A[i]%2 != 0){
      judge[i] = 1;
    }
    else{
      judge[i] = 0;
    }
  }

  for(i=0;i<N;i++){
    judge += judge[i];
  }

  if(judge == N){
    printf("APPROVED\n");
  }
  else{
    printf("DENIED\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: conflicting types for 'judge'; have 'int'
    7 |   int judge = 0;
      |       ^~~~~
main.c:6:7: note: previous definition of 'judge' with type 'int[100]'
    6 |   int judge[100] = {};
      |       ^~~~~
Language: C++

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

int main()
{
	int a,b,c;
	
	a=c;
	cout <<"Yes";
	else
	cout <<"No";
	if a=b;
	cout <<"Yes";
	else
	cout <<"No";
	if b=c;
	cout <<"Yes";
	else
	cout <<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
a.cc:12:12: error: expected '(' before 'a'
   12 |         if a=b;
      |            ^
      |            (
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
a.cc:16:12: error: expected '(' before 'b'
   16 |         if b=c;
      |            ^
      |            (
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if((a == b && a != c) | (a == c && b != c)) | (b == c && a != c)){
  	cout << "Yes" << endl;
    }else{
    	cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:47: error: expected primary-expression before '|' token
    6 |   if((a == b && a != c) | (a == c && b != c)) | (b == c && a != c)){
      |                                               ^
Language: C++

#include<stdio.h>
void main()
{
    int A,B,C;
    scanf("%d%d%d",&A,&B,&C);
    if((A==B && A!=C)|| (A==C  && A!=B))
    printf("Yes\n");
    else
    printf("No\n");
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if((a == b && a != c) | (a == c && b != c)) | (b == c && a != c){
  	cout << "Yes" << endl;
    }else{
    	cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:47: error: expected primary-expression before '|' token
    6 |   if((a == b && a != c) | (a == c && b != c)) | (b == c && a != c){
      |                                               ^
Language: C++

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

int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	
	if(a=b&&a!=c)
	    print<<"Yes"<<endl;
	else if(a=c&&a!=b)
	    print<<"Yes"<<endl;
	else if(b=c&&b!=a)
	    print<<"Yes"<<endl;
	else
	    print<<"No"<<endl;
		     
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'print' was not declared in this scope; did you mean 'rint'?
   10 |             print<<"Yes"<<endl;
      |             ^~~~~
      |             rint
a.cc:12:13: error: 'print' was not declared in this scope; did you mean 'rint'?
   12 |             print<<"Yes"<<endl;
      |             ^~~~~
      |             rint
a.cc:14:13: error: 'print' was not declared in this scope; did you mean 'rint'?
   14 |             print<<"Yes"<<endl;
      |             ^~~~~
      |             rint
a.cc:16:13: error: 'print' was not declared in this scope; did you mean 'rint'?
   16 |             print<<"No"<<endl;
      |             ^~~~~
      |             rint
Language: C

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


Compiler output:
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <map>
using namespace std;

int main() {
	int n;
	string *s;
	string sCnt;	// 数えている文字
	map<string, int> m;
	int max = 1;
	
	cin >> n;
	
	s = new string[n];
	
	for(int i=0; i<n; i++){
		cin >> s[i];
	}
	sort(s, s+n);
	
	for(int i=0; i<n; i++){
		if (m.count(s[i]) == 0) {
			m.insert(map<string, int>::value_type(s[i], 1));
		} else{
			m[s[i]] = m[s[i]]+1;
			if(m[s[i]] > max){
				max = m[s[i]];
			}
		}
	}
	
	auto begin = m.begin(), end = m.end();
	for(auto iter = begin; iter != end; iter++){
		if(iter->second == max){
			cout << iter->first << "\n";
		}
	}
	
	delete[] s;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   20 |         sort(s, s+n);
      |         ^~~~
      |         short
Language: C++

#include <iostream> 
using namespace std; 
int main()
{
 int a,b,c;
  cin>>a>>b>>c;
  if((a==b) && (b==c) && (c==a)){
   cout<<"No";
    break;
  }
  if(((a==b)&&(b==c))||((a==c)&&(b==c))||((a==b)&&(a==c)))
  {
   cout<<"Yes";
  }
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: break statement not within loop or switch
    9 |     break;
      |     ^~~~~
Language: C++

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

int main() {
  int a,b,c;
  cin>>a>>b>>c;
  if(b==a && c==b && a==c)
    cout<<"No"<<endl;
  return(0);
  if(a==b)
    cout<<"Yes"<<endl;
  return(0);
  if(a==c)
    cout<<"Yes"<<endl;
  return(0);
  if(c==b)
    cout<<"Yes"<<endl;
  return(0);
  else
    cout<<"No"<<endl;
  return(0);
}


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

#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
	long long a,b,c,t=0;
	cin>>a>>b>>c;
	if(a==b)
		t+=10;
	if(b==c)
		t+=100;
	if(a==c)
		t+=1000;
	switch(t)
	{
		case 10:cout<<"Yes";break;
		case 100:cout<<"Yes";break;
		case 1000:cout<<"Yes";break;
		default:cout<<"No";break;		
	}
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: Java

import java.util.Scanner;

public class A_20200216 {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        if(A != B && B != C) {
            System.out.println("No");
        } else if(A == B && B == C) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}

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

# include<stdio.h>
int mmain()
{
  int A,B,C;
  
printf(" input the value A\n input the value B\n input the value C\n");
  scanf("%d%d%d,&A,&B,&C);
     if(A==B||A==C||B==C)
       printf("yes");
        else if(A==B==C)
        printf("No");
        else
        printf("No");
        return 0;
        }

Compiler output:
a.cc:7:9: warning: missing terminating " character
    7 |   scanf("%d%d%d,&A,&B,&C);
      |         ^
a.cc:7:9: error: missing terminating " character
    7 |   scanf("%d%d%d,&A,&B,&C);
      |         ^~~~~~~~~~~~~~~~~~
a.cc: In function 'int mmain()':
a.cc:8:6: error: expected primary-expression before 'if'
    8 |      if(A==B||A==C||B==C)
      |      ^~
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else if(A==B==C)
      |         ^~~~
Language: C

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

int main(){
  
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  
  if(a==b&&b==c){
    printf("No");
  }if(a!=b&&a!=c&&b!=c){
    printf("No");
  }else{
    printf("Yes");
  }
  
  return 0;
}
提出情報
提出日時

Compiler output:
main.c: In function 'main':
main.c:10:16: error: stray '\' in program
   10 |     printf("No"\n);
      |                ^
main.c:10:16: error: expected ')' before 'n'
   10 |     printf("No"\n);
      |           ~    ^~
      |                )
main.c:12:16: error: stray '\' in program
   12 |     printf("No"\n);
      |                ^
main.c:12:16: error: expected ')' before 'n'
   12 |     printf("No"\n);
      |           ~    ^~
      |                )
main.c:14:17: error: stray '\' in program
   14 |     printf("Yes"\n);
      |                 ^
main.c:14:17: error: expected ')' before 'n'
   14 |     printf("Yes"\n);
      |           ~     ^~
      |                 )
main.c: At top level:
main.c:21:5: error: redefinition of 'main'
   21 | int main(){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main(){
      |     ^~~~
main.c:37:1: error: unknown type name '\U000063d0\U000051fa\U000060c5\U00005831'
   37 | 提出情報
      | ^~~~~~~~
main.c:38:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   38 | 提出日時
      | ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	scanf("%d%d%d",&a,&b,&c);
	if((a==b&&b!=c)||(a==c&&c!=b)||(b==c&&c!=a)) printf("Yes");
	else printf("No");
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: 'a' was not declared in this scope
    5 |         scanf("%d%d%d",&a,&b,&c);
      |                         ^
a.cc:5:28: error: 'b' was not declared in this scope
    5 |         scanf("%d%d%d",&a,&b,&c);
      |                            ^
a.cc:5:31: error: 'c' was not declared in this scope
    5 |         scanf("%d%d%d",&a,&b,&c);
      |                               ^
Language: C++

using namespace std;

int main()
{
    int num[5];
    int i, n, j, k = 1;
    
    for (i=1; i<=3; i++)
    {
        scanf("%d", &n);
        num[i] = n;
    }
    
    if (num[1] == num[2] && num[1] != num[3] )
        cout << "Yes";
    else if (num[1] == num[3] && num[1] != num[2])
        cout << "Yes";
    else if (num[2] == num[3] && num [2] != num[3])
        cout << "Yes";
    else
        cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf' was not declared in this scope
   10 |         scanf("%d", &n);
      |         ^~~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Yes";
      |         ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "Yes";
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << "Yes";
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << "No";
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

from sys import stdin


def get_result(data):
    return 'Yes' if len(list(set(data))) == 2 else 'No'

if __name__ == '__main__':
    data = list(map(int, stdin.readline().split(' ')))
    result = get_result(data)
    print(result)


Compiler output:
a.cc:5:12: warning: multi-character character constant [-Wmultichar]
    5 |     return 'Yes' if len(list(set(data))) == 2 else 'No'
      |            ^~~~~
a.cc:5:52: warning: multi-character character constant [-Wmultichar]
    5 |     return 'Yes' if len(list(set(data))) == 2 else 'No'
      |                                                    ^~~~
a.cc:7:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    7 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import stdin
      | ^~~~
Language: C++

// I want to AC


#include <vector>
#include<stdio.h>
#include<string.h>
#include <cstring>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <set>
#include<cstring>
#include<queue>
#include<assert.h>
#define ll long long
#define MODD 1000000007
#define  pii  pair<int,int>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
//#define  ll long long
using namespace std;
const int maxn = 1e6+7;
#define FOR(i, x, y) for (ll i = (x), _##i = (y); i < _##i; ++i)

ll mod = 1e9+7;
//const int maxn = 100010;
//ll f[maxn];
//ll inv[maxn]; // 阶乘的逆元
//void CalFact()
//{
//    f[0] = 1;
//    for (int i = 1; i < maxn; i++) f[i] = (f[i - 1] * i) % p;
//    inv[maxn - 1] = Pow(f[maxn - 1], p - 2, p);
//    for (int i = maxn - 2; ~i; i--) inv[i] = inv[i + 1] * (i + 1) % p;
//}
//ll C(int n, int m) { return f[n] * inv[m] % p * inv[n - m] % p; }
int n , m ,q;
map<string , int > mp;
int main() {
cin >>n>>m>>q;
if((a==b &&a!=c||c==b &&b!=a)||(a==c &&b!=c)) cout<<"Yes"<<endl;
else cout<<"No"<<endl;



	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:5: error: 'a' was not declared in this scope
   51 | if((a==b &&a!=c||c==b &&b!=a)||(a==c &&b!=c)) cout<<"Yes"<<endl;
      |     ^
a.cc:51:8: error: 'b' was not declared in this scope
   51 | if((a==b &&a!=c||c==b &&b!=a)||(a==c &&b!=c)) cout<<"Yes"<<endl;
      |        ^
a.cc:51:15: error: 'c' was not declared in this scope
   51 | if((a==b &&a!=c||c==b &&b!=a)||(a==c &&b!=c)) cout<<"Yes"<<endl;
      |               ^
Language: Java

import java.util.Scanner;

public class A_20200216 {
    public static void main(int args[]) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        if(A != B && B != C) {
            System.out.println("No");
        } else if(A == B && B == C) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}

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