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

#include <iostream>
#include <stdio.h>
#include <string.h>

inline int nxt(){
     int n;
     scanf("%d", &n);
     return n;
 }
int main(){
    int a = nxt(), b = nxt(), c = nxt();
    if(a==b)printf("%d\n",c);
    elseif(a==c)printf("%d\n",b);
    else printf("%d\n", a);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'elseif' was not declared in this scope
   13 |     elseif(a==c)printf("%d\n",b);
      |     ^~~~~~
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else printf("%d\n", a);
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

    if (a == b) {
        cout << c << "\n";
    }
    else if (a == c) {
        cout << b << "\n";
    }
    else {
        cout << a << "\n";
    }

    int a;
    cin >> a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: redeclaration of 'int a'
   20 |     int a;
      |         ^
a.cc:7:9: note: 'int a' previously declared here
    7 |     int a, b, c;
      |         ^
Language: C++

int main(){
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  printf("%d", a ^ b ^ c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d %d %d", &a, &b, &c);
      |   ^~~~~
a.cc:4:3: error: 'printf' was not declared in this scope
    4 |   printf("%d", a ^ b ^ c);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: Java

import java.util.*;

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

            if(A==B){
                System.out.println(Cç);
            }
            else if(A==C){
                System.out.println(B);
            }
            else if(B==C){
                System.out.println(A);
            }
       }
}


       

Compiler output:
Main.java:12: error: cannot find symbol
                System.out.println(C?);
                                   ^
  symbol:   variable C?
  location: class Main
1 error
Language: Java

import java.util.*;

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

            if(A==B){
                System.out.println(Cç);
            }
            else if(A==C){
                System.out.println(B);
            }
            else if(B==C){
                System.out.println(A);
            }


       

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

// see https://gist.github.com/LumaKernel/ff55d49ee1af69b7388f15b707e75c15
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <complex>
#include <random>
#include <cmanip>

using namespace std;

typedef vector<int> VI;
typedef vector<P> VP;
typedef pair<int, int> P;
typedef long long ll;

#define omajinai ios::sync_with_stdio(false);cin.tie(0)

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define RFOR(i,b,a) for(int i=(b)-1;i>=(a);--i)
#define RREP(i,n) RFOR(i,n,0)

#define LFOR(i,a,b) for(ll i=(a);i<(b);++i)
#define RLFOR(i,b,a) for(ll i=(b)-1;i>=(a);--i)

#define ALL(a) (a).begin(),(a).end()
#define UNIQUE(a) (a).erase(unique((a).begin(),(a).end()),(a).end())
#define MP make_pair
#define PB push_back
#define EACH(i,c) REP(i,(int)(c).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

#define dump(x) cerr << "[L " << __LINE__ << "] " << #x << " = " << (x) << "\n";
#define dump2(x,y) cerr << "[L " << __LINE__ << "] " << #x << " = " << (x)\
			<< " , " << #y << " = " << (y) << "\n";

const int INF = 1e9;
const double EPS = 1e-10;

int n,m;
ll k;
string s;

int main() {
	int a,b,c;
	cin >> a>>b>>c;
	int ans=b;
	if(a==b)ans=c;
	else if(c==b)ans=a;
	cout<<ans<<endl;
}


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

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.Map;

public class Main
{
	InputStream is;
	PrintWriter out;
	String INPUT = "";
	void solve()
	{
		int a=ni();
		int b=ni();
		int c=ni();
		
		if(a==b)
			out.println(c);
		else if(a==c)
			out.println(b);
		else
			out.println(a);
	}
	
	
	void run() throws Exception
	{
		is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
		out = new PrintWriter(System.out);
		
		long s = System.currentTimeMillis();
		solve();
		out.flush();
		if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+"ms");
	}
	
	public static void main(String[] args) throws Exception 
	{ new Tester().run(); }
	
	private byte[] inbuf = new byte[1024];
	public int lenbuf = 0, ptrbuf = 0;
	
	private int readByte()
	{
		if(lenbuf == -1)throw new InputMismatchException();
		if(ptrbuf >= lenbuf)
		{
			ptrbuf = 0;
			try 
			{ lenbuf = is.read(inbuf); } 
			catch (IOException e) 
			{ throw new InputMismatchException(); }
			if(lenbuf <= 0)return -1;
		}
		return inbuf[ptrbuf++];
	}
	
	private boolean isSpaceChar(int c)
	{ return !(c >= 33 && c <= 126); }
	private int skip() 
	{ int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }
	
	private double nd() 
	{ return Double.parseDouble(ns()); }
	private char nc()
	{ return (char)skip(); }
	
	private String ns()
	{
		int b = skip();
		StringBuilder sb = new StringBuilder();
		while(!(isSpaceChar(b)))
		{ // when nextLine, (isSpaceChar(b) && b != ' ')
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}
	
	private char[] ns(int n)
	{
		char[] buf = new char[n];
		int b = skip(), p = 0;
		while(p < n && !(isSpaceChar(b)))
		{
			buf[p++] = (char)b;
			b = readByte();
		}
		return n == p ? buf : Arrays.copyOf(buf, p);
	}
	
	private char[][] nm(int n, int m)
	{
		char[][] map = new char[n][];
		for(int i = 0;i < n;i++)map[i] = ns(m);
		return map;
	}
	
	private int[] na(int n)
	{
		int[] a = new int[n];
		for(int i = 0;i < n;i++)a[i] = ni();
		return a;
	}
	
	private int ni()
	{
		int num = 0, b;
		boolean minus = false;
		while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
		if(b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while(true)
		{
			if(b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			}else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private long nl()
	{
		long num = 0;
		int b;
		boolean minus = false;
		while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
		if(b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while(true){
			if(b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			}else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private static void tr(Object... o) 
	{ System.out.println(Arrays.deepToString(o)); }
}


Compiler output:
Main.java:43: error: cannot find symbol
	{ new Tester().run(); }
	      ^
  symbol:   class Tester
  location: class Main
1 error
Language: Java

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.Map;

public class Tester
{
	InputStream is;
	PrintWriter out;
	String INPUT = "";
	void solve()
	{
		int a=ni();
		int b=ni();
		int c=ni();
		
		if(a==b)
			out.println(c);
		else if(a==c)
			out.println(b);
		else
			out.println(a);
	}
	
	
	void run() throws Exception
	{
		is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
		out = new PrintWriter(System.out);
		
		long s = System.currentTimeMillis();
		solve();
		out.flush();
		if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+"ms");
	}
	
	public static void main(String[] args) throws Exception 
	{ new Tester().run(); }
	
	private byte[] inbuf = new byte[1024];
	public int lenbuf = 0, ptrbuf = 0;
	
	private int readByte()
	{
		if(lenbuf == -1)throw new InputMismatchException();
		if(ptrbuf >= lenbuf)
		{
			ptrbuf = 0;
			try 
			{ lenbuf = is.read(inbuf); } 
			catch (IOException e) 
			{ throw new InputMismatchException(); }
			if(lenbuf <= 0)return -1;
		}
		return inbuf[ptrbuf++];
	}
	
	private boolean isSpaceChar(int c)
	{ return !(c >= 33 && c <= 126); }
	private int skip() 
	{ int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }
	
	private double nd() 
	{ return Double.parseDouble(ns()); }
	private char nc()
	{ return (char)skip(); }
	
	private String ns()
	{
		int b = skip();
		StringBuilder sb = new StringBuilder();
		while(!(isSpaceChar(b)))
		{ // when nextLine, (isSpaceChar(b) && b != ' ')
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}
	
	private char[] ns(int n)
	{
		char[] buf = new char[n];
		int b = skip(), p = 0;
		while(p < n && !(isSpaceChar(b)))
		{
			buf[p++] = (char)b;
			b = readByte();
		}
		return n == p ? buf : Arrays.copyOf(buf, p);
	}
	
	private char[][] nm(int n, int m)
	{
		char[][] map = new char[n][];
		for(int i = 0;i < n;i++)map[i] = ns(m);
		return map;
	}
	
	private int[] na(int n)
	{
		int[] a = new int[n];
		for(int i = 0;i < n;i++)a[i] = ni();
		return a;
	}
	
	private int ni()
	{
		int num = 0, b;
		boolean minus = false;
		while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
		if(b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while(true)
		{
			if(b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			}else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private long nl()
	{
		long num = 0;
		int b;
		boolean minus = false;
		while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
		if(b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while(true){
			if(b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			}else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private static void tr(Object... o) 
	{ System.out.println(Arrays.deepToString(o)); }
}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define il inline
#define outy printf("Yes\n")
#define outn printf("No\n")
#define outf printf("First\n")
#define outs printf("Second\n")
#define FOR(a,b,c) for(int a=b;a<=c;a++)
#define FORD(a,b,c) for(int a=b;a>=c;a--)
#define FORL(a,b) for(int a=head[b];a;a=nxt[a])
#define in(a)  a=read()
#define in2(a,b)  a=read(),b=read()
#define in3(a,b,c)  a=read(),b=read(),c=read()
#define in4(a,b,c,d)  a=read(),b=read(),c=read(),d=read()
#define inl(a)  a=readl()
#define inl2(a,b)  a=readl(),b=readl()
#define inl3(a,b,c)  a=readl(),b=readl(),c=readl()
#define inl4(a,b,c,d)  a=readl(),b=readl(),c=readl(),d=readl()
#define out(a) printf("%d\n",a)
#define out2(a,b) printf("%d %d\n",a,b)
#define out3(a,b,c) printf("%d %d %d\n",a,b,c)
#define out4(a,b,c,d) printf("%d %d %d %d\n",a,b,c,d)
#define outl(a) printf("%lld\n",a)
#define outl2(a,b) printf("%lld %lld\n",a,b)
#define outl3(a,b,c) printf("%lld %lld %lld\n",a,b,c)
#define outl4(a,b,c,d) printf("%lld %lld %lld %lld\n",a,b,c,d)
#define clr(x,y) memset(x,y,sizeof(x))
inline int read(){
    char c;int s=0,t=1;
    while(!isdigit(c=getchar()))if(c=='-')t=-1;
    do{s=s*10+c-'0';}while(isdigit(c=getchar()));
    return s*t;
}
inline ll readl(){
    char c;ll s=0;int t=1;
    while(!isdigit(c=getchar()))if(c=='-')t=-1;
    do{s=s*10+c-'0';}while(isdigit(c=getchar()));
   int n return s*t;
}
/*------------------------------------------------------------*/
#define mod 1000000007
#define maxn 100010
/*------------------------------------------------------------*/
	
int main(){
	int a[10]={0};
	FOR(i,1,3)in(a[i]);
	sort(a+1,a+4);
	a[1]!=a[2]?out(a[1]):out(a[3]); 
}

Compiler output:
a.cc: In function 'long long int readl()':
a.cc:39:10: error: expected initializer before 'return'
   39 |    int n return s*t;
      |          ^~~~~~
a.cc:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
   40 | }
      | ^
Language: C++

#include <iostream.h>

using namespace std;

int main(){
  long a,b,c;
  cin>>a>>b>>c;
  if(a==b)cout<<c;
  if(a==c)cout<<b;
  if(b==c)cout<<a;
  return 0;
}

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

#include <iostream>

using namespace std;

int main(){
  long a,b,c;
  cin>>a>>b>>c;
  cout<<(a==b)?c:(a==c)?b:c<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<(a==b)?c:(a==c)?b:c<<endl;
      |                           ~^~~~~~
Language: C++

#include <iostream>;

using namespace std;

int main(){
  long a,b,c;
  cin>>a>>b>>c;
  cout<<(a==b)?c:(a==c)?b:c<<endl;
  return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc: In function 'int main()':
a.cc:8:28: error: invalid operands of types 'long int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<(a==b)?c:(a==c)?b:c<<endl;
      |                           ~^~~~~~
Language: C++

include "iostream";

using namespace std;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<(a==b)?c:(a==c)?b:c<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include "iostream";
      | ^~~~~~~
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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | include "iostream";
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<(a==b)?c:(a==c)?b:c<<endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |   cout<<(a==b)?c:(a==c)?b:c<<endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | include "iostream";
Language: Java

package Algorithms;

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

public class AtCoder075A {
    public static void main(String[] args) throws IOException {
        FastScanner in = new FastScanner();
        int a = in.nextInt();
        int b = in.nextInt();
        int c = in.nextInt();

        if (a == b)
        {
        System.out.println(c);
        }
        if (a==c)
        {
            System.out.println(b);
        }
        if (b==c)
        {
            System.out.println(a);
        }

    }

    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String nextToken() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            st = null;
            try {
                return br.readLine();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return null;
        }

        int nextInt() {
            return Integer.parseInt(nextToken());
        }

        long nextLong() {
            return Long.parseLong(nextToken());
        }

        double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}


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

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

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    int H, W;
    string t;
    vector<string> M;
    cin >> H >> W;
    for (int i=0; i<H; ++i) {
        cin >> t;
        M.emplace_back(t);
    }
    
    for (int y=0; y<H; ++y) {
        string s;
        for (int x=0; x<W; ++x) {
            if (M[y][x] == '#') {
                s += "#";
                continue;
            }
            int b = 0;
            for (int py = max(y-1, 0); py < min(y+2, H); ++py) {
                for (int px = max(x-1, 0); @x < min(x+2, W); ++px) {
                    if (M[py][@x] == '#') { b += 1; }
                }
            }
            s += to_string(b);
        }
        cout << s << endl;
    }
    return 0;
}

Compiler output:
a.cc:26:44: error: stray '@' in program
   26 |                 for (int px = max(x-1, 0); @x < min(x+2, W); ++px) {
      |                                            ^
a.cc:27:31: error: stray '@' in program
   27 |                     if (M[py][@x] == '#') { b += 1; }
      |                               ^
Language: Java

#include <string>
#include <cmath>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
#include <queue>
#include <tuple>
#include <functional>
#include <set>
using namespace std;
 
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout <<a^b^c<<endl;
 
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <string>
^
Main.java:2: error: illegal character: '#'
#include <cmath>
^
Main.java:3: error: illegal character: '#'
#include <cstdio>
^
Main.java:4: error: illegal character: '#'
#include <vector>
^
Main.java:5: error: illegal character: '#'
#include <algorithm>
^
Main.java:6: error: illegal character: '#'
#include <iostream>
^
Main.java:7: error: illegal character: '#'
#include <queue>
^
Main.java:8: error: illegal character: '#'
#include <tuple>
^
Main.java:9: error: illegal character: '#'
#include <functional>
^
Main.java:10: error: illegal character: '#'
#include <set>
^
Main.java:16: error: not a statement
	cin >> a >> b >> c;
	              ^
Main.java:17: error: not a statement
	cout <<a^b^c<<endl;
	          ^
Main.java:13: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
13 errors
Language: C++

#include <iostream>

int main(){

	int a,b,c;
	cin >> a >> b >> c;
	
	if(a==c)cout << b << endl;
	else if(b==c) cout << a << endl;
	else cout << c << endl;		

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if(a==c)cout << b << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         if(a==c)cout << b << 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:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else if(b==c) cout << a << 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:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else if(b==c) cout << a << endl;
      |                                    ^~~~
      |                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         else cout << c << 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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         else cout << c << 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 <cstdio>

int main(){

  int N[3],t;
  scanf("%d %d %d",&N[0],$N[1],&N[2]);
  if(N[0]==N[1])t=2;
  else if(N[1]==N[2])t=1;
  else t=0;
  printf("%d\n",N[t]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: '$N' was not declared in this scope; did you mean 'N'?
    6 |   scanf("%d %d %d",&N[0],$N[1],&N[2]);
      |                          ^~
      |                          N
Language: C++


#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
 
int A, B, C;
 
cin >>A >>B >>C;
 
if(A==B){
cout << C <<endl;
}
if(A==C){
cout << B <<endl;
}
else{
cout << A <<endl;
}
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |  
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |  
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
a.cc:5:1: error: '\U000000a0' does not name a type
    5 |  
      | ^
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
 
int A, B, C;
 
cin >>A >>B >>C;
 
if(A==B){
cout << C <<endl;
}
if(A==C){
cout << B <<endl;
}
if(B==C){
cout << A <<endl;
}
}

Success #stdin #stdout 0s 15240KB 

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |  
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |  
      | ^
a.cc:22:9: error: stray '#' in program
   22 | Success #stdin #stdout 0s 15240KB
      |         ^
a.cc:22:16: error: stray '#' in program
   22 | Success #stdin #stdout 0s 15240KB
      |                ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
a.cc:22:1: error: 'Success' does not name a type
   22 | Success #stdin #stdout 0s 15240KB
      | ^~~~~~~
Language: C

#include<stdio.h>

int main(void){
    int H,W;
    int i,j
    int count=0;
        
    //入力の読み込み
    scanf("%d %d",&H,&W);    
    
    char matrix[H-1][W-1];
    
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            scanf("%s",&matrix[i][j]);
        }
    }
    
    //入力の格納
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            if(matrix[i][j]=="."){
                if(matrix[i-1][j-1]=="#"){
                    conut++;
                }
                if(matrix[i-1][j]=='#'){
                    count++;
                }
                if(matrix[i-1][j+1]=='#'){
                    count++;
                }
                if(matrix[i][j-1]=='#'){
                    count++;
                }
                if(matrix[i][j+1]=='#'){
                    count++;
                }
                if(matrix[i+1][j-1]=='#'){
                    count++;
                }
                if(matrix[i+1][j]=='#'){
                    count++;
                }
                if(matrix[i+1][j+1]=='#'){
                    count++;
                }
                matrix[i][j]=count;
            }
        }
    }
    
    //出力
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            printf("%s",matrix[i][j]);
        }
        printf("\n");
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    6 |     int count=0;
      |     ^~~
main.c:14:13: error: 'j' undeclared (first use in this function)
   14 |         for(j=0;j<W-1;j++){
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:21: error: 'conut' undeclared (first use in this function)
   24 |                     conut++;
      |                     ^~~~~
main.c:27:21: error: 'count' undeclared (first use in this function)
   27 |                     count++;
      |                     ^~~~~
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
 
int A, B, C;
 
cin >>A >>B >>C;
 
if(A==B){
cout << C <<endl;
}
if(A==C){
cout << B <<endl;
}
if(B==C){
cout << A <<endl;
}
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |  
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C

#include<stdio.h>

int main(void){
    int H,W;
    int i,j
    int count=0;
        
    //入力の読み込み
    scanf("%d %d",&H,&W);    
    
    char matrix[H-1][W-1];
    
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            scanf("%s",matrix[i][j]);
        }
    }
    
    //入力の格納
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            if(matrix[i][j]=="."){
                if(matrix[i-1][j-1]=="#"){
                    conut++;
                }
                if(matrix[i-1][j]=='#'){
                    count++;
                }
                if(matrix[i-1][j+1]=='#'){
                    count++;
                }
                if(matrix[i][j-1]=='#'){
                    count++;
                }
                if(matrix[i][j+1]=='#'){
                    count++;
                }
                if(matrix[i+1][j-1]=='#'){
                    count++;
                }
                if(matrix[i+1][j]=='#'){
                    count++;
                }
                if(matrix[i+1][j+1]=='#'){
                    count++;
                }
                matrix[i][j]=count;
            }
        }
    }
    
    //出力
    for(i=0;i<H-1;i++){
        for(j=0;j<W-1;j++){
            printf("%s",matrix[i][j]);
        }
        printf("\n");
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    6 |     int count=0;
      |     ^~~
main.c:14:13: error: 'j' undeclared (first use in this function)
   14 |         for(j=0;j<W-1;j++){
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:21: error: 'conut' undeclared (first use in this function)
   24 |                     conut++;
      |                     ^~~~~
main.c:27:21: error: 'count' undeclared (first use in this function)
   27 |                     count++;
      |                     ^~~~~
Language: C++

#include<bits/stdc++14.h>

using namespace std;

int main(){

int A, B, C;

cin >>A >>B >>C;

if(A==B){
cout << C <<endl;
}
if(A==C){
cout << B <<endl;
}
if(B==C){
cout <<A <<endl;
}
}



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

#include <iostream>
#include <vector>
#include <queue>
#include <cmath>
#include <iomanip>
#include <cstdio>
#include <algorithm>

using namespace std;

double const EPS = 1e-15;

int dist(int x1 ,int x2 , int y1 ,int y2)
{
    int d = (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
    return d;
}

bool simple_number(int a)
{
    int d =2;
    while (d*d<=a and a%d!=0)
    {
        d++;
    }
    return d*d>a;
}
int k;
double f(double x)
{
    return x*k - cos(x);
}

int main()
{
    int a,b,c;
    cin >>a >> b>>c;
cout << max(max(a,b),c)
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:24: error: expected ';' before 'return'
   38 | cout << max(max(a,b),c)
      |                        ^
      |                        ;
   39 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int a,b,c
	cin>>a>>b>>c;
	if(a==b)cout<<c;
	if(a==c)cout<<b;
	if(b==c)cout<<a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin>>a>>b>>c;
      |         ^~~
a.cc:7:23: error: 'c' was not declared in this scope
    7 |         if(a==b)cout<<c;
      |                       ^
a.cc:8:15: error: 'c' was not declared in this scope
    8 |         if(a==c)cout<<b;
      |               ^
a.cc:9:15: error: 'c' was not declared in this scope
    9 |         if(b==c)cout<<a;
      |               ^
Language: C

#include<stdio.h>

int main(void){
    int a,b,c;

    //入力の読み込み
    scanf("%d %d %d",&a,&b,&c);    

    //条件分岐
    if(a==b){
        printf("%d",c);
    }
    else if(a==c){
        printf("%d",b);
    }
    else{
        printf("%d",a);
    }
    
    return 0
}

Compiler output:
main.c: In function 'main':
main.c:20:13: error: expected ';' before '}' token
   20 |     return 0
      |             ^
      |             ;
   21 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:31: error: '\U000000e5b' undeclared (first use in this function)
   10 |                 printf("%d\n",åb);
      |                               ^~
main.c:10:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<cstdio>
 
int main(){
 
	int a, b, c, d;
	scanf("%d %d %d",&a,&b,&c);
	if (a == b) { d = c };
	if else (a == c) {d = b};
        else d =a;
	printf("%d",d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '}' token
    7 |         if (a == b) { d = c };
      |                            ^~
      |                            ;
a.cc:8:12: error: expected '(' before 'else'
    8 |         if else (a == c) {d = b};
      |            ^~~~
      |            (
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else d =a;
      |         ^~~~
Language: C++

#include<cstdio>

int main(){
 
	int a, b, c, d;
	scanf("%d %d %d",&a,&b,&c);
	if (a == b) { d = c }
	if else (a == c) {d = b}
        else d =a;
	printf("%d",d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '}' token
    7 |         if (a == b) { d = c }
      |                            ^~
      |                            ;
a.cc:8:12: error: expected '(' before 'else'
    8 |         if else (a == c) {d = b}
      |            ^~~~
      |            (
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else d =a;
      |         ^~~~
Language: C++

int main(){

	int a, b, c, d;
	scanf("%d %d %d",&a,&b,&c);
	if (a == b) { d = c }
	if else (a == c) {d = b}
        else d =a;
	printf("%d",d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
a.cc:5:28: error: expected ';' before '}' token
    5 |         if (a == b) { d = c }
      |                            ^~
      |                            ;
a.cc:6:12: error: expected '(' before 'else'
    6 |         if else (a == c) {d = b}
      |            ^~~~
      |            (
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else d =a;
      |         ^~~~
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf("%d",d);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

int ex(int a, int b, int c, ) {
	if (a == b) { d = c }
	if else (a == c) {d = b}
	return d;

}

int main(){

	int a, b, c, d;
	scanf("%d %d %d",&a,&b,&c);
	d = ex(a, b, c);
	printf("%d")
	return 0;
}

Compiler output:
a.cc:1:29: error: expected identifier before ')' token
    1 | int ex(int a, int b, int c, ) {
      |                             ^
a.cc: In function 'int ex(int, int, int, int)':
a.cc:2:23: error: 'd' was not declared in this scope
    2 |         if (a == b) { d = c }
      |                       ^
a.cc:3:12: error: expected '(' before 'else'
    3 |         if else (a == c) {d = b}
      |            ^~~~
      |            (
a.cc:4:16: error: 'd' was not declared in this scope
    4 |         return d;
      |                ^
a.cc: In function 'int main()':
a.cc:11:9: error: 'scanf' was not declared in this scope
   11 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
a.cc:12:15: error: too few arguments to function 'int ex(int, int, int, int)'
   12 |         d = ex(a, b, c);
      |             ~~^~~~~~~~~
a.cc:1:5: note: declared here
    1 | int ex(int a, int b, int c, ) {
      |     ^~
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("%d")
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int ex(int a, int b, int c, ) {
Language: C

include <stdio.h>
#include <math.h>
int main (void){
  int a[256];
  int i=0;
  int j=0;
  int mozi=0; //文字数                                                          
  char str[256];
  scanf("%[^\n]",str);
  while(1){
    if(str[i]==' '||str[i]=='\n'||str[i]=='\0'){
      a[mozi]=0;
      while(j!=0){
        a[mozi]+=(str[i-j]-'0')*pow(10,j-1);
        j--;
      }
      printf("%d\n",a[mozi]);
      mozi++;
      j=-1;
      if(str[i]=='\n'||str[i]=='\0')break;
    }
    i++;
    j++;
  }
  if(a[0]==a[1]){
   printf("%d",a[2]);
  }else{
    if(a[0]==a[2]){
      printf("%d",a[1]);
    }else{
      printf("%d",a[0]);
    }
  }
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   scanf("%[^\n]",str);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | int main (void){
main.c:9:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   scanf("%[^\n]",str);
      |   ^~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:17:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |       printf("%d\n",a[mozi]);
      |       ^~~~~~
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |    printf("%d",a[2]);
      |    ^~~~~~
main.c:26:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   29 |       printf("%d",a[1]);
      |       ^~~~~~
main.c:29:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |       printf("%d",a[0]);
      |       ^~~~~~
main.c:31:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>
#include <math.h>
int main (void){
  int a[256];
  int i=0;
  int j=0;
  int mozi=0; //文字数                                                          
  char str[256];
  scanf("%[^\n]",str);
  while(1){
    if(str[i]==' '||str[i]=='\n'||str[i]=='\0'){
      a[mozi]=0;
      while(j!=0){
        a[mozi]+=(str[i-j]-'0')*pow(10,j-1);
        j--;
      }
      printf("%d\n",a[mozi]);
      mozi++;
      j=-1;
      if(str[i]=='\n'||str[i]=='\0')break;
    }
    i++;
    j++;
  }
  if(a[0]==a[1]){
   printf("%d",a[0]);
  }else{
    if(a[0]==a[2]){
      printf("%d",a[0]);
    }else{
      printf("%d",a[1]);
    }
  }
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   scanf("%[^\n]",str);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | int main (void){
main.c:9:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   scanf("%[^\n]",str);
      |   ^~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:17:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |       printf("%d\n",a[mozi]);
      |       ^~~~~~
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |    printf("%d",a[0]);
      |    ^~~~~~
main.c:26:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   29 |       printf("%d",a[0]);
      |       ^~~~~~
main.c:29:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |       printf("%d",a[1]);
      |       ^~~~~~
main.c:31:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
using namespace std;
int a,b,c;
int main(){
  cin>>a;
  cin>>b;
  cin>>c;
  if(a==b){
    cout<<c;}
  if(b==c){
    cout<<a;}
  if(a==c){
    cout<<b;
    return 0;
  }
  
  

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

#include<bits/std.c++>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b)
    cout<<c<<endl;
 else if(a==c)
    cout<<b<<endl;
  else
    cout<<a<<endl;
}

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

#include <iostream>
using namespace std;
 int a;b;c;
int main(){
  cin>>a;
  cin>>b;
  cin c;
  if(a==b)
    cout<<c;
  if(b==c)
    cout<<a;
  if(a==c)
    cout<<b;
  
  

Compiler output:
a.cc:3:8: error: 'b' does not name a type
    3 |  int a;b;c;
      |        ^
a.cc:3:10: error: 'c' does not name a type
    3 |  int a;b;c;
      |          ^
a.cc: In function 'int main()':
a.cc:6:8: error: 'b' was not declared in this scope
    6 |   cin>>b;
      |        ^
a.cc:7:6: error: expected ';' before 'c'
    7 |   cin c;
      |      ^~
      |      ;
a.cc:9:11: error: 'c' was not declared in this scope
    9 |     cout<<c;
      |           ^
a.cc:10:9: error: 'c' was not declared in this scope
   10 |   if(b==c)
      |         ^
a.cc:12:9: error: 'c' was not declared in this scope
   12 |   if(a==c)
      |         ^
a.cc:13:13: error: expected '}' at end of input
   13 |     cout<<b;
      |             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <string>
#include <cmath>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
#include <queue>
#include <tuple>
#include <functional>
#include <set>
#include "stdafx.h"
using namespace std;

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

    return 0;
}



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

#include "stdafx.h"
#include <string>
#include <cmath>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
#include <queue>
#include <tuple>
#include <functional>
#include <set>
#include "stdafx.h"
using namespace std;

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

    return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include "stdafx.h"
^
Main.java:1: error: class, interface, enum, or record expected
#include "stdafx.h"
         ^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:3: error: illegal character: '#'
#include <cmath>
^
Main.java:4: error: illegal character: '#'
#include <cstdio>
^
Main.java:5: error: illegal character: '#'
#include <vector>
^
Main.java:6: error: illegal character: '#'
#include <algorithm>
^
Main.java:7: error: illegal character: '#'
#include <iostream>
^
Main.java:8: error: illegal character: '#'
#include <queue>
^
Main.java:9: error: illegal character: '#'
#include <tuple>
^
Main.java:10: error: illegal character: '#'
#include <functional>
^
Main.java:11: error: illegal character: '#'
#include <set>
^
Main.java:12: error: illegal character: '#'
#include "stdafx.h"
^
Main.java:18: error: not a statement
	cin >> a >> b >> c;
	              ^
Main.java:20: error: not a statement
		cout << c << endl;
		          ^
Main.java:23: error: not a statement
		cout << b << endl;
		          ^
Main.java:26: error: not a statement
		cout << a << endl;
		          ^
Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
18 errors
Language: Java

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){
          System.out.println(c);
        }else if(a==c){
          System.out.println(b);
        }else{
          System.out.println(a);
        }
  }

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

import java.util.*;
public class Hello {
    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){
          System.out.println(c);
        }else if(a==c){
          System.out.println(b);
        }else{
          System.out.println(a);
        }
  }
}


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

#include <iostream>
using  namespace  std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a!=b && a!=c) cout<<a<<endl;

else  if(b!=a && b!=c) cout<<b<<endl;

else(c!=a && c!=b) cout<<c<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before 'cout'
   10 | else(c!=a && c!=b) cout<<c<<endl;
      |                   ^~~~~
      |                   ;
Language: C++

a,b,c=map(int,raw_input().split(' '))

if a==b:
    print c
elif b==c:
    print a
else:
    print b

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

import java.util.*

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    
    if (A == B) {
      System.out.println(C);
    } else if (A == C) {
      System.out.println(B);
    } else {
      System.out.println(A);
    }
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

#include <iostream>

using namespace std;

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

  if (a==b) {
    cout << c << endl;;
  } else if (a==c) {
    cout << b << endl;
  } else {
    cout << a << endl;
  }
  return 0;

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