criyle/codenet-compile-errors huggingface dataset:
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;
  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:6: error: 'a' was not declared in this scope
   48 |   if(a == b) cout << c << endl;
      |      ^
a.cc:48:11: error: 'b' was not declared in this scope; did you mean 'pb'?
   48 |   if(a == b) cout << c << endl;
      |           ^
      |           pb
a.cc:48:22: error: 'c' was not declared in this scope
   48 |   if(a == b) cout << c << endl;
      |                      ^
a.cc:49:16: error: 'c' was not declared in this scope
   49 |   else if(b == c) cout << a << endl;
      |                ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main(void)
{
int h,w;
cin >> h >> w;
 
string board[50];
 
for(int i=0;i<h;i++)
  cin>>board[i];
 
const int dx[8]={1,0,-1,0,1,-1,-1,1};//現在位置の周囲8マスを探索(縦dx,横dy)
const int dy[8]={0,1,0,-1,1,1,-1,-1};
 
for(int i=0;i<h;i++){
  for(int j=0;j<w;j++){
    if(board[i][j]=='#') contniue;
	
    int num=0;
    for(int k=0;k<8;k++){
        const int ni=i+dx[k];
        const int nj=j+dy[k];
      
      if(ni<0 or ni=<h)continue;
      if(nj<0 or nj=<j)continue;
      if(board[ni][nj]=='#')num++;
    }
    board[i][j]=char(num+'0');    
        
 }
}
for(i=0;i<h;i++)cout<<board[h]<<endl;
 
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: 'contniue' was not declared in this scope
   20 |     if(board[i][j]=='#') contniue;
      |                          ^~~~~~~~
a.cc:27:21: error: expected primary-expression before '<' token
   27 |       if(ni<0 or ni=<h)continue;
      |                     ^
a.cc:28:21: error: expected primary-expression before '<' token
   28 |       if(nj<0 or nj=<j)continue;
      |                     ^
a.cc:35:5: error: 'i' was not declared in this scope
   35 | for(i=0;i<h;i++)cout<<board[h]<<endl;
      |     ^
a.cc:37:1: error: 'return0' was not declared in this scope
   37 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
#include<iomanip>
#include<math.h>
#include<algorithm>
#include<utility>
#include<functional>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<map>
#include<vector>
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
int a,b,c
int main(){
    cin>>a>>b>>c;
    if(a==b)cout<<c;
    else if(a==c)cout<<b;
    else cout<<a;
    return 0;
}

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

#include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;

int comp(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
   15 |         cint >> a >> b >> c;
      |         ^~~~
      |         uint
Language: C++

#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'cin' was not declared in this scope
    9 |  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 <algorithm>
  +++ |+#include <iostream>
    2 | 
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << C << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout << C << endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <algorithm>
  +++ |+#include <ostream>
    2 | 
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << B << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:18: error: 'endl' was not declared in this scope
   17 |     cout << B << endl;
      |                  ^~~~
a.cc:17:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << A << endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:18: error: 'endl' was not declared in this scope
   21 |     cout << A << endl;
      |                  ^~~~
a.cc:21:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <stdio.h>
int main(void) {
	int A, B, C;
	scanf_s("%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);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d %d %d", &A, &B, &C);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void) {
	printf("文字列を入力してEnterボタンを押してください\n");

	int A, B, C;
	scanf_s("%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);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d %d", &A, &B, &C);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void) {
	printf("文字列を入力してEnterボタンを押してください\n");

	int A, B, C;
	scanf_s("%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);
	return 0;

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d %d", &A, &B, &C);
      |         ^~~~~~~
      |         scanf
main.c:11:9: error: expected declaration or statement at end of input
   11 |         return 0;
      |         ^~~~~~
Language: C++

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

int main(){
  int H, W;
  cin >> H >> W;
  string S[];
  
  for(int i = 0; i < H; i++){
    cin >> S[i];
  }//Sの配置完了
  for(int i = 0; i < H; i++){
    for(int j = 0; j < W; j++){
      if(S[i][j] == '.'){
        int x = 0;
        if((0<=i-1)&&(i-1<=H-1)&&(0<=j-1)&&(j-1<=W-1)){
          if(S[i-1][j-1]=='#'){
          x++;
          }
        }
        if((0<=i-1)&&(i-1<=H-1)&&(0<=j)&&(j<=W-1)){
          if(S[i-1][j]=='#'){
          x++;
          }
        }
        if((0<=i-1)&&(i-1<=H-1)&&(0<=j+1)&&(j+1<=W-1)){
          if(S[i-1][j+1]=='#'){
          x++;
          }
        }
        if((0<=i)&&(i<=H-1)&&(0<=j-1)&&(j-1<=W-1)){
          if(S[i][j-1]=='#'){
          x++;
          }
        }
        if((0<=i)&&(i<=H-1)&&(0<=j+1)&&(j+1<=W-1)){
          if(S[i][j+1]=='#'){
          x++;
          }
        }
        if((0<=i+1)&&(i+1<=H-1)&&(0<=j-1)&&(j-1<=W-1)){
          if(S[i+1][j-1]=='#'){
          x++;
          }
        }
          if((0<=i+1)&&(i+1<=H-1)&&(0<=j)&&(j<=W-1)){
            if(S[i+1][j]=='#'){
          x++;
            }
        }
          if((0<=i+1)&&(i+1<=H-1)&&(0<=j+1)&&(j+1<=W-1)){
            if(S[i+1][j+1]=='#'){
          x++;
            }
        }
        S[i][j]='0'+x;
      }
    }
  }
  for(int i = 0;i<H; i++)
  cout << S[i] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: array size missing in 'S'
    7 |   string S[];
      |          ^
Language: C++

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

int main(){
  int H, W;
  cin >> H >> W;
  string S[50];
  int x=0;
  for(int i = 0; i < H; i++){
    cin >> S[i];
  }//Sの配置完了
  for(int i = 0; i < H; i++){
    for(int j = 0; j < W; j++){
      if(S[i][j] == '.'){
        if((0<=i-1<=H-1)&&(0<=j-1<=W-1)){
          if(S[i-1][j-1]=='#'){
          x++;
          }
        }
        if((0<=i-1<=H-1)&&(0<=j<=W-1)){
          if(S[i-1][j]=='#'){
          x++;
          }
        }
        if((0<=i-1<=H-1)&&(0<=j+1<=W-1)){
          if(S[i-1][j+1]=='#'){
          x++;
          }
        }
        if((0<=i<=H-1)&&(0<=j-1<=W-1)){
          if(S[i][j-1]=='#'){
          x++;
          }
        }
        if((0=<i<=H-1)&&(0<=j+1<=W-1)){
          if(S[i][j+1]=='#'){
          x++;
          }
        }
        if((0<=i+1<=H-1)&&(0<=j-1<=W-1)){
          if(S[i+1][j-1]=='#'){
          x++;
          }
        }
          if((0=<i+1<=H-1)&&(0=<j<=W-1)){
            if(S[i+1][j]=='#'){
          x++;
            }
        }
          if((0<=i+1<=H-1)&&(0<=j+1<=W-1)){
            if(S[i+1][j+1]=='#'){
          x++;
            }
        }
        S[i][j]='x';
      }
    }
  }
  for(int i = 0;i<H; i++)
  cout << S[i] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: expected primary-expression before '<' token
   35 |         if((0=<i<=H-1)&&(0<=j+1<=W-1)){
      |               ^
a.cc:45:17: error: expected primary-expression before '<' token
   45 |           if((0=<i+1<=H-1)&&(0=<j<=W-1)){
      |                 ^
a.cc:45:32: error: expected primary-expression before '<' token
   45 |           if((0=<i+1<=H-1)&&(0=<j<=W-1)){
      |                                ^
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(A==C){
    cout<<B<<endl;
  }else{
    cout<<A<<endl;
}

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

#include<iostream>
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(a%c==0){
  cout << b << endl;
  }
  return 0;
}

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

#include <iostream>
using namespace std;

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

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

//encoding:utf-8
//#include <iostream> //c++
//#include<stack> //スタックに関して　最新のデータから捨てる
//#include<queue> //キューに関して　最古のデータから捨てる
//#include<math.h>
//#include<vector>
//#include<algorithm> //sort とかにいる
#include<bits/stdc++.h>//vector,algorithm,que
#include<time.h> //時間にかんして

#define ll long long
#define MOD 1000000007
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int ans;
  if(a==b){
    ans = c;
  }
  elif(a==c){
    ans = b;
  }
  else{
    ans = a;
  }
  cout<<ans<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'elif' was not declared in this scope
   21 |   elif(a==c){
      |   ^~~~
a.cc:24:3: error: 'else' without a previous 'if'
   24 |   else{
      |   ^~~~
Language: C++

//encoding:utf-8
//#include <iostream> //c++
//#include<stack> //スタックに関して　最新のデータから捨てる
//#include<queue> //キューに関して　最古のデータから捨てる
//#include<math.h>
//#include<vector>
//#include<algorithm> //sort とかにいる
#include<bits/stdc++.h>//vector,algorithm,que
#include<time.h> //時間にかんして

#define ll long long
#define MOD 1000000007
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int ans;
  if(a==b){
    ans = c;
  }
  elif(a==c){
    ans = b;
  }
  else{
    ans = a;
  }
  cout<<and<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'elif' was not declared in this scope
   21 |   elif(a==c){
      |   ^~~~
a.cc:24:3: error: 'else' without a previous 'if'
   24 |   else{
      |   ^~~~
a.cc:27:12: error: expected identifier before '<<' token
   27 |   cout<<and<<endl;
      |            ^~
Language: Java

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

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:7: error: not a statement
    cin >> a >> b >> c;
                  ^
Main.java:9: error: not a statement
    cout << (a == b ? c : a == c ? b : a) << endl;
                                          ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'c' was not declared in this scope
   10 |     if(A==c) ans = B;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(3);
  for(int i=0;i<3;i++){
    cin>>a(i);
  }
  sort(a.begin(),a.end());
  cout<<a[2]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: no match for call to '(std::vector<int>) (int&)'
    6 |     cin>>a(i);
      |          ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(3);
  for(int i=0;i<3;i++){
    cin>>a(3);
  }
  sort(a.begin(),a.end());
  cout<<a[3]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: no match for call to '(std::vector<int>) (int)'
    6 |     cin>>a(3);
      |          ~^~~
Language: Java

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

class Main {

    public static void main(String[] args) throws FileNotFoundException {
		Scanner sc = new Scanner(System.in);

        Scanner sc = new Scanner(new File("stdin.txt"));
        int H = sc.nextInt();
        int W = sc.nextInt();
        String [][] S = new String [H][W];
        final int height = H;
        final int width = W;
        int [][] number = new int [H][W];

        //set Tiles
        for (int i = 0; i < H ; i++){
            for (int j = 0; j <W ; j++){
                S[i][j] = sc.nextLine();
            }
        }
        //print mine number
        for (int i = 0; i < H ; i++){
            for(int j = 0; j < W; j ++){
                number[i][j] = countMine(i , j, height, width, S );
                System.out.print(number[i][j]);
            }
            System.out.println();
        }
    }
    
    public static int countMine( int h, int w, int height, int width, String[][] S){
        int count = 0;
        for (int i = h - 1; i <=  h + 1; i++){
            if( i < 0 || i >= height ){
                continue;
            }
            for (int j = w - 1; j <= w + 1; j++){
                if( j < 0 || j >= width){
                    continue;
                }
                if ( S[i][j].equals("#")){
                   count++;
               }
            }
        }
        return count;
    }
}

Compiler output:
Main.java:10: error: variable sc is already defined in method main(String[])
        Scanner sc = new Scanner(new File("stdin.txt"));
                ^
1 error
Language: C++

#include <iostrem>
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;
    }
    return 0;
}

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

import cmath
import numpy as np
import sys

INF=1e18
MOD=1e9+7

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

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










Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import cmath
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <set>

int main() {
  std::multiset<int> tmp;

  std::cin >> tmp[0] >> tmp[1] >> tmp[2];

  std::size_t n1 = tmp.count(tmp[0]);
  std::size_t n2 = tmp.count(tmp[1]);
  std::size_t n3 = tmp.count(tmp[2]);

  if (n1 == 1) {
    std::cout << tmp[0] << std::endl;
  } else if (n2 == 1) {
    std::cout << tmp[1] << std::endl;
  } else if (n3 == 1) {
    std::cout << tmp[3] << std::endl;
  }
  return 0;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
    7 |   std::cin >> tmp[0] >> tmp[1] >> tmp[2];
      |                  ^
a.cc:7:28: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
    7 |   std::cin >> tmp[0] >> tmp[1] >> tmp[2];
      |                            ^
a.cc:7:38: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
    7 |   std::cin >> tmp[0] >> tmp[1] >> tmp[2];
      |                                      ^
a.cc:9:33: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
    9 |   std::size_t n1 = tmp.count(tmp[0]);
      |                                 ^
a.cc:10:33: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
   10 |   std::size_t n2 = tmp.count(tmp[1]);
      |                                 ^
a.cc:11:33: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
   11 |   std::size_t n3 = tmp.count(tmp[2]);
      |                                 ^
a.cc:14:21: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
   14 |     std::cout << tmp[0] << std::endl;
      |                     ^
a.cc:16:21: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
   16 |     std::cout << tmp[1] << std::endl;
      |                     ^
a.cc:18:21: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int')
   18 |     std::cout << tmp[3] << std::endl;
      |                     ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #includ <bits/stdc++.h>
a.cc:5:15: error: 'B' was not declared in this scope; did you mean 'BC'?
    5 |   cin >> A >> B >> C;
      |               ^
      |               BC
a.cc:5:20: error: 'C' was not declared in this scope; did you mean 'BC'?
    5 |   cin >> A >> B >> C;
      |                    ^
      |                    BC
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << C << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout << C << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << B << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout << B << endl;
      |                  ^~~~
a.cc:9:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << A << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout << A << endl;
      |                  ^~~~
a.cc:11:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |     int A,B,C,;
      |               ^
Language: C++

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

int main(){
    int A,B,C,x;
    cin >> A >> B >> C;
    x=A+B+C-min(A,B,C)-max(A,B,C);
    cout << x << endl;
}


Compiler output:
In file included from /usr/include/c++/14/string:51,
                 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/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:16:   required from here
    8 |     x=A+B+C-min(A,B,C)-max(A,B,C);
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:27:   required from here
    8 |     x=A+B+C-min(A,B,C)-max(A,B,C);
      |                        ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int A,B,C,x;
    cin >> A >> B >> C;
    x=A+B+C-min(A,B,C)-max(A,B,C);
    cout << x << endl;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 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/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:16:   required from here
    7 |     x=A+B+C-min(A,B,C)-max(A,B,C);
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:27:   required from here
    7 |     x=A+B+C-min(A,B,C)-max(A,B,C);
      |                        ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int A,B,C;
  cin>>A>>B>>C;
  cout<<(A^B)^C;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
    7 |   cout<<(A^B)^C;
      |   ~~~~~~~~~~~^~
      |       |       |
      |       |       int
      |       std::basic_ostream<char>
a.cc:7:14: note: candidate: 'operator^(int, int)' (built-in)
    7 |   cout<<(A^B)^C;
      |   ~~~~~~~~~~~^~
a.cc:7:14: 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
      |             ~~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int A,B,C;
  cin>>A>>B>>C;
  cout<<A^B^C;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
    7 |   cout<<A^B^C;
      |   ~~~~~~~^~
      |       |   |
      |       |   int
      |       std::basic_ostream<char>
a.cc:7:10: note: candidate: 'operator^(int, int)' (built-in)
    7 |   cout<<A^B^C;
      |   ~~~~~~~^~
a.cc:7:10: 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
      |             ~~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int A,B,C;
  cin>>A>>B>>C;
  cout<<A^B^C;
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
    7 |   cout<<A^B^C;
      |   ~~~~~~~^~
      |       |   |
      |       |   int
      |       std::basic_ostream<char>
a.cc:7:10: note: candidate: 'operator^(int, int)' (built-in)
    7 |   cout<<A^B^C;
      |   ~~~~~~~^~
a.cc:7:10: 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:8:3: error: 'return0' was not declared in this scope
    8 |   return0;
      |   ^~~~~~~
Language: C++

#include <iostrema>
using 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;
}

Compiler output:
a.cc:1:10: fatal error: iostrema: No such file or directory
    1 | #include <iostrema>
      |          ^~~~~~~~~~
compilation terminated.
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)cour<<a;
           else{cout<<b;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: 'cour' was not declared in this scope
    6 |            else if(b==c)cour<<a;
      |                         ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |     prinf("%d", c);
      |     ^~~~~
      |     printf
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;


int main(){
    int A,B,C,abc;
    cin >> A >>B >> C;
    a=A;
    b=B;
    c=C;
    if(a==b){
        printf("%d\n",c);
    }
    else if(b==c){
        printf("%d\n",a);
    }
    else printf("%d\n",b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'a' was not declared in this scope
    9 |     a=A;
      |     ^
a.cc:10:5: error: 'b' was not declared in this scope
   10 |     b=B;
      |     ^
a.cc:11:5: error: 'c' was not declared in this scope
   11 |     c=C;
      |     ^
Language: C

#include<stdio.h>

int main(){
int i,h,w,j;
scanf("%d%d",&h,&w);
char f[h][m+1];
for(i=0;i<h;i++)scanf("%d",f[i]);
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(f[i][j]=='#')putchar('#');
else {
int tmp=0;
if(i!=0&&f[i-1][j]=='#')tmp++;
if(i!=h-1&&f[i+1][j]=='#')tmp++;
if(j!=0&&f[i][j-1]=='#')tmp++;
if(j!=w-1&&f[i][j+1]=='#')tmp++;
if(i!=0&&j!=0&&f[i-1][j-1]=='#')tmp++;
if(i!=0&&j!=w-1&&f[i-1][j+1]=='#')tmp++;
if(i!=h-1&&j!=0&&f[i+1][j-1]=='#')tmp++;
if(i!=h-1&&j!=w-1&&f[i+1][j+1]=='#')tmp++;
printf("%d",tmp);
}
}
puts("");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'm' undeclared (first use in this function)
    6 | char f[h][m+1];
      |           ^
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

if(a==c) puts("%d",b);
else
if(b==c) puts("%d",a);
else
puts("%d",c);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: too many arguments to function 'puts'
    6 | if(a==c) puts("%d",b);
      |          ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:8:10: error: too many arguments to function 'puts'
    8 | if(b==c) puts("%d",a);
      |          ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:10:1: error: too many arguments to function 'puts'
   10 | puts("%d",c);
      | ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

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

if(a==c) puts("%d",b);
else
if(b==c) puts("%d",a);
else
puts("%d",c) 


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: too many arguments to function 'puts'
    6 | if(a==c) puts("%d",b);
      |          ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:8:10: error: too many arguments to function 'puts'
    8 | if(b==c) puts("%d",a);
      |          ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:10:1: error: too many arguments to function 'puts'
   10 | puts("%d",c)
      | ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:10:13: error: expected ';' before 'return'
   10 | puts("%d",c)
      |             ^
      |             ;
......
   13 | return 0;
      | ~~~~~~
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b)
    ans=c;
  else if(b==c)
    ans=a;
  else
    ans=b;
  printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'ans' was not declared in this scope
    7 |     ans=c;
      |     ^~~
a.cc:9:5: error: 'ans' was not declared in this scope
    9 |     ans=a;
      |     ^~~
a.cc:11:5: error: 'ans' was not declared in this scope
   11 |     ans=b;
      |     ^~~
a.cc:12:17: error: 'ans' was not declared in this scope
   12 |   printf("%d\n",ans);
      |                 ^~~
Language: C++

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

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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if(a==b)cout<<c<<endl;
    else if(a==c)cout<<b<<endl;
    else cout<<a<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected '}' at end of input
   10 |     else cout<<a<<endl;
      |                        ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(void)
{
    int a;
    int b ;
    int c ;
    scanf("%d" "%d" "%d", &a &b &c);

    if(a == b){
        printf("%d\n",c);
    }else if (a == c){
        printf("%d\n",b);
    }else if(b == c){
        printf("%d\n",a);
    }

   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    9 |     scanf("%d" "%d" "%d", &a &b &c);
      |                           ~~ ^~
      |                           |   |
      |                           |   int
      |                           int*
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(a==c)printf("%d\n",b);
  else printf("%d\n"a);
  return 0;
}

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

#include <iostream>
#include <string>

using namespace std;

int main(){
  int h, w;
  cin >> h >> w;

  string board[50];

  for(int i = 0; i < h; i++){
    cin >> board[i];
  }

  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 (int i = 0; i < h; ++i) {
    for (int j = 0; j < w; ++j) {
      if (board[i][j] == ’#’) continue;
      
      int num = 0;
      for (int d = 0; d < 8; ++ d) {
	const int ni = i + dy[d];
	const int nj = j + dx[d];
	
	if (ni < 0 or h <= ni) continue;
	if (nj < 0 or w <= nj) continue;
	if (board[ni][nj] == ’#’) num++;
      }
      
      board[i][j] = char(num + ’0’);
      
    }
  }
  
  for (int i = 0; i < h; ++i) cout << board[i] << endl;
  
  return 0;
}


Compiler output:
a.cc:21:26: error: extended character ’ is not valid in an identifier
   21 |       if (board[i][j] == ’#’) continue;
      |                          ^
a.cc:21:27: error: stray '#' in program
   21 |       if (board[i][j] == ’#’) continue;
      |                           ^
a.cc:21:28: error: extended character ’ is not valid in an identifier
   21 |       if (board[i][j] == ’#’) continue;
      |                            ^
a.cc:30:30: error: extended character ’ is not valid in an identifier
   30 |         if (board[ni][nj] == ’#’) num++;
      |                              ^
a.cc:30:31: error: stray '#' in program
   30 |         if (board[ni][nj] == ’#’) num++;
      |                               ^
a.cc:30:32: error: extended character ’ is not valid in an identifier
   30 |         if (board[ni][nj] == ’#’) num++;
      |                                ^
a.cc:33:32: error: extended character ’ is not valid in an identifier
   33 |       board[i][j] = char(num + ’0’);
      |                                ^
a.cc:33:32: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:26: error: '\U00002019' was not declared in this scope
   21 |       if (board[i][j] == ’#’) continue;
      |                          ^
a.cc:21:27: error: expected ')' before '\U00002019'
   21 |       if (board[i][j] == ’#’) continue;
      |          ~                ^~
      |                           )
a.cc:30:30: error: '\U00002019' was not declared in this scope
   30 |         if (board[ni][nj] == ’#’) num++;
      |                              ^
a.cc:30:31: error: expected ')' before '\U00002019'
   30 |         if (board[ni][nj] == ’#’) num++;
      |            ~                  ^~
      |                               )
a.cc:33:32: error: '\U000020190\U00002019' was not declared in this scope
   33 |       board[i][j] = char(num + ’0’);
      |                                ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
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:7:10: 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:10: note: candidate: 'operator^(int, int)' (built-in)
    7 |   cout<<a^b^c<<endl;
      |   ~~~~~~~^~
a.cc:7:10: 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:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<a^b^c<<endl;
      |             ~^~~~~~