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

int A , B , C ;
	cout <<"enter frist num \n";
	cin >> A ;
	cout <<"enter scond num \n";
	cin >> B ;
	cout <<"enter third num \n";
	cin>> C ;
	if (A==B)
		cout << C << "\n";
	else if (A==C)
		cout<<B<<"\n";
	else if (B==C)
		cout<<A<<"\n";
	

Compiler output:
a.cc:2:9: error: 'cout' does not name a type
    2 |         cout <<"enter frist num \n";
      |         ^~~~
a.cc:3:9: error: 'cin' does not name a type
    3 |         cin >> A ;
      |         ^~~
a.cc:4:9: error: 'cout' does not name a type
    4 |         cout <<"enter scond num \n";
      |         ^~~~
a.cc:5:9: error: 'cin' does not name a type
    5 |         cin >> B ;
      |         ^~~
a.cc:6:9: error: 'cout' does not name a type
    6 |         cout <<"enter third num \n";
      |         ^~~~
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin>> C ;
      |         ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if (A==B)
      |         ^~
a.cc:10:9: error: expected unqualified-id before 'else'
   10 |         else if (A==C)
      |         ^~~~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else if (B==C)
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin>>a>>b>>c;
      |     ^~~
a.cc:3:5: error: expected unqualified-id before 'if'
    3 |     if(a==b )
      |     ^~
a.cc:5:6: error: expected unqualified-id before 'if'
    5 |      if(a==c)
      |      ^~
a.cc:7:6: error: expected unqualified-id before 'else'
    7 |      else
      |      ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>a>>b>>c;
      |     ^~~
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout<<a;
      |                 ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout<<b;
      |                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout<<c;
      |                 ^~~~
Language: C++

#include< iostream>
Using namespace std;
Int main () {
  int A,B,C; 
  cin >>A>>B>>C;
  if (A==B) {
      cout <<C;
  }
  else if (A==C) {
      cout <<B;
  }
  else {
      cout <<A;
  }
  return 0 ;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, w, x, y, z;
  string s, count="........";
  cin >> h >> w;
  y=(w+2)*(h+2)-1;
  for (int i=0; i<y; i++)
    s.at(i)='_';
  
  for (int i=0; i<h; i++) {
    for (int j=0; j<w; j++) {
      x=i+(w+2)*i+1+j;
      cin >> s.at(x);
    }
  }
  
  for (int i=0; i<y; i++) {
    if (s.at(i)=='.') {
      z=0;
      count.at(0) = s.at(i-w+1);
      count.at(1) = s.at(i-w+2);
      count.at(2) = s.at(i-w+3);
      count.at(3) = s.at(i-1);
      count.at(4) = s.at(i+1);
      count.at(5) = s.at(i+w+1);
      count.at(6) = s.at(i+w+2);
      count.at(7) = s.at(i+w+3);
      for (int j=0; j<8; j++) {
        if (s.at(j)=='#')
          z++;
      }
      s.(at(i)='z';
    }
  }

  for (int i=0; i<h; i++) {
    for (int j=0; j<w; j++) {
      x=i+(w+2)*i+1+j;
      cout << s.at(x);
    }
    cout << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: expected unqualified-id before '(' token
   33 |       s.(at(i)='z';
      |         ^
a.cc:33:10: error: 'at' was not declared in this scope
   33 |       s.(at(i)='z';
      |          ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, w, x, y, z;
  string s, count="........";
  cin >> h >> w;
  y=(w+2)*(h+2)-1;
  for (int i=0; i<y; i++)
    s.at(i)='_';
  
  for (int i=0; i<h; i++) {
    for (int j=0; j<w; j++) {
      x=i+(w+2)*i+1+j;
      cin >> s.at(x);
    }
  }
  
  for (int i=0; i<y; i++) {
    if (s.at(i)=='.') {
      z=0
      count.at(0) = s.at(i-w+1);
      count.at(1) = s.at(i-w+2);
      count.at(2) = s.at(i-w+3);
      count.at(3) = s.at(i-1);
      count.at(4) = s.at(i+1);
      count.at(5) = s.at(i+w+1);
      count.at(6) = s.at(i+w+2);
      count.at(7) = s.at(i+w+3);
      for (int j=0, j<8, j++) {
        if (s.at(j)=='#')
          z++;
      }
      s.(at(i)='z';
    }
  }

  for (int i=0; i<h; i++) {
    for (int j=0; j<w; j++) {
      x=i+(w+2)*i+1+j;
      cout << s.at(x);
    }
    cout << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected ';' before 'count'
   20 |       z=0
      |          ^
      |          ;
   21 |       count.at(0) = s.at(i-w+1);
      |       ~~~~~
a.cc:29:22: error: expected ';' before '<' token
   29 |       for (int j=0, j<8, j++) {
      |                      ^
      |                      ;
a.cc:29:22: error: expected primary-expression before '<' token
a.cc:29:29: error: expected ';' before ')' token
   29 |       for (int j=0, j<8, j++) {
      |                             ^
      |                             ;
a.cc:33:9: error: expected unqualified-id before '(' token
   33 |       s.(at(i)='z';
      |         ^
a.cc:33:10: error: 'at' was not declared in this scope
   33 |       s.(at(i)='z';
      |          ^~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace attocoda
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            var word = Console.ReadLine().Split(' ');
            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
            c = int.Parse(word[2]);
            if (a == b && b != c)
                Console.WriteLine(c);
            else if (b == c && b != a)
                Console.WriteLine(a);
            else
                Console.WriteLine(b);
            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:26:6: error: expected ';' after class definition
   26 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void attocoda::Program::Main(int*)':
a.cc:14:13: error: 'var' was not declared in this scope
   14 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             c = int.Parse(word[2]);
      |                 ^~~
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine(c);
      |                 ^~~~~~~
a.cc:21:17: error: 'Console' was not declared in this scope
   21 |                 Console.WriteLine(a);
      |                 ^~~~~~~
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine(b);
      |                 ^~~~~~~
a.cc:24:13: error: 'Console' was not declared in this scope
   24 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

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

int main () {
  int A,B,C;
  cin>>A>>B>>C;
  if(A==B && A!=C){
    cout<<C<<endl;
  }
  if(B==C && A!=B){
    cout<<A<<endl;
  }
  if(C==A && C!=B){
    cout<<B<<endl;
  }
}

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

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

string board[60]
int main(void) {
	int X, Y;
	cin >> X >> Y;
	for (int i = 0; i < X; i++) cin >> board[i];
	
	for (int i = 0; i < X; i++) {
	  for (int j =0; j < X; j++) {
		if (board[i][j] == '.') {
		  int cnt = 0;
		  for (int k = 0; k < 8; k++) {
			int x = i + dx[k];
			int y = j + dy[k];
			if (x >= 0 && x < X &&
			    y >= 0 && y < Y &&
			    board[x][y] == '#')
			    cnt ++;
		 }
		 board[i][j] = 'o' + cnt;
      }
    }
  }
   for (int i = 0; i < N; i++) cout << boatd[i] << endl;
   return 0;
}

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main(void) {
      | ^~~
Language: C++

#include<bits/stdc++.h>
#include<iomanip>
using namespace std;
typedef long long ll;
typedef long  l;
typedef pair<int,int> P;
#define rep(i,n) for(int i=0;i<n;i++)
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
const int INF=1000000001;
const double PI=3.141592653589;


int main(){
  int a,b,c; cin>>a>>b>>c;
  if(a==b)
  puts(c);
  else if(b==c)
  puts(a);
  else
  puts(b);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   21 |   puts(c);
      |        ^
      |        |
      |        int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:23:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   23 |   puts(a);
      |        ^
      |        |
      |        int
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:25:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   25 |   puts(b);
      |        ^
      |        |
      |        int
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

#include <iostream>
using namespace std;

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

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

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

#include <iostream>
using namespace std;

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

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

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

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

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


    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    &&b<=100&&b>=-100
      |    ~~~^~~~~
a.cc:8:6: error: label 'b' used but not defined
    8 |    &&b<=100&&b>=-100
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
   a<=100&&a>=-100
   b<=100&&b>=-100
   c<=100&&c>=-100

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


    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'b'
    7 |    a<=100&&a>=-100
      |                   ^
      |                   ;
    8 |    b<=100&&b>=-100
      |    ~               
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if (b==c)
      |     ^~~~
Language: C++

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




    return 0;
  
  

}
--

Compiler output:
a.cc:22:1: error: expected unqualified-id before '--' token
   22 | --
      | ^~
Language: C++

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




    return 0;

}
--

Compiler output:
a.cc:20:1: error: expected unqualified-id before '--' token
   20 | --
      | ^~
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int[] input = new int[3];
      	for(int i = 0; i < 3; i++){
          	input[i] = sc.nextInt();
        }
      
      	if(candidate == input[1])
          	System.out.println(input[2]);
      	else if(candidate == input[2])
          	System.out.println(input[1]);
      	else
          	System.out.println(input[0]);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
      	if(candidate == input[1])
      	   ^
  symbol:   variable candidate
  location: class Main
Main.java:13: error: cannot find symbol
      	else if(candidate == input[2])
      	        ^
  symbol:   variable candidate
  location: class Main
2 errors
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  if (A - B = 0) cout << C << endl;
  else if (B - C = 0) cout << A << endl;
  else cout << B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (A - B = 0) cout << C << endl;
      |       ~~^~~
a.cc:9:14: error: lvalue required as left operand of assignment
    9 |   else if (B - C = 0) cout << A << endl;
      |            ~~^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A[3];
  for(int i=0;i<3;i++){
    cin>>A[i];
  }
  int count=0;
  for(int i=0;i<3;i++){
    count=0;
    for(int j=i+1;j<3;j++){
      if(A[i]==A[j]){
        count++;
      }
    }
    if(count==0){
      cout<<A[i]<<endl;
    }
  }
  
 rerutn 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: 'rerutn' was not declared in this scope
   21 |  rerutn 0;
      |  ^~~~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  int x, a, b;
  cin >> x >> a >> b;
  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:8:19: error: 'c' was not declared in this scope
    8 |   if(a==b){cout<< c <<endl;}
      |                   ^
a.cc:9:14: error: 'c' was not declared in this scope
    9 |   else if(a==c){cout<< b <<endl;}
      |              ^
Language: C++

//自称高知能系Vtuberの高井茅乃です。
//Twitter: https://twitter.com/takaichino
//YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw

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

#define INF 1999999999
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define MODA 1000000007 

int main() {
    int ans = 0;
    int tmp;
    vector<int> ｓ(3);
    REP(i, 3) cin >> ｓ[i];
    if (s[0] == s[1]) cout << s[2] << endl;
    else if (s[1] == s[2]) cout << s[0] << endl;
    else cout << s[1] << endl;
    //cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 's' was not declared in this scope
   19 |     if (s[0] == s[1]) cout << s[2] << endl;
      |         ^
Language: C++

(setf line (list (read) (read) (read)))
(sort (copy-list line) #'<)
(if (eq (car line) (cadr line))
	(write (caddr line))
	(write (car line)))


Compiler output:
a.cc:2:24: error: stray '#' in program
    2 | (sort (copy-list line) #'<)
      |                        ^
a.cc:2:25: warning: missing terminating ' character
    2 | (sort (copy-list line) #'<)
      |                         ^
a.cc:2:25: error: missing terminating ' character
    2 | (sort (copy-list line) #'<)
      |                         ^~~
a.cc:1:6: error: expected ')' before 'line'
    1 | (setf line (list (read) (read) (read)))
      | ~    ^~~~~
      |      )
Language: C++

object Main{
  def main(args: Array[String]){
    val input=io.Source.stdin.getLines().mkString("\n")
    println(solve(input).trim())
  }

  def solve(input:String):String={
    val Array(a,b,c)=input.split(" ")
    if(a==b){
      c
    }else if(b==c){
      a
    }else{
      b
    }
  }
}


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

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <queue>
#include <map>
#include <numeric>
#include <unordered_map>
#include <iomanip>
#include <functional>
#include <bitset>
#include <complex>
#include <stack>



#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i=int(a);i<int(b);i++)
#define all(x) (x).begin(),(x).end()

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

typedef long long ll;

using namespace std;


int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a,b,c;
  cin>>a>>b>>c;
  cout<<(a^b^c)<<endl;

  return 0;

}
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <queue>
#include <map>
#include <numeric>
#include <unordered_map>
#include <iomanip>
#include <functional>
#include <bitset>
#include <complex>
#include <stack>



#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i=int(a);i<int(b);i++)
#define all(x) (x).begin(),(x).end()

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

typedef long long ll;

using namespace std;


int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a,b,c;
  cin>>a>>b>>c;
  cout<<(a^b^c)<<endl;

  return 0;

}


Compiler output:
a.cc:66:23: error: redefinition of 'template<class T> bool chmax(T&, const T&)'
   66 | template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
      |                       ^~~~~
a.cc:24:23: note: 'template<class T> bool chmax(T&, const T&)' previously declared here
   24 | template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
      |                       ^~~~~
a.cc:67:23: error: redefinition of 'template<class T> bool chmin(T&, const T&)'
   67 | template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
      |                       ^~~~~
a.cc:25:23: note: 'template<class T> bool chmin(T&, const T&)' previously declared here
   25 | template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
      |                       ^~~~~
a.cc:74:5: error: redefinition of 'int main()'
   74 | int main()
      |     ^~~~
a.cc:32:5: note: 'int main()' previously defined here
   32 | int main()
      |     ^~~~
Language: C++

using namespace std;
main() {
  int a[3]; for(int i = 0; i < 3; i++) cin >> a[i];
  sort(a,a+3);
  cout << a[0]+a[1]+a[2]-a[1]*2 << endl;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:40: error: 'cin' was not declared in this scope
    3 |   int a[3]; for(int i = 0; i < 3; i++) cin >> a[i];
      |                                        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    4 |   sort(a,a+3);
      |   ^~~~
      |   short
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << a[0]+a[1]+a[2]-a[1]*2 << endl;
      |   ^~~~
a.cc:5:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:36: error: 'endl' was not declared in this scope
    5 |   cout << a[0]+a[1]+a[2]-a[1]*2 << endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
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;
  } else if (b == c) {
    cout << a << endl;
  } else (c == a) {
    cout << b << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '{' token
   11 |   } else (c == a) {
      |                  ^~
      |                  ;
Language: C++

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected unqualified-id before ',' token
    8 |   int a,,b,c; cin>>a>>b>>c;
      |         ^
Language: C++

#include <bits/stdc++.h>

#define INF 1e9
using namespace std;
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 | if(a =! b && a =! c ) cout << a << endl;
      |       ~~~~^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
    7 |         cout << a ^ b ^ c << endl;
      |         ~~~~~~~~~ ^ ~
      |              |      |
      |              |      int
      |              std::basic_ostream<char>
a.cc:7:19: note: candidate: 'operator^(int, int)' (built-in)
    7 |         cout << a ^ b ^ c << endl;
      |         ~~~~~~~~~~^~~
a.cc:7:19: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/cstddef:146:3: note: candidate: 'constexpr std::byte std::operator^(byte, byte)'
  146 |   operator^(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:146:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::byte'
  146 |   operator^(byte __l, byte __r) noexcept
      |             ~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:94:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator^(_Ios_Fmtflags, _Ios_Fmtflags)'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:94:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:144:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator^(_Ios_Openmode, _Ios_Openmode)'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:144:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:191:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator^(_Ios_Iostate, _Ios_Iostate)'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:191:26: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~^~~
a.cc:7:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout << a ^ b ^ c << endl;
      |                         ~~^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'cout'
    9 |   else cout<<b
      |               ^
      |               ;
   10 |   cout<<endl;
      |   ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:29: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d %d",&A &B &C);
      |                          ~~ ^
      |                          |
      |                          int *
Language: C++

arr = $stdin.gets.chomp.split(" ")
arr.map! do |a_j|
a_j.to_i
end

if arr[0] == arr[1]
	puts arr[2]
elsif arr[0] == arr[2]
	puts arr[1]
else
	puts arr[0]
end

Compiler output:
a.cc:1:1: error: 'arr' does not name a type
    1 | arr = $stdin.gets.chomp.split(" ")
      | ^~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main() {
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  sort(a, a+3);
  if (a[0] == a[1]) cout << a[2] << endl;
  else cout << a[0] << endl;
}

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

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


Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:6:3: 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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << ans << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
#include <bits/stdc++.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;
	}
}
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;
	}
}

Compiler output:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main () {
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main () {
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int x{};
    int y{};
    int z{};
    cin >> z >> y >> x;
    if (y==z)
        cout << x;
    else if (x==z)
        cout << y;
    else
        cout << z;
        
    }
    
    return 0;
}

Compiler output:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) ((int)(x).size())
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define repf(i, x, n) for (int i = (int)(x); i < (int)(n); i++)
#define repfr(i, x, n) for (int i = (int)(x)-1; i >= (int)(n); i--)
template <class T> bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T> bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T> inline void in(T &a) { cin >> a; }
template <class T, class U> inline void in(T &a, U &b) { cin >> a >> b; }
template <class T, class U, class V> inline void in(T &a, U &b, V &c) {
  cin >> a >> b >> c;
}
template <class T> inline void out(T a) { std::cout << a << endl; }
template <class T, class U> inline void out(T a, U b) {
  cout << a << ' ' << b << endl;
}
template <class T, class U, class V> inline void out(T a, U b, V c) {
  cout << a << ' ' << b << ' ' << c << endl;
}
#define inf 1e9
using ll = int64_t;
#define waru 1000000007

void Main() {
  int a, b, cc;
  in(a, b, cc);

  if (a == cc) {
    out(b);
  } else if (a == b) {
    out(c);
  } else {
    out(a);
  }

  return;
}

int main() {
  std::cin.tie(nullptr);
  std::ios_base::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(15);
  Main();
  return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:47:9: error: 'c' was not declared in this scope; did you mean 'cc'?
   47 |     out(c);
      |         ^
      |         cc
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: unable to find string literal operator 'operator""c' with 'const char [4]', 'long unsigned int' arguments
   10 |                 printf("%d\n"c);
      |                        ^~~~~~~
a.cc:13:24: error: unable to find string literal operator 'operator""b' with 'const char [4]', 'long unsigned int' arguments
   13 |                 printf("%d\n"b);
      |                        ^~~~~~~
a.cc:16:24: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
   16 |                 printf("%d\n"a);
      |                        ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: unable to find string literal operator 'operator""c' with 'const char [4]', 'long unsigned int' arguments
   10 |                 printf("%d\n"c);
      |                        ^~~~~~~
a.cc:13:24: error: unable to find string literal operator 'operator""b' with 'const char [4]', 'long unsigned int' arguments
   13 |                 printf("%d\n"b);
      |                        ^~~~~~~
a.cc:16:24: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
   16 |                 printf("%d\n"a);
      |                        ^~~~~~~
Language: C++

#include<stdio.h>
#include<string.h>
int main(void)
{
	int a,b,c,x;
	cin>>a>>b>>c;
	if(a==b){
		x=c;
	}
	if(b==c){
		x=a;
	}
	if(a==c){
		x=b;
	}
	cout<<x<<endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |         ^~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<x<<endl;
      |         ^~~~
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |         cout<<x<<endl;
      |                  ^~~~
Language: C++

#include<iostream>

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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << c << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << b << endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << a << 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 "stdafx.h"
#include<iostream>
using namespace std;
 
int main()
{
	int A, B, C;
	std::cin >> A >> B >> C;
 
	int ians;
	if (A == B) {
		ians = C;
	}else if (A==C){
		ians = B;
	}else if (B == C) {
		ians = A;
	}
	std::cout << ians << std::endl;
    return 0;
}

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

// ConsoleApplication1.cpp : アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include<iostream>
using namespace std;

int main()
{
	int A, B, C;
	std::cin >> A >> B >> C;

	int ians;
	if (A == B) {
		ians = C;
	}else if (A==C){
		ians = B;
	}else if (B == C) {
		ians = A;
	}
	std::cout << ians << std::endl;
    return 0;
}

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

import java.util;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = 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 if (B=C){
      System.out.println("A");
    }
  }
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util;
           ^
  symbol:   class util
  location: package java
Main.java:6: error: cannot find symbol
    Scanner sc = Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
    Scanner sc = Scanner(System.in);
                 ^
  symbol:   method Scanner(InputStream)
  location: class Main
Main.java:12: error: incompatible types: int cannot be converted to boolean
    if(A=B){
        ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
    }else if (A=C){
               ^
Main.java:16: error: incompatible types: int cannot be converted to boolean
      }else if (B=C){
                 ^
6 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
 
		int x = Integer.parseInt(str[0]);
  		int y = Integer.parseInt(str[1]);
  		int z = Integer.parseInt(str[2]);
      	
        int ans = x;
  		if (x == y) {
    		ans = z;
  		} else if (x == z) {
   			ans = y;
  		}
 		System.out.println(ans);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
		int x = Integer.parseInt(str[0]);
		                         ^
  symbol:   variable str
  location: class Main
Main.java:7: error: cannot find symbol
  		int y = Integer.parseInt(str[1]);
  		                         ^
  symbol:   variable str
  location: class Main
Main.java:8: error: cannot find symbol
  		int z = Integer.parseInt(str[2]);
  		                         ^
  symbol:   variable str
  location: class Main
3 errors
Language: Java

public class Main {
    public static void main(String[] args) {
      
      String[] str = args[0].split(" ", 0);
 
		int x = Integer.parseInt(str[0]);
  		int y = Integer.parseInt(str[1]);
  		int z = Integer.parseInt(str[2]);
      	
        int ans = x;
  		if (x == y) {
    		ans = z;
  		} else if (x == z) {
   			ans = y;
  		}
 		System.out.println(ans);
    }

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

public class Main {
    public static void main(String[] args) {
 
		int x = Integer.parseInt(args[0]);
  		int y = Integer.parseInt(args[1]);
  		int z = Integer.parseInt(args[2]);
      	
        int ans = x;
  		if (x == y) {
    		ans = z;
  		} else if (x == z) {
   			ans = y;
  		}
 		System.out.println(ans);
    }

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

public class Main {
    public static void main(String[] args) {
 
		int x = Integer.parseInt(args[0]);
  		int y = Integer.parseInt(args[1]);
  		int z = Integer.parseInt(args[2]);
      	
        ans = x;
  		if (x == y) {
    		ans = z;
  		} else if (x == z) {
   			ans = y;
  		}
 		System.out.println(ans);
    }
  
}

Compiler output:
Main.java:8: error: cannot find symbol
        ans = x;
        ^
  symbol:   variable ans
  location: class Main
Main.java:10: error: cannot find symbol
    		ans = z;
    		^
  symbol:   variable ans
  location: class Main
Main.java:12: error: cannot find symbol
   			ans = y;
   			^
  symbol:   variable ans
  location: class Main
Main.java:14: error: cannot find symbol
 		System.out.println(ans);
 		                   ^
  symbol:   variable ans
  location: class Main
4 errors
Language: Java

public class hogehoge {
    public static void main(String[] args) {
 
		int x = Integer.parseInt(args[0]);
  		int y = Integer.parseInt(args[1]);
  		int z = Integer.parseInt(args[2]);
      	
        ans = x;
  		if (x == y) {
    		ans = z;
  		} else if (x == z) {
   			ans = y;
  		}
 		System.out.println(ans);
    }
  
}

Compiler output:
Main.java:1: error: class hogehoge is public, should be declared in a file named hogehoge.java
public class hogehoge {
       ^
Main.java:8: error: cannot find symbol
        ans = x;
        ^
  symbol:   variable ans
  location: class hogehoge
Main.java:10: error: cannot find symbol
    		ans = z;
    		^
  symbol:   variable ans
  location: class hogehoge
Main.java:12: error: cannot find symbol
   			ans = y;
   			^
  symbol:   variable ans
  location: class hogehoge
Main.java:14: error: cannot find symbol
 		System.out.println(ans);
 		                   ^
  symbol:   variable ans
  location: class hogehoge
5 errors
Language: C++

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

int main(){
	vector<int> x(3);
  	for(auto&& u:x)cin>>u;
  	sort(begin(x),end(x)}
    if(x[0]==x[1])cout<<x[2]<<endl;
         else cout<<x[0]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ')' before '}' token
    7 |         sort(begin(x),end(x)}
      |             ~               ^
      |                             )
a.cc: At global scope:
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(x[0]==x[1])cout<<x[2]<<endl;
      |     ^~
a.cc:9:10: error: expected unqualified-id before 'else'
    9 |          else cout<<x[0]<<endl;
      |          ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <regex>
#include <numeric>
using namespace std;

/*--- Macro ---*/
#define rep(i, n) for(int i=0; i<(int)n; i++)
#define rep1(i, n) for(int i=1; i<(int)n; i++)
#define mp make_pair
#define pb push_back

/*---  Type ---*/
typedef long long ll;

/*--- Constants ---*/
template <typename T> const T INF = numeric_limits<T>::max() / 10;
const int MOD = (int)1e9 + 7;

// Floating
const double EPS = 1e-11;
#define EQ0(x) (abs(x) < EPS)
#define EQ(x, y) (abs(a-b) < EPS)

// Util
int max(int a, int b, int c) {return max(a, max(b, c));}
int min(int a, int b, int c) {return min(a, min(b, c));}
ll max(ll x, ll y) {return x > y ? x : y;}
ll min(ll x, ll y) {return x < y ? x : y;}
ll max(ll a, ll b, ll c) {return max(a, max(b, c));}
ll min(ll a, ll b, ll c) {return min(a, min(b, c));}

// -------------------------------------------------------------------------------------



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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:13: error: 'd' was not declared in this scope
   46 | int main() {d
      |             ^
a.cc:48:10: error: 'a' was not declared in this scope
   48 |   cin >> a >> b >> c;
      |          ^
a.cc:48:15: error: 'b' was not declared in this scope; did you mean 'pb'?
   48 |   cin >> a >> b >> c;
      |               ^
      |               pb
a.cc:48:20: error: 'c' was not declared in this scope
   48 |   cin >> a >> b >> c;
      |                    ^