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


import java.util.*;


public class Main {

    public static void main(String[] args) {
	Scanner sc= new Scanner(System.in);
	Scanner sc1=new Scanner(System.in);
	int i=0,j=0,k=0,flag;
	i=sc.nextInt();
	j=sc.nextInt();
	k=sc.nextInt();
	if(i==j && i!=k) {
		System.out.println("Yes");

	}
	else if(j==k && j!=i)
	{
		System.out.println("Yes");

    }
	else if(k==i && k!=j)
	{
		System.out.println("Yes");
	}
	else
		System.out.println("No");
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before ',' token
    4 |   int x,,y,z;
      |         ^
Language: C++

a,b,c=map(int ,input().split())
if(a==b and a==c):
	print("No")
elif(a!=c and a!=b and b!=c):
	print("No")
else:
	print("Yes")

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

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

	if(A==B&&B!=C){
		cout <<"Yes" <<endl;
	}
	else if(B==C&&C!=A){
		cout <<"Yes" <<endl;
	}
	else if(C==A&&A!=B){
		cout <<"Yes" <<endl;
	}
	else{
		cout <<"No" <<endl;{
		
	}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'c' was not declared in this scope
    6 |         cin >>A >>B >>c;
      |                       ^
Language: C++

<?php
// 入力
fscanf(STDIN, "%d %d %d", $A, $B, $C);

$list[$A] = ($list[$A] ?? 0) + 1;
$list[$B] = ($list[$B] ?? 0) + 1;
$list[$C] = ($list[$C] ?? 0) + 1;

if(count($list) == 2) {
	echo "Yes\n";
}
else {
	echo "No\n";
}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:5:1: error: '$list' does not name a type
    5 | $list[$A] = ($list[$A] ?? 0) + 1;
      | ^~~~~
a.cc:6:1: error: '$list' does not name a type
    6 | $list[$B] = ($list[$B] ?? 0) + 1;
      | ^~~~~
a.cc:7:1: error: '$list' does not name a type
    7 | $list[$C] = ($list[$C] ?? 0) + 1;
      | ^~~~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if(count($list) == 2) {
      | ^~
a.cc:12:1: error: expected unqualified-id before 'else'
   12 | else {
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected primary-expression before '||' token
   12 |   if(a == b && a != c)||(b == c && b != a)||(c == a && c != b) cout << "Yes" << endl;
      |                       ^~
Language: C++

#include <bits/stdc++.h>
#define int long long
#define ld long double
#define endl '\n'
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vpii vector<pii>
#define gr vector<vpii>
#define fi first
#define se second
#define sz(x) (int)((x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define YES cout << "YES" << endl
#define NO cout << "NO" << endl
#define GAME_OVER return 0
using namespace std;
signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    int a, b, c;
    cin >> a >> b >> c;
    vi v = {a, b, c};
    sort(all(v));
    if (v[0] == v[1] && v[0] != v[2])
        cout << "Yes" << endl;
    else if (v[1] == v[2] && v[0] != v[1])
        cout << "Yes" << endl;
    else
        cout << 'No' <<< endl;
    GAME_OVER;
}

Compiler output:
a.cc:32:17: warning: multi-character character constant [-Wmultichar]
   32 |         cout << 'No' <<< endl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:32:24: error: expected primary-expression before '<' token
   32 |         cout << 'No' <<< endl;
      |                        ^
Language: C++

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

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

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

#include<bits/stdc++.h>

using namespace std;

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


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

#include<bits/stdc++.h>

using namespace std;

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


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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'else'
   10 |     cout << "Yes" << endl
      |                          ^
      |                          ;
   11 | 
   12 |       else
      |       ~~~~                
a.cc:14:29: error: expected '}' at end of input
   14 |         cout << "No" << endl
      |                             ^
a.cc:9:70: note: to match this '{'
    9 |   if((a == b &&  b != c )|| (a == c && c != b ) ||(b == c && c != a)){
      |                                                                      ^
a.cc:14:29: error: expected '}' at end of input
   14 |         cout << "No" << endl
      |                             ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before '{' token
    7 |     if(A==B && A!=C && B!=C{
      |       ~                    ^
      |                            )
main.c:18:1: error: expected expression before '}' token
   18 | }
      | ^
Language: C++

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


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

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

        if (A == B or B == C or C == A) {

            cout << "Yes" << endl;
            return;
        }


    }
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |             return;
      |             ^~~~~~
Language: C

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

  if(A==B && A==C)
   printf("Yes");
  else if(A==B && B==C)
  printf("No");
  else if(A!=B && A!=C)
  printf("No");
  else
  printf("Yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: warning: missing terminating " character
    5 |    scanf("%d", &A");
      |                  ^
main.c:5:18: error: missing terminating " character
    5 |    scanf("%d", &A");
      |                  ^~~
main.c:5:18: error: expected ')' before 'scanf'
    5 |    scanf("%d", &A");
      |         ~        ^
      |                  )
    6 |    scanf("%d", &B");
      |    ~~~~~          
main.c:6:18: warning: missing terminating " character
    6 |    scanf("%d", &B");
      |                  ^
main.c:6:18: error: missing terminating " character
    6 |    scanf("%d", &B");
      |                  ^~~
main.c:7:18: warning: missing terminating " character
    7 |    scanf("%d", &C");
      |                  ^
main.c:7:18: error: missing terminating " character
    7 |    scanf("%d", &C");
      |                  ^~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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

  if(A==B && A==C)
   printf("Yes");
  else if(A==B && B==C)
  printf("No");
  else if(A!=B && B!=C)
  printf("No");
  else
  printf("Yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: warning: missing terminating " character
    5 |    scanf("%d", &A");
      |                  ^
main.c:5:18: error: missing terminating " character
    5 |    scanf("%d", &A");
      |                  ^~~
main.c:5:18: error: expected ')' before 'scanf'
    5 |    scanf("%d", &A");
      |         ~        ^
      |                  )
    6 |    scanf("%d", &B");
      |    ~~~~~          
main.c:6:18: warning: missing terminating " character
    6 |    scanf("%d", &B");
      |                  ^
main.c:6:18: error: missing terminating " character
    6 |    scanf("%d", &B");
      |                  ^~~
main.c:7:18: warning: missing terminating " character
    7 |    scanf("%d", &C");
      |                  ^
main.c:7:18: error: missing terminating " character
    7 |    scanf("%d", &C");
      |                  ^~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include <stdio.h>

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

    scanf("%d %d %d", &A, &b, &c);

    if(((A == B) && C != A) || ((A == C) && B != A) || ((B == c) && A != B))
        printf("\nYes");
    else
        printf("\nNo");
}


Compiler output:
main.c: In function 'main':
main.c:7:28: error: 'b' undeclared (first use in this function)
    7 |     scanf("%d %d %d", &A, &b, &c);
      |                            ^
main.c:7:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:32: error: 'c' undeclared (first use in this function)
    7 |     scanf("%d %d %d", &A, &b, &c);
      |                                ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:28:13: error: expected ';' before 'return'
   28 | printf("No")
      |             ^
      |             ;
   29 | return 0;
      | ~~~~~~
Language: Java

import java.util.Scanner;

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

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

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

#include<iostream>

using namespace std;

int main(void)
{
  int a,b,c; cin>>a>>b>>c;
  
  if((s[0]==s[1])&&(s[1]!=s[2])){puts("Yes");}
  else if((s[0]==s[2])&&(s[2]!=s[1])){puts("Yes");}
  else if((s[1]==s[2])&&(s[1]!=s[0])){puts("Yes");}
  else{puts("No");}
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 's' was not declared in this scope
    9 |   if((s[0]==s[1])&&(s[1]!=s[2])){puts("Yes");}
      |       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
const int N = 600000;

int n;
string s;
map<string, int> mm;
vector<pair<int, string> > c;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> a >> b >> c;
    if (a == b && a != c)
    {
        cout << "Yes";
    }
    else
    if (a == c && a != b)
    {
        cout << "Yes";
    }
    else
    if (b == c && a != b)
    {
        cout << "Yes";
    }
    else
        cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'a' was not declared in this scope
   15 |     cin >> a >> b >> c;
      |            ^
a.cc:15:17: error: 'b' was not declared in this scope
   15 |     cin >> a >> b >> c;
      |                 ^
Language: C++

#include <stdio.h>

void main(){
  int A,B,C;
  scanf("%d",A);
  scanf("%d",B);
  scanf("%d",C);
  
  bool AB,BC,CA;
  AB=(A==B);
  BC=(B==C);
  CA=(C==A);
  
  if(AB&&BC){
    prinf("No");
    return;
  }
  if(AB||BC){ 
    printf("Yes"); 
    return;}
  if(CA){
    printf("Yes");
  } else{printf("No");}
  return;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:5: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   15 |     prinf("No");
      |     ^~~~~
      |     printf
a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |     return;
      |     ^~~~~~
a.cc:20:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |     return;}
      |     ^~~~~~
a.cc:24:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   24 |   return;
      |   ^~~~~~
Language: Java

import java.util.*;
import java.io.*;
public class Poor {
    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        System.out.println(solve(in));
        
      }
      
      public static String solve(Scanner in) {
        int A= in.nextInt();
        int B = in.nextInt();
        int C= in.nextInt();

        Map<Integer, Integer> checker = new HashMap<>();
        checker.put(A, checker.getOrDefault(A, 0) + 1);
        checker.put(B, checker.getOrDefault(B, 0) + 1);
        checker.put(C, checker.getOrDefault(C, 0) + 1);

        for (int c: checker.keySet()) {
            if (checker.get(c) == 2) return "YES";
        }
        return "NO";
      }
      
    
}

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

import java.util.*;
import java.io.*;
public class A155 {
    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        System.out.println(solve(in));
        
      }
      
      public static String solve(Scanner in) {
        int A= in.nextInt();
        int B = in.nextInt();
        int C= in.nextInt();

        Map<Integer, Integer> checker = new HashMap<>();
        checker.put(A, checker.getOrDefault(A, 0) + 1);
        checker.put(B, checker.getOrDefault(B, 0) + 1);
        checker.put(C, checker.getOrDefault(C, 0) + 1);

        for (int c: checker.keySet()) {
            if (checker.get(c) == 2) return "YES";
        }
        return "NO";
      }
      
    
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A >> B >> C;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, c ;
  cin >> a >> b >> c ;
  if(max({a,b,c})==a+b+c-max({a,b,c})-min({a,b,c}) || min({a,b,c})==a+b+c-max({a,b,c})-min({a,b,c})){
    if(max({a,b,c})!==min({a,b,c})){
      yes() ;
    }
    else{
      no() ;
    }
  }
  else{
    no() ;
  }
  
  
  
  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:59:22: error: expected primary-expression before '=' token
   59 |     if(max({a,b,c})!==min({a,b,c})){
      |                      ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, c ;
  cin >> a >> b >> c ;
  if(max({a,b,c})==a+b+c-max({a,b,c})-min({a,b,c}) || min({a,b,c})==a+b+c-max({a,b,c})-min({a,b,c})){
    if(max({a,b,c})!==min({a,b,c})){
      yes() ;
    }
    else{
      mo() ;
    }
  }
  else{
    no() ;
  }
  
  
  
  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:59:22: error: expected primary-expression before '=' token
   59 |     if(max({a,b,c})!==min({a,b,c})){
      |                      ^
a.cc:63:7: error: 'mo' was not declared in this scope; did you mean 'no'?
   63 |       mo() ;
      |       ^~
      |       no
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before 'if'
    8 |         cout<<"Yes"
      |                    ^
      |                    ;
    9 |         if(a==c)
      |         ~~
Language: C

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

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

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

//Catchharsh
#include<bits/stdc++.h>
#define ll long long int 
#define ld long double
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define F first
#define S second
#define sz(x) x.size()
#define all(x) x.begin(),x.end()
#define pb push_back
#define endl '\n'
#define see(x) cout<<#x<<" = "<<x<<endl
const ll MOD = 1e9+7;
const ll INF = 1011111111;
const ll LLINF = 1000111000111000111LL;
const ld EPS = 1e-10;
const ld PI = 3.14159265358979323;
using namespace std;
ll power (ll base,ll exponent)
{
    ll ans=1;
    //base%=MOD;
    //exponent%=(MOD-1);
    while(exponent!=0)
    {
      if(exponent&1) ans=(1LL*ans*base);
      base=(1LL*base*base);
      exponent>>=1;
    }
    return ans;
}

int32_t main()
{   
     IOS;
    set<ll> s;
    for(ll i=0;i<3;i++)
    {
      ll x;
      cin>>x;
      s.insert(x);
    } 
    if(x.size()==2) cout<<"Yes"<<endl;
    else cout<<"No";
     
     
     cerr <<endl<< "Time elapsed : " << clock() * 1000.0 / CLOCKS_PER_SEC << " ms" << '\n';             
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:43:8: error: 'x' was not declared in this scope
   43 |     if(x.size()==2) cout<<"Yes"<<endl;
      |        ^
Language: C++

//Catchharsh
#include<bits/stdc++.h>
#define ll long long int 
#define ld long double
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define F first
#define S second
#define sz(x) x.size()
#define all(x) x.begin(),x.end()
#define pb push_back
#define endl '\n'
#define see(x) cout<<#x<<" = "<<x<<endl
const ll MOD = 1e9+7;
const ll INF = 1011111111;
const ll LLINF = 1000111000111000111LL;
const ld EPS = 1e-10;
const ld PI = 3.14159265358979323;
using namespace std;
ll power (ll base,ll exponent)
{
    ll ans=1;
    //base%=MOD;
    //exponent%=(MOD-1);
    while(exponent!=0)
    {
      if(exponent&1) ans=(1LL*ans*base);
      base=(1LL*base*base);
      exponent>>=1;
    }
    return ans;
}

int32_t main()
{   
     IOS;
    set<ll> s;
    for(ll i=0;i<3;i++)
    {
      ll x;
      cin>>x;
      s.insert(x);
    } 
    if(x.size()==2) cout<<"Yes"<<Endl;
    else cout<<"No";
     
     
     cerr <<endl<< "Time elapsed : " << clock() * 1000.0 / CLOCKS_PER_SEC << " ms" << '\n';             
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:43:8: error: 'x' was not declared in this scope
   43 |     if(x.size()==2) cout<<"Yes"<<Endl;
      |        ^
a.cc:43:34: error: 'Endl' was not declared in this scope; did you mean 'endl'?
   43 |     if(x.size()==2) cout<<"Yes"<<Endl;
      |                                  ^~~~
      |                                  endl
Language: C++

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

Compiler output:
a.cc:7:9: error: extended character “ is not valid in an identifier
    7 | cout << “Yes”;
      |         ^
a.cc:7:9: error: extended character ” is not valid in an identifier
a.cc:9:9: error: extended character “ is not valid in an identifier
    9 | cout << “No”;}
      |         ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
    7 | cout << “Yes”;
      |         ^~~~~
a.cc:9:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
    9 | cout << “No”;}
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:7:9: error: extended character “ is not valid in an identifier
    7 | cout << “Yes”;}else{
      |         ^
a.cc:7:9: error: extended character ” is not valid in an identifier
a.cc:8:9: error: extended character “ is not valid in an identifier
    8 | cout << “No”}
      |         ^
a.cc:8:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
    7 | cout << “Yes”;}else{
      |         ^~~~~
a.cc:8:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
    8 | cout << “No”}
      |         ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 |     printf("Yes")
      |                  ^
      |                  ;
    9 |   }
      |   ~               
main.c:12:18: error: expected ';' before '}' token
   12 |     printf("Yes")
      |                  ^
      |                  ;
   13 |   }
      |   ~               
main.c:16:18: error: expected ';' before '}' token
   16 |     printf("Yes")
      |                  ^
      |                  ;
   17 |   }
      |   ~               
main.c:20:17: error: expected ';' before '}' token
   20 |     printf("No")
      |                 ^
      |                 ;
   21 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: 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 | using namespace std;
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "No" << endl;
      |       ^~~~
a.cc:8:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |       cout << "No" << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:10:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "No" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |     cout << "No" << endl;
      |                     ^~~~
a.cc:14:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: 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 | using namespace std;
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:7:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "No" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |     cout << "No" << endl;
      |                     ^~~~
a.cc:11:21: 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 || b == c || a == c){
      cout << "Yes";
      
    }
  	else{
    cout << "No"
    }
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before '}' token
   12 |     cout << "No"
      |                 ^
      |                 ;
   13 |     }
      |     ~
Language: C++

A, B, C = map(int, input().split())

if (A == B) & (A != C):
    ans = 'Yes'
elif (B == C) & (B != A):
    ans = 'Yes'
elif (C == A) & (C != B):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     ans = 'Yes'
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     ans = 'Yes'
      |           ^~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     ans = 'Yes'
      |           ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     ans = 'No'
      |           ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = map(int, input().split())
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int A, B, C;
	cin >> A >> B >> C;
	if (A == B && B == C && C == A) {
		cout << "NO";
	}
	else if (A != B && B != C && C != A) {
		cout << "NO";
	}
	else
		cout << "YES";

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected '}' at end of input
   14 |                 cout << "YES";
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>

int main() {
    int n, A, deuRuim = 0;
    scanf("%d", &n);
    int i = 0;
    
    while(i < n) {
        scanf("%d", &A);
        if(A%2 == 0){
            if(A%3 == 0 && A%5 == 0){
                deuRuim = 1;
            }
        }
    ++i
    if (deuRuim){
        printf("DENIED\n");
    } else {
        printf("APPROVED\n");
    }

Compiler output:
main.c: In function 'main':
main.c:15:8: error: expected ';' before 'if'
   15 |     ++i
      |        ^
      |        ;
   16 |     if (deuRuim){
      |     ~~  
main.c:20:5: error: expected declaration or statement at end of input
   20 |     }
      |     ^
main.c:20:5: error: expected declaration or statement at end of input
Language: C++

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

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

// int型の2次元配列(3×4要素の)の宣言
  //vector<vector<int>> data(3, vector<int>(4));

  // 入力 (2重ループを用いる)
  //for (int i = 0; i < 3; i++) {
    //for (int j = 0; j < 4; j++) {
      //cin >> data.at(i).at(j);
    //}
  //}

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

import java.util.Scanner;

public class main{
	public static void main(String[] args) {
		Scanner kb = new Scanner(System.in);
		String kn = "Yes";
		int i = kb.nextInt();
		int j = kb.nextInt();
		int k = kb.nextInt();
		if (i == j && j == k) {
			kn = "No";
		}
		System.out.println(kn);
		kb.close();
	}

}


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

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

Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'No' << endl;
      |             ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << 'Yes' << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << 'Yes' << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << 'Yes' << endl;
      |     ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << 'Yes' << endl;
      |                      ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << 'Yes' << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << 'Yes' << endl;
      |                      ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << 'No' << endl;
      |     ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |     cout << 'No' << endl;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'Yes' <<endl;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'No' << endl;
      |             ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << 'Yes' << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << 'Yes' << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << 'Yes' <<endl;
      |     ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |     cout << 'Yes' <<endl;
      |                     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << 'Yes' << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << 'Yes' << endl;
      |                      ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << 'No' << endl;
      |     ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |     cout << 'No' << endl;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes" <<endl;
      |     ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |     cout << "Yes" <<endl;
      |                     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "No" <<endl;
      |     ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |     cout << "No" <<endl;
      |                    ^~~~
Language: C++


#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before ':' token
   12 |         cout << "Yes" << endl:
      |                              ^
      |                              ;
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

class Progaram
{
    static void Main(string[] args)
    {
        var line = Console.ReadLine().Split(' ');
        var a = int.Parse(line[0]);
        var b = int.Parse(line[1]);
        var c = int.Parse(line[2]);

        if ((a == b || a == c || b == c) && (a != b || a != c || b != c)) Console.WriteLine("Yes");
        else Console.WriteLine("No");
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:7:22: error: 'string' has not been declared
    7 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:7:31: error: expected ',' or '...' before 'args'
    7 |     static void Main(string[] args)
      |                               ^~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Progaram::Main(int*)':
a.cc:9:9: error: 'var' was not declared in this scope
    9 |         var line = Console.ReadLine().Split(' ');
      |         ^~~
a.cc:10:13: error: expected ';' before 'a'
   10 |         var a = int.Parse(line[0]);
      |             ^
a.cc:11:13: error: expected ';' before 'b'
   11 |         var b = int.Parse(line[1]);
      |             ^
a.cc:12:13: error: expected ';' before 'c'
   12 |         var c = int.Parse(line[2]);
      |             ^
a.cc:14:14: error: 'a' was not declared in this scope
   14 |         if ((a == b || a == c || b == c) && (a != b || a != c || b != c)) Console.WriteLine("Yes");
      |              ^
a.cc:14:19: error: 'b' was not declared in this scope
   14 |         if ((a == b || a == c || b == c) && (a != b || a != c || b != c)) Console.WriteLine("Yes");
      |                   ^
a.cc:14:29: error: 'c' was not declared in this scope
   14 |         if ((a == b || a == c || b == c) && (a != b || a != c || b != c)) Console.WriteLine("Yes");
      |                             ^
a.cc:14:75: error: 'Console' was not declared in this scope
   14 |         if ((a == b || a == c || b == c) && (a != b || a != c || b != c)) Console.WriteLine("Yes");
      |                                                                           ^~~~~~~
a.cc:15:14: error: 'Console' was not declared in this scope
   15 |         else Console.WriteLine("No");
      |              ^~~~~~~
Language: C++

#include <iostream>
#include <map>
#include <vector>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
#include <climits>
#include <stack>
#include <queue>
#include <set>
#include <cctype>
#include <bitset>
#include <type_traits>

#include <list>
using namespace std;

#define REP(i, n) for (int i = 0; i < (n); ++i)
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define YES(j) cout << (j ? "YES" : "NO") << endl;
#define Yes(j) std::cout << (j ? "Yes" : "No") << endl;
#define yes(j) std::cout << (j ? "yes" : "no") << endl;

int main(void)
{
    int a[3];
    REP(i, 3)
    {
        cin >> a[i];
    }
    sort(a, a + 3);
    if (a[0] == a[1] % % a[0] != a[2])
    {
        Yes(1);
    }
    else if (a[0] != a[2] && a[1] == a[2])
    {
        Yes(1);
    }
    else
    {
        Yes(0);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:24: error: expected primary-expression before '%' token
   33 |     if (a[0] == a[1] % % a[0] != a[2])
      |                        ^
Language: C++

#include <bits/stdc++.h>
int main() {
  int A, B, C;
  bool pity;
  cin >> A; cin >> B; cin >> C;
  if ((A == B) && (B == C)) {
   pity = false; 
  }
  else if ((A != B) && (B != C) (&& C != A)) {
    pity = false;
  }
  else {
    pity = true;
  }
  if (pity == true) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << 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; cin >> B; cin >> C;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if ((A != B) && (B != C) (&& C != A)) {
      |                                  ~~~~~^~~~
a.cc:9:33: error: expression cannot be used as a function
    9 |   else if ((A != B) && (B != C) (&& C != A)) {
      |                        ~~~~~~~~~^~~~~~~~~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:37: error: label 'C' used but not defined
    9 |   else if ((A != B) && (B != C) (&& C != A)) {
      |                                     ^
Language: C++

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

int main(){
    int N;
    cin>>N;
    map<string, int> data;
    for(int i=0;i<N;i++){
        string s;
        cin>>s;
        data[s]+=1;
    }
    int datamax=0;
    for(auto d;data){
        datamax=max(datamax,d.second);   
    }
    vector<string> ans;
    for(auto d;data){
        if (d.second == datamax) {
            ans.push_back(d.first);
    }
  }
  
  sort(ans.begin(), ans.end());
  
  for (auto a : ans) {
    cout << a << endl;
  }
  
  return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: declaration of 'auto d' has no initializer
   18 |     for(auto d;data){
      |         ^~~~
a.cc:18:16: error: could not convert 'data' from 'std::map<std::__cxx11::basic_string<char>, int>' to 'bool'
   18 |     for(auto d;data){
      |                ^~~~
      |                |
      |                std::map<std::__cxx11::basic_string<char>, int>
a.cc:18:20: error: expected ';' before ')' token
   18 |     for(auto d;data){
      |                    ^
      |                    ;
a.cc:22:9: error: declaration of 'auto d' has no initializer
   22 |     for(auto d;data){
      |         ^~~~
a.cc:22:16: error: could not convert 'data' from 'std::map<std::__cxx11::basic_string<char>, int>' to 'bool'
   22 |     for(auto d;data){
      |                ^~~~
      |                |
      |                std::map<std::__cxx11::basic_string<char>, int>
a.cc:22:20: error: expected ';' before ')' token
   22 |     for(auto d;data){
      |                    ^
      |                    ;
a.cc: At global scope:
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^