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

;
#include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>
#include<iterator>
using namespace std;

#define pii pair<int,int>
#define valid(nx,ny,r,c) nx>=0 && nx<r && ny>=0 && ny<c
int fx[]= {+0,+0,+1,-1,-1,+1,-1,+1};
int fy[]= {-1,+1,+0,+0,+1,+1,-1,-1};

char cell[50][50];
int main() {
    int i,j,k,r,c;
    cin>>r>>c;
    cin.ignore();
    for(i=0; i<r; i++) {
        gets(cell[i]);
    }


    for(i=0; i<r; i++) {
        for(j=0; j<c; j++) {
            int cnt=0;
            if(cell[i][j]=='.') {
                for(k=0; k<8; k++) {
                    int nx=i+fx[k];
                    int ny=j+fy[k];
                    if(valid(nx,ny,r,c))
                    {
                        if(cell[nx][ny]=='#')
                        cnt++;
                    }

                }
                cell[i][j]=cnt+'0';
            }
        }
    }

    for(i=0; i<r; i++) {
        for(j=0; j<c; j++)
            cout<<cell[i][j];
        cout<<endl;
    }



    return 0;

}





Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   33 |         gets(cell[i]);
      |         ^~~~
      |         getw
Language: C++

#include<bits/stdc++.h>
#include<stdio.h>
#define debug(i,j) cerr<< (i)<< " : "<< j << "\n";
using namespace std;


int main(void)
{
    int h, w;
    cin >> h >> w;
    char dummy[2];
    gets(dummy);
    char g[100][100];
    for(int i=0;i<h;++i)
        gets(g[i]);

        for(int i=0;i<h;++i)for(int j=0;j<w;++j){
            if(g[i][j]=='#')continue;
            else{
                const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
                const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
                char num = '0';
                for(int d =0;d<8; ++d){
                    int x = i + dx[d];
                    int y = j + dy[d];
                    if(x<0 || x>=h || y<0 || y>=w)continue;
                    else if(g[x][y]=='#')num++;
                }
                g[i][j] = num;
            }
        }

    for(int i=0;i<h;i++)
    {
       cout<<g[i]<<"\n";
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |     gets(dummy);
      |     ^~~~
      |     getw
Language: C++

#include<stdio.h>
#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
    cout<<a<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>a>>b>>c;
      | ^~~
      | std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<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:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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 <bits/stdc++.h>;

using namespace std;

int A,B,C;

int main(){
	scanf("%d%d%d",$A,&B,&C);
	
	if (A == B){
		printf("%d\n",C);
	}else if(A == C){
		printf("%d\n",B);
	}else{
		printf("d\n",A);
	}
}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:24: error: '$A' was not declared in this scope; did you mean 'A'?
    8 |         scanf("%d%d%d",$A,&B,&C);
      |                        ^~
      |                        A
Language: C++

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

using namespace std;

int A,B,C;

int main(){
	scanf("%d%d%d",$A,&B,&C);
	
	if (A == B){
		printf("%d",C);
	}else if(A == C){
		printf("%d",B);
	}else{
		printf("d",A);
	}
}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:24: error: '$A' was not declared in this scope; did you mean 'A'?
    8 |         scanf("%d%d%d",$A,&B,&C);
      |                        ^~
      |                        A
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'cout'
    7 |   else(b == c) cout << a << endl;
      |               ^~~~~
      |               ;
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else(a == c) cout << b << endl;
      |   ^~~~
a.cc:8:15: error: expected ';' before 'cout'
    8 |   else(a == c) cout << b << endl;
      |               ^~~~~
      |               ;
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
	int H, W;
	cin >> H >> W;
	string T[50];
	const int dx[8] = {1,0,-1,0,1,-1,-1,1};
	const int dy[8] = {0,1,0,-1,1,1,-1,-1};
	for(i=0; i<H; ++i){
		cin >> T[i];
	}
	for(i=0; i<H; ++i){
		for(j=0; j<W; ++j){
			int count = 0;
			if(T[i][j]=="."){
				for(int n=0; n<8; ++n){
					const int ni = i + dy[n];
					const int nj = j + dx[n];
					if(ni<0 or H<=ni) continue;
					if(nj<0 or W<=nj) continue;
					if(T[ni][nj] == "#") count++;
				}
				T[i][j]=char(count+0)
			}else{
				T[i][j]="#"
			}
		}
	}
	for (int i=0; i<H; ++i) cout << T[i] << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |         for(i=0; i<H; ++i){
      |             ^
a.cc:15:13: error: 'i' was not declared in this scope
   15 |         for(i=0; i<H; ++i){
      |             ^
a.cc:16:21: error: 'j' was not declared in this scope
   16 |                 for(j=0; j<W; ++j){
      |                     ^
a.cc:24:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                                         if(T[ni][nj] == "#") count++;
Language: Java

import com.sun.java_cup.internal.runtime.Scanner;
import com.sun.java_cup.internal.runtime.Symbol;

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

Compiler output:
Main.java:1: error: package com.sun.java_cup.internal.runtime is not visible
import com.sun.java_cup.internal.runtime.Scanner;
                                ^
  (package com.sun.java_cup.internal.runtime is declared in module java.xml, which does not export it)
Main.java:2: error: package com.sun.java_cup.internal.runtime is not visible
import com.sun.java_cup.internal.runtime.Symbol;
                                ^
  (package com.sun.java_cup.internal.runtime is declared in module java.xml, which does not export it)
2 errors
Language: C++

#include <stdio.h>

using namespace std;

int main() {
  int a, b, c;
  while (cin >> a >> b >> c) {
        print(a^b^c);
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'cin' was not declared in this scope
    7 |   while (cin >> a >> b >> c) {
      |          ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:8:9: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |         print(a^b^c);
      |         ^~~~~
      |         printf
Language: C++

#include <iostream>

using namespace std;

int main() {
  int a, b, c;
  while (cin >> a >> b >> c) {
        print(a^b^c);
    }
}
~                                                                               
~              

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |         print(a^b^c);
      |         ^~~~~
      |         printf
a.cc: At global scope:
a.cc:12:1: error: expected class-name before '~' token
   12 | ~
      | ^
Language: C++

#include<vector>
#include<algorithm>
int main() {
	int answer;
	std::vector<int> v;

	for (auto&& x : v) {
		std::cin >> x;
	}

	for (int i = 0; i < v.size(); i++) {
		if (1 == std::count_if(v.begin(), v.end(), v[i])) {
			answer = v[i];
			break;
		}
	}

	std::cout << answer << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'cin' is not a member of 'std'
    8 |                 std::cin >> x;
      |                      ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | int main() {
a.cc:18:14: error: 'cout' is not a member of 'std'
   18 |         std::cout << answer << std::endl;
      |              ^~~~
a.cc:18:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:37: error: 'endl' is not a member of 'std'
   18 |         std::cout << answer << std::endl;
      |                                     ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | int main() {
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 from /usr/include/c++/14/vector:62,
                 from a.cc:1:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Predicate = int]':
/usr/include/c++/14/bits/stl_algobase.h:2163:12:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<int*, vector<int> >; _Predicate = __gnu_cxx::__ops::_Iter_pred<int>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 2163 |         if (__pred(__first))
      |             ~~~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4057:29:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count_if(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<int*, vector<int> >; _Predicate = int; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 4057 |       return std::__count_if(__first, __last,
      |              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4058 |                              __gnu_cxx::__ops::__pred_iter(__pred));
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:12:25:   required from here
   12 |                 if (1 == std::count_if(v.begin(), v.end(), v[i])) {
      |                          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:318:30: error: expression cannot be used as a function
  318 |         { return bool(_M_pred(*__it)); }
      |                       ~~~~~~~^~~~~~~
Language: C++

#include<string>
#include<string.h>
#include<map>
#include<set>
#include<vector>
#include<stdio.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<queue>
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];
else
if(a[1]==a[2])
cout<<a[0];
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: error: expected '}' at end of input
   22 | return 0;
      |          ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
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];
else
if(a[1]==a[2)
cout<<a[0];
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort (a,a+3);
      | ^~~~
      | short
a.cc:11:13: error: expected ']' before ')' token
   11 | if(a[1]==a[2)
      |             ^
      |             ]
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 if(c==a) {
		printf("%d\n",b);
	}
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ')' before 'c'
    8 |                 printf("%d\n"c);
      |                       ~      ^
      |                              )
main.c:11:30: error: expected ')' before 'a'
   11 |                 printf("%d\n"a);
      |                       ~      ^
      |                              )
Language: C++

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

}


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

#include <stdio.h>

int main(void)
{

  int A,B,C;

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

  if (A == B) {
    printf("%d\n", C); }

  else (A == C) {
    printf("%d\n", B); }

  else {
    printf("%d\n", A); }

  return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '{' token
   13 |   else (A == C) {
      |                ^~
      |                ;
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else {
      |   ^~~~
Language: C++

#include <stdio.h>
using namespace std;

int main(void){
    int A,B,C,X;

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

    if(A==B){
        X=C
    }else if(B==C){
        X=A
    }else{
        X=B
    }

    printf("%d", &X);


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |         X=C
      |            ^
      |            ;
   11 |     }else if(B==C){
      |     ~       
a.cc:12:12: error: expected ';' before '}' token
   12 |         X=A
      |            ^
      |            ;
   13 |     }else{
      |     ~       
a.cc:14:12: error: expected ';' before '}' token
   14 |         X=B
      |            ^
      |            ;
   15 |     }
      |     ~
Language: C++

#include <stdio.h>
using namespace std;

int main(void){
    int A,B,C,X;

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

    if(A==B){
        X=C
    }elseif(B==C){
        X=A
    }else{
        X=B
    }

    printf("%d", &X);


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |         X=C
      |            ^
      |            ;
   11 |     }elseif(B==C){
      |     ~       
a.cc:11:6: error: 'elseif' was not declared in this scope
   11 |     }elseif(B==C){
      |      ^~~~~~
a.cc:13:6: error: 'else' without a previous 'if'
   13 |     }else{
      |      ^~~~
a.cc:14:12: error: expected ';' before '}' token
   14 |         X=B
      |            ^
      |            ;
   15 |     }
      |     ~
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
typedef long long ll;
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:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
public class minesweeper {

	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);
		}
		sc.close();
	}

}

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

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		//計算

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

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

import java.util.*;
public class _075_P1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		if(a == b) System.out.println(c);
		else if(b == c) System.out.println(a);
		else System.out.println(b);
	}

}


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

package contest;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String[] cut = x.split(" ");
		
		if (cut[1].equals(cut[2])) {
			System.out.println(cut[0]);
		

		if (cut[0].equals(cut[1])) {
			System.out.println(cut[2]);
		}
		if (cut[0].equals(cut[2])) {
			System.out.println(cut[1]);
			
		}
	}

}

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

package contest;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class MainTwo {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String[] cut = x.split(" ");
		
		System.out.println(cut[0]);

		if (cut[0].equals(cut[1])) {
			System.out.println(cut[2]);
		}
		if (cut[0].equals(cut[2])) {
			System.out.println(cut[1]);
			
		}
	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		String[] list = str.split(" ");
		if(list[0].equals(list[1])) {
			System.out.println(list[2]);
		}else if(list[0].equals(list[2])) {
			System.out.println(list[1]);
		}else {
			System.out.println(list[0]);
		}
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>

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: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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout << b << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'integer' was not declared in this scope
    6 |         integer a, b, c;
      |         ^~~~~~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |                ^
a.cc:7:21: error: 'b' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |                     ^
a.cc:7:26: error: 'c' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |                          ^
Language: C++

#include <iostream>

using namespace std;

int main(){

	int a,b,c;

	cin >> a >> b >> c;

	if(a == b)return c;
	if(a == c)retuen b;
	
	return a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'retuen' was not declared in this scope
   12 |         if(a == c)retuen b;
      |                   ^~~~~~
Language: C

 int i, j, k;
scanf("%d%d%d", &i, &j, &k);

if(i == j){
 printf("%d",k);
}else if(j == k){
 printf("%d",i);
}else{
 printf("%d",j);
}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d%d", &i, &j, &k);
      |       ^~~~~~~~
main.c:2:17: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d%d", &i, &j, &k);
      |                 ^
main.c:2:21: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d%d", &i, &j, &k);
      |                     ^
main.c:2:25: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d%d", &i, &j, &k);
      |                         ^
main.c:4:1: error: expected identifier or '(' before 'if'
    4 | if(i == j){
      | ^~
main.c:6:2: error: expected identifier or '(' before 'else'
    6 | }else if(j == k){
      |  ^~~~
main.c:8:2: error: expected identifier or '(' before 'else'
    8 | }else{
      |  ^~~~
Language: C++

#include<stdio.h>
 
int main()
{
	int A,B,C;

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

	if(A==B)printf("%d",C);

	if(A==C)printf("%d",B);

	if(B==C)printf("%d",A);
}


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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'emdl' was not declared in this scope
    9 |         if(a==b) cout<<c<<emdl;
      |                           ^~~~
Language: C++

import java.util.Scanner;

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

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


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

main = print =<< solver <$> (map read . words <$> getLine)

solver :: [Int] -> Int
solver [a, b, c] = if (a == b) then c else if (b == c) then a else b

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = print =<< solver <$> (map read . words <$> getLine)
      | ^~~~
Language: C

A,B,C = map(int,input().split())
if A == B: print(C)
elif B == C: print(A)
else: print(B)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | A,B,C = map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'B' [-Wimplicit-int]
    1 | A,B,C = map(int,input().split())
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'C' [-Wimplicit-int]
    1 | A,B,C = map(int,input().split())
      |     ^
main.c:1:9: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | A,B,C = map(int,input().split())
      |         ^~~
main.c:1:13: error: expected expression before 'int'
    1 | A,B,C = map(int,input().split())
      |             ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if A == B: print(C)
      | ^~
Language: C++

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

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
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);
  
  if(A==C)printf("%d\n",B);
  
  if(B==C)printf("%d\n",A);

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
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);
  
  if(a==c)printf("%d\n",B);
  
  if(b==c)printf("%d\n",A);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'c' was not declared in this scope
    7 |   scanf("%d %d %d",&A,&B,&c);
      |                           ^
a.cc:11:6: error: 'a' was not declared in this scope
   11 |   if(a==c)printf("%d\n",B);
      |      ^
a.cc:13:6: error: 'b' was not declared in this scope
   13 |   if(b==c)printf("%d\n",A);
      |      ^
Language: C++

#include <cstdio>

using namespace std;

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

Compiler output:
a.cc:9:21: warning: missing terminating ' character
    9 |              printf('%d", c);
      |                     ^
a.cc:9:21: error: missing terminating ' character
    9 |              printf('%d", c);
      |                     ^~~~~~~~~
a.cc:11:21: warning: missing terminating ' character
   11 |              printf('%d", b);
      |                     ^
a.cc:11:21: error: missing terminating ' character
   11 |              printf('%d", b);
      |                     ^~~~~~~~~
a.cc:13:21: warning: missing terminating ' character
   13 |              printf('%d", a);
      |                     ^
a.cc:13:21: error: missing terminating ' character
   13 |              printf('%d", a);
      |                     ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:6: error: expected primary-expression before 'if'
   10 |      if(a == c)
      |      ^~
Language: C++

import java.util.Scanner;

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


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

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in=new Scanner(System.in);
		int a=in.nextInt(),b=in.nextInt(),c=in.nextInt();
		int arr[]={a,b,c};
		Arrays.sort(arr);
		for(int i=0;i<1;i++){
		    if(arr[i]==arr[i+1]){
		        if(i==0){
		            out.println(arr[2]);
		            return;
		        }
		        else if(i==1){
		            out.println(arr[0]);
		            return;
		        }
		    }
		}
		out.println(arr[1]);
	}
}


Compiler output:
Main.java:19: error: cannot find symbol
		            out.println(arr[2]);
		            ^
  symbol:   variable out
  location: class Main
Main.java:23: error: cannot find symbol
		            out.println(arr[0]);
		            ^
  symbol:   variable out
  location: class Main
Main.java:28: error: cannot find symbol
		out.println(arr[1]);
		^
  symbol:   variable out
  location: class Main
3 errors
Language: Java

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in=new Scanner(System.in);
		int a=in.nextInt(),b=in.nextInt(),c=in.nextInt();
		int arr[]={a,b,c}
		Arrays.sort(arr);
		for(int i=0;i<1;i++){
		    if(arr[i]==arr[i+1]){
		        if(i==0){
		            out.println(arr[2]);
		            return;
		        }
		        else if(i==1){
		            out.println(arr[0]);
		            return;
		        }
		    }
		}
		out.println(arr[1]);
	}
}


Compiler output:
Main.java:14: error: ';' expected
		int arr[]={a,b,c}
		                 ^
1 error
Language: Java

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in=new Scanner(System.in);
		int a=in.nextInt(),b=in.nextInt(),c=in.nextInt();
		int arr[]={a,b,c}
		Arrays.sort(arr);
		for(int i=0;i<1;i++){
		    if(arr[i]==arr[i+1]){
		        if(i==0){
		            out.println(arr[2]);
		            return;
		        }
		        else if(i==1){
		            out.println(arr[0]);
		            return;
		        }
		    }
		}
		out.println(arr[1]);
	}
}


Compiler output:
Main.java:14: error: ';' expected
		int arr[]={a,b,c}
		                 ^
1 error
Language: C++

a,b,c=map(int,input(),split())
if a ==b:
	print(c)
elce
if a == c:
	print(b)
	else:
		print(a)

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

int main(void) {
int a,b,c;
std::cin >> a >> b >> c;
std::cout << a^b^c << endl;
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'cin' is not a member of 'std'
    3 | std::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 | int main(void) {
a.cc:4:6: error: 'cout' is not a member of 'std'
    4 | std::cout << a^b^c << endl;
      |      ^~~~
a.cc:4:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:4:23: error: 'endl' was not declared in this scope
    4 | std::cout << a^b^c << endl;
      |                       ^~~~
Language: C++

int main(void) {
int a,b,c;
std::cin >> a >> b >> c;
std::cout << a^b^c << std::endl;
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'cin' is not a member of 'std'
    3 | std::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 | int main(void) {
a.cc:4:6: error: 'cout' is not a member of 'std'
    4 | std::cout << a^b^c << std::endl;
      |      ^~~~
a.cc:4:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:4:28: error: 'endl' is not a member of 'std'
    4 | std::cout << a^b^c << std::endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(void) {
Language: C++

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

return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d %d %d<U+2033> , &a , &b , &c );
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d %d %d″ , &a , &b , &c );
      |        ^
main.c:4:16: error: stray '\342' in program
    4 | scanf(<U+2033>%d %d %d<U+2033> , &a , &b , &c );
      |                       ^~~~~~~~
main.c:6:17: error: stray '\342' in program
    6 | if(a==b) printf(<U+2033>%d<U+2033> , a);
      |                 ^~~~~~~~
main.c:6:18: error: expected expression before '%' token
    6 | if(a==b) printf(″%d″ , a);
      |                  ^
main.c:6:20: error: stray '\342' in program
    6 | if(a==b) printf(<U+2033>%d<U+2033> , a);
      |                           ^~~~~~~~
main.c:7:22: error: stray '\342' in program
    7 | else if(a==c) printf(<U+2033>%d<U+2033> , a);
      |                      ^~~~~~~~
main.c:7:23: error: expected expression before '%' token
    7 | else if(a==c) printf(″%d″ , a);
      |                       ^
main.c:7:25: error: stray '\342' in program
    7 | else if(a==c) printf(<U+2033>%d<U+2033> , a);
      |                                ^~~~~~~~
main.c:8:21: error: stray '\342' in program
    8 | else if(b==c)printf(<U+2033>%d<U+2033> , b);
      |                     ^~~~~~~~
main.c:8:22: error: expected expression before '%' token
    8 | else if(b==c)printf(″%d″ , b);
      |                      ^
main.c:8:24: error: stray '\342' in program
    8 | else if(b==c)printf(<U+2033>%d<U+2033> , b);
      |                               ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d %d %d<U+2033>,&a,&b,&c);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d %d %d″,&a,&b,&c);
      |        ^
main.c:4:16: error: stray '\342' in program
    4 | scanf(<U+2033>%d %d %d<U+2033>,&a,&b,&c);
      |                       ^~~~~~~~
main.c:6:17: error: stray '\342' in program
    6 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                 ^~~~~~~~
main.c:6:18: error: expected expression before '%' token
    6 | if(a==b) printf(″%d″,a);
      |                  ^
main.c:6:20: error: stray '\342' in program
    6 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                           ^~~~~~~~
main.c:7:22: error: stray '\342' in program
    7 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                      ^~~~~~~~
main.c:7:23: error: expected expression before '%' token
    7 | else if(a==c) printf(″%d″,a);
      |                       ^
main.c:7:25: error: stray '\342' in program
    7 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                                ^~~~~~~~
main.c:8:21: error: stray '\342' in program
    8 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                     ^~~~~~~~
main.c:8:22: error: expected expression before '%' token
    8 | else if(b==c)printf(″%d″,b);
      |                      ^
main.c:8:24: error: stray '\342' in program
    8 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                               ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&a);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d″,&a);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&a);
      |                 ^~~~~~~~
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+2033>%d<U+2033>,&b);
      |       ^~~~~~~~
main.c:5:8: error: expected expression before '%' token
    5 | scanf(″%d″,&b);
      |        ^
main.c:5:10: error: stray '\342' in program
    5 | scanf(<U+2033>%d<U+2033>,&b);
      |                 ^~~~~~~~
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+2033>%d<U+2033>,&c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(″%d″,&c);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+2033>%d<U+2033>,&c);
      |                 ^~~~~~~~
main.c:8:17: error: stray '\342' in program
    8 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                 ^~~~~~~~
main.c:8:18: error: expected expression before '%' token
    8 | if(a==b) printf(″%d″,a);
      |                  ^
main.c:8:20: error: stray '\342' in program
    8 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                           ^~~~~~~~
main.c:9:22: error: stray '\342' in program
    9 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                      ^~~~~~~~
main.c:9:23: error: expected expression before '%' token
    9 | else if(a==c) printf(″%d″,a);
      |                       ^
main.c:9:25: error: stray '\342' in program
    9 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                                ^~~~~~~~
main.c:10:21: error: stray '\342' in program
   10 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                     ^~~~~~~~
main.c:10:22: error: expected expression before '%' token
   10 | else if(b==c)printf(″%d″,b);
      |                      ^
main.c:10:24: error: stray '\342' in program
   10 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                               ^~~~~~~~
Language: C

#include <stdio.h>
int main(){
   int a,b,c=0;
scanf(″%d″,&a);
scanf(″%d″,&b);
scanf(″%d″,&c);

if(a==b) printf(″%d″,a);
else if(a==c) printf(″%d″,a);
else if(b==c)printf(″%d″,b);
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&a);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d″,&a);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&a);
      |                 ^~~~~~~~
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+2033>%d<U+2033>,&b);
      |       ^~~~~~~~
main.c:5:8: error: expected expression before '%' token
    5 | scanf(″%d″,&b);
      |        ^
main.c:5:10: error: stray '\342' in program
    5 | scanf(<U+2033>%d<U+2033>,&b);
      |                 ^~~~~~~~
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+2033>%d<U+2033>,&c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(″%d″,&c);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+2033>%d<U+2033>,&c);
      |                 ^~~~~~~~
main.c:8:17: error: stray '\342' in program
    8 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                 ^~~~~~~~
main.c:8:18: error: expected expression before '%' token
    8 | if(a==b) printf(″%d″,a);
      |                  ^
main.c:8:20: error: stray '\342' in program
    8 | if(a==b) printf(<U+2033>%d<U+2033>,a);
      |                           ^~~~~~~~
main.c:9:22: error: stray '\342' in program
    9 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                      ^~~~~~~~
main.c:9:23: error: expected expression before '%' token
    9 | else if(a==c) printf(″%d″,a);
      |                       ^
main.c:9:25: error: stray '\342' in program
    9 | else if(a==c) printf(<U+2033>%d<U+2033>,a);
      |                                ^~~~~~~~
main.c:10:21: error: stray '\342' in program
   10 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                     ^~~~~~~~
main.c:10:22: error: expected expression before '%' token
   10 | else if(b==c)printf(″%d″,b);
      |                      ^
main.c:10:24: error: stray '\342' in program
   10 | else if(b==c)printf(<U+2033>%d<U+2033>,b);
      |                               ^~~~~~~~
Language: Java

import java.util.Scanner;

public class Contest7501 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int[] num = new int[3];
		int i = 0;
		while (input.hasNextInt()) {
			num[i++] = input.nextInt();
		}
		if(num[0] == num[1]) {
			System.out.println(num[2]);
		}else if (num[0] == num[2]) {
			System.out.println(num[1]);
		} else {
			System.out.println(num[0]);
		}
	}
}

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

import java.util.*;

public class ABC075A
{
    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 (B == C)
        System.out.println(A);
    else
        System.out.println(B);
    }
}

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


int main(int argc, const char * argv[]) {
    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;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>A>>B>>C;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<C<<endl;
      |         ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |         cout<<C<<endl;
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<B<<endl;
      |     ^~~~
a.cc:11:14: error: 'endl' was not declared in this scope
   11 |     cout<<B<<endl;
      |              ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<A<<endl;
      |         ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |         cout<<A<<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;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected primary-expression before '>' token
    8 |     cin >> a >> b > >c;
      |                     ^