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

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Set<Integer> set = new Hashset<>();
      
      	for(int i = 0 ; i < 3 ; i++){
      		set.add(sc.nextInt());
        }

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        Set<Integer> set = new Hashset<>();
                               ^
  symbol:   class Hashset
  location: class Main
1 error
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 == c && a != b){
    printf("yes");
  }
  else if(b == c && b != a){
    printf("yes");
  }
  else{
    print("no");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: stray '\343' in program
   10 |   if(a == b<U+3000>&& a!=c){
      |            ^~~~~~~~
main.c:20:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |     print("no");
      |     ^~~~~
      |     printf
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C++

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

int main(){

cin>>A;
cin>>B;
cin>>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: In function 'int main()':
a.cc:6:6: error: 'A' was not declared in this scope
    6 | cin>>A;
      |      ^
a.cc:7:6: error: 'B' was not declared in this scope
    7 | cin>>B;
      |      ^
a.cc:8:6: error: 'C' was not declared in this scope
    8 | cin>>C;
      |      ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C++

  1 #include <iostream>
  2
  3 int main() {
  4   int a, b, c;
  5   std::cin >> a >> b >> c;
  6   if(((a == b) && (a != c)) ||
  7     ((a == c) && (a != b)) ||
  8     ((b == c) && (b != a)))
  9     std::cout << "Yes";
 10   else
 11     std::cout << "No";
 12   return 0;
 13 }
~
~
~
~
~

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 |   1 #include <iostream>
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include <iostream>
      |   ^
a.cc:15:1: error: expected class-name before '~' token
   15 | ~
      | ^
Language: C++

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

cin>>A;
cin>>B;
cin>>C;

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

cin>>A;
cin>>B;
cin>>C;

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


}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if(A=B&&A!=C){cout<<"Yes"<<endl;}
      | ^~
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>A;
      | ^~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>B;
      | ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>C;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(A=C&&A!=B){cout<<"Yes"<<endl;}
      | ^~
a.cc:9:1: error: 'cin' does not name a type
    9 | cin>>A;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>B;
      | ^~~
a.cc:11:1: error: 'cin' does not name a type
   11 | cin>>C;
      | ^~~
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(B=C&&A!=B){cout<<"Yes"<<endl;}
      | ^~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else{cout<<"No"<<endl;}
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

int main(){

cin>>A;
cin>>B;
cin>>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: In function 'int main()':
a.cc:6:6: error: 'A' was not declared in this scope
    6 | cin>>A;
      |      ^
a.cc:7:6: error: 'B' was not declared in this scope
    7 | cin>>B;
      |      ^
a.cc:8:6: error: 'C' was not declared in this scope
    8 | cin>>C;
      |      ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  string ans = "yes"
  if (a == b && a != c) ans = "yes";
  if (a == c && a != b) ans = "yes";
  if (b == c && b != a) ans = "yes";
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if (a == b && a != c) ans = "yes";
      |   ^~
Language: C++

using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  string ans = "yes"
  if (a == b && a != c) ans = "yes";
  if (a == c && a != b) ans = "yes";
  if (b == c && b != a) ans = "yes";
  cout << ans << endl;
  return 0;
}

Compiler output:
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 | using namespace std;
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string ans = "yes"
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:8:25: error: 'ans' was not declared in this scope
    8 |   if (a == c && a != b) ans = "yes";
      |                         ^~~
a.cc:9:25: error: 'ans' was not declared in this scope
    9 |   if (b == c && b != a) ans = "yes";
      |                         ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << ans << endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:11: error: 'ans' was not declared in this scope
   10 |   cout << ans << endl;
      |           ^~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:25: error: 'd' undeclared (first use in this function)
    5 |   if(a==b || b==c || c==d)
      |                         ^
main.c:5:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:18: error: expected ';' before 'else'
    6 |     printf("Yes")
      |                  ^
      |                  ;
    7 |    else
      |    ~~~~
Language: C++

int main(){
	int A1, A2, A3;
	cin >> A1 >> A2 >> A3;
	
	if (A1=A2&&A1!=A3 ) {
		cout << "Yes\n";
	}
	else if (A1 = A3 && A1 != A2) {
		cout << "Yes\n";
	}
	else if (A2 = A3 && A1 != A2) {
		cout << "Yes\n";
	}
	else {
		cout << "No\n";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> A1 >> A2 >> A3;
      |         ^~~
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout << "Yes\n";
      |                 ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "Yes\n";
      |                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "Yes\n";
      |                 ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "No\n";
      |                 ^~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  
  if (a == b && a != c)
    printf("%s", "Yes");
  else if (a == c && a != b)
    printf("%s", "Yes");
  else if (b == c && b != a)
    printf("%s", "Yes");
  else
    printf("%s", "No");

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected declaration or statement at end of input
   15 |     printf("%s", "No");
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int num[3];
  	cin >> num[0] >> num[1] >> num[2];
  	
  	for(int i=0; i<2; i++){
      for(int j=i+1; j<3; j++){
        if(num[i]<num[j]){
          tmp=num[i];
          num[i]=num[j];
          num[j]=tmp;
        }
      }
    }
  
  if(num[0]==num[1]){
    if(num[1]!=num[2]){
      cout << "Yes\n";
    }else{
      cout << "No\n";
    }
  }
  if(num[1]==num[2]){
      if(num[0]!=num[1]){
        cout << "Yes\n";
      }else{
        cout << "No\n";
      }
  }
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   11 |           tmp=num[i];
      |           ^~~
      |           tm
Language: C++

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

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

public class tes {
  
	public static void main(String[] arg) {
		pool(3, 3, 3);
	}

	public static void pool(int A, int B, int C) {
		String result;
		if (A == B && A != C || A == C && A != B || B == C && A != B) {
			result = "かわいそう";
		} else {
			result = "";
		}
		if (result == "かわいそう") {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}

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

//*******Abhijit Burman***********//
//Jalpaiguri Government Engineering College//

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mk make_pair
#define MAXX (1000000000000000000+7)
#define fio ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)

void solve()
{
	ll a,b,c;
	cin>>a>>b>>c;

	if(a==b && a!=c)
	{
		flag=1;
	}
	else if(a==c && b!=a)
	{
		flag=1;
	}
	else if(b == c && c!=a)
	{
		flag=1;
	}
	cout<<(flag == 1? "YES" : "NO")<<endl;
	//cout<<a<<" "<<b<<" "<<c<<endl;
}

int main()
{
	/*#ifndef ONLINE_JUDGE
    // for getting input from input.txt
    freopen("input.txt", "r", stdin);
    // for writing output to output.txt
    freopen("output.txt", "w", stdout);
	#endif*/

    //main code starts here//
    fio;
    ll t=1;
    //cin>>t;
    while(t--)
    {
    	solve();
    }


    //code ends///
    /*#ifndef ONLINE_JUDGE
    cout<<"\nTime Elapsed: " << 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
	#endif*/
	return 0;

		
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:17: error: 'flag' was not declared in this scope
   19 |                 flag=1;
      |                 ^~~~
a.cc:23:17: error: 'flag' was not declared in this scope
   23 |                 flag=1;
      |                 ^~~~
a.cc:27:17: error: 'flag' was not declared in this scope
   27 |                 flag=1;
      |                 ^~~~
a.cc:29:16: error: 'flag' was not declared in this scope
   29 |         cout<<(flag == 1? "YES" : "NO")<<endl;
      |                ^~~~
Language: Java

import java.util.Scanner;import java.util.Arrays;
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];
	a[0] = scanner.nextInt();
	a[1] = scanner.nextInt();
	a[2] = scanner.nextInt();
	Arrays.sort(a);
	int sum=0;
	for (int i=1;i<3;i++) {
		if (a[i]==a[i-1]) sum++;
	}
	if (sum==1) System.out.println("YES");
	else System.out.println("NO");
	}

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

import java.util.Scanner;import java.util.Arrays;
public class tamrini {
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];
	a[0] = scanner.nextInt();
	a[1] = scanner.nextInt();
	a[2] = scanner.nextInt();
	Arrays.sort(a);
	int sum=0;
	for (int i=1;i<3;i++) {
		if (a[i]==a[i-1]) sum++;
	}
	if (sum==1) System.out.println("YES");
	else System.out.println("NO");
	scanner.close(); }}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '==' token
    7 |   int N==0;
      |        ^~
a.cc:9:5: error: 'N' was not declared in this scope
    9 |     N++;
      |     ^
a.cc:11:5: error: 'N' was not declared in this scope
   11 |     N++;
      |     ^
a.cc:13:5: error: 'N' was not declared in this scope
   13 |     N++;
      |     ^
a.cc:15:6: error: 'N' was not declared in this scope
   15 |   if(N==1)
      |      ^
Language: C++

//--------Anivia_kid---------//
//-------did you test n = 1 ?-------//
#include<bits/stdc++.h>
 
using namespace std;
 
#define fi first
#define se second
#define pb push_back

typedef long long ll; 
const int MOD = 1e9 + 7;
const int MAXN = 1e5 + 100;

void Anivia_kid(){
	vector<int> v(3);
	for(int i = 0; i < 3; i++)
		cin>>v[i];
	sort(v.begin(), v.end());
	if((v[0] == v[1] && v[1] != v[2]) || (v[1] == v[2] && v[0] != v1)) cout<<"Yes\n";
	else cout<<"No\n";

	return;
}
 
int main()
{
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int q = 1;
	//cin>>q;
	while(q--){
		Anivia_kid();
	}
}


Compiler output:
a.cc: In function 'void Anivia_kid()':
a.cc:20:71: error: 'v1' was not declared in this scope; did you mean '__pstl::execution::v1'?
   20 |         if((v[0] == v[1] && v[1] != v[2]) || (v[1] == v[2] && v[0] != v1)) cout<<"Yes\n";
      |                                                                       ^~
      |                                                                       __pstl::execution::v1
In file included from /usr/include/c++/14/pstl/glue_algorithm_defs.h:15,
                 from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:3:
/usr/include/c++/14/pstl/execution_defs.h:19:18: note: '__pstl::execution::v1' declared here
   19 | inline namespace v1
      |                  ^~
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&&b!=c)||(c==b&&b!=a)){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before ')' token
    6 |   if((a==b&&b!=c|)|(a==c&&b!=c)||(c==b&&b!=a)){
      |                  ^
Language: C

#include <stdio.h>

int main()
{
	int a, b, c;
	scanf_s("%d\n", &a, &b, &c);
	if (a == b & b  == c) printf("No");
	else if (a == b) printf("Yes");
	else if (a == c) printf("Yes");
	else if (b == c) printf("Yes");
	else printf("No");
}

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\n", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main()
{
	int a, b, c;
	scanf_s("%d\n", &a, &b, &c);
	if (a == b == c) printf("No");
	else if (a == b) printf("Yes");
	else if (a == c) printf("Yes");
	else if (b == c) printf("Yes");
	else printf("No");
}

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\n", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: Java

    import java.util.*;
         
        public class Main{
          
         public static void main(String[] args){  
         
         Scanner sc = new Scanner(System.in);
           
           int A = sc.nextInt();
           int B = sc.nextInt();
           int C = sc.nextInt();
           
           if(A==B==C){
             
            System.out.print("No");
           }else if(A!=B!=C){
             System.out.print("No");
           }else {
           System.out.print("Yes");
           }
         }
         }

    import java.util.*;
     
    public class Main{
      
     public static void main(String[] args){  
     
     Scanner sc = new Scanner(System.in);
       
       int A = sc.nextInt();
       int B = sc.nextInt();
       int C = sc.nextInt();
       
       if(A==B&&B==C){
         
        System.out.print("No");
       }else if(A!=B!&&B!=C){
         System.out.print("No");
       }else {
       System.out.print("Yes");
       }
     }
     }



Compiler output:
Main.java:24: error: class, interface, enum, or record expected
    import java.util.*;
    ^
Main.java:39: error: ')' expected
       }else if(A!=B!&&B!=C){
                    ^
Main.java:39: error: illegal start of expression
       }else if(A!=B!&&B!=C){
                     ^
Main.java:39: error: ';' expected
       }else if(A!=B!&&B!=C){
                           ^
Main.java:41: error: 'else' without 'if'
       }else {
        ^
5 errors
Language: Java

    import java.util.*;
     
    public class Main{
      
     public static void main(String[] args){  
     
     Scanner sc = new Scanner(System.in);
       
       int A = sc.nextInt();
       int B = sc.nextInt();
       int C = sc.nextInt();
       
       if(A==B==C){
         
        System.out.print("No");
       }else if(A!=B!=C){
         System.out.print("No");
       }else {
       System.out.print("Yes");
       }
     }
     }

Compiler output:
Main.java:13: error: incomparable types: boolean and int
       if(A==B==C){
              ^
Main.java:16: error: incomparable types: boolean and int
       }else if(A!=B!=C){
                    ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
int A,B,C,;
  cin>>A,B,C;
  if(A==B!=C||A==C!=B||B==C!=A)
  {
    cout<<"yes"<<endl;
  }
  else{
  cout<<"no"<<endl;
  }
}

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

import java.util.*;

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


Compiler output:
Main.java:7: error: cannot find symbol
 Scanner sc = new Scanner(System.In);
                                ^
  symbol:   variable In
  location: class System
Main.java:13: error: bad operand types for binary operator '&&'
   if(a=b&&b=c){
         ^
  first type:  int
  second type: int
Main.java:13: error: incompatible types: int cannot be converted to boolean
   if(a=b&&b=c){
       ^
3 errors
Language: C++

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

int main(){
  vector<int> abc(3);
  for(int i=0;i<3,i++){
    cin >> abc.at(i);
  }
  sort(abc.begin(), abc.end());
  if(abc.at(0)==abc.at(1) && abc.at(1) < abc.at(2)){
    cout << "Yes" << endl;
  }else if(abc.at(0) < abc.at(1) && abc.at(1)==abc.at(2)){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before ')' token
    6 |   for(int i=0;i<3,i++){
      |                      ^
      |                      ;
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
      System.out.println("No");
    else System.out.println("Yes");
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
                                           ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
                                                ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
                                                    ^
  symbol:   variable c
  location: class Main
Main.java:8: error: cannot find symbol
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
                                                         ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
    if((A == B && A == C && B ==C) || (A !=b && a !=c && b !=c))
                                                             ^
  symbol:   variable c
  location: class Main
5 errors
Language: C++

#include<iostream>
using namespace std;

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


return 0;
}#include<iostream>
using namespace std;

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


return 0;
}

Compiler output:
a.cc:26:2: error: stray '#' in program
   26 | }#include<iostream>
      |  ^
a.cc:26:3: error: 'include' does not name a type
   26 | }#include<iostream>
      |   ^~~~~~~
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define sz(x) (int) ((x).size())

int main() {
	set<int> st;
	for (int i = 0; i <3 ; i++)
		int x, cin>>x, st.insert(x);
	puts(st.size() == 2 ? "Yes" : "No");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected initializer before '>>' token
   11 |                 int x, cin>>x, st.insert(x);
      |                           ^~
Language: C++

v#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define pb push_back
#define ll long long
#define pi pair<int,int>
#define pii pair<pi,int>
#define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
int a[5];
int main()
{
    go;
    cin>>a[0]>>a[1]>>a[2];
    sort(a,a+3);
    if(a[0]==a[1]&&a[0]!=a[2])
        cout<<"YES";
    else if(a[1]==a[2]&&a[1]!=a[0])
        cout<<"YES";
    else
        cout<<"NO";
    return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:9:12: error: 'ios' has not been declared
    9 | #define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
      |            ^~~
a.cc:13:5: note: in expansion of macro 'go'
   13 |     go;
      |     ^~
a.cc:9:37: error: 'cin' was not declared in this scope
    9 | #define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
      |                                     ^~~
a.cc:13:5: note: in expansion of macro 'go'
   13 |     go;
      |     ^~
a.cc:9:49: error: 'cout' was not declared in this scope
    9 | #define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
      |                                                 ^~~~
a.cc:13:5: note: in expansion of macro 'go'
   13 |     go;
      |     ^~
a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |     sort(a,a+3);
      |     ^~~~
      |     short
Language: Java

class A {

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

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


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

    }

}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class A
2 errors
Language: Java

package learnJava.atcoder.Beg155;

import java.util.Scanner;

public class A {

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

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


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

    }

}


Compiler output:
Main.java:5: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
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("No")
        else if(a==b || b==c || c==a)
        printf("Yes")
        else 
        ;printf("No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'else'
    7 |         printf("No")
      |                     ^
      |                     ;
    8 |         else if(a==b || b==c || c==a)
      |         ~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c,flag=0;
  cin>>a>>b>>c;
  
  if(a==b && b==c)
    flag=1;
  
  if((a==b || b==c ||c==a)&& flag==0)
    print("Yes");
  else
    print("No");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'print' was not declared in this scope; did you mean 'printf'?
   12 |     print("Yes");
      |     ^~~~~
      |     printf
a.cc:14:5: error: 'print' was not declared in this scope; did you mean 'printf'?
   14 |     print("No");
      |     ^~~~~
      |     printf
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <string>
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define f first
#define s second
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define pb push_back
#define eb emplace_back
#define in insert
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define FOR(i, n, x) for(int i = x; i < n; i++)
#define OUT(a, e) FOR(i, e, 0) cout << a[i] << ' '
#define OUTV(a) for(auto e : a) cout << e << ' ';
#define maxim(a, n, mx) FOR(i, n, x)mx = max(mx, a[i]);


using namespace std;

const int N = 26;
vector<int> a[26];

int main()
{
    set<int> now;
    FOR(i, 3, 0)
    {
        int x; cin >> x;
        a.insert(x);
    }
    if(x.size() == 2)cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:11: error: request for member 'insert' in 'a', which is of non-class type 'std::vector<int> [26]'
   35 |         a.insert(x);
      |           ^~~~~~
a.cc:37:8: error: 'x' was not declared in this scope
   37 |     if(x.size() == 2)cout << "Yes" << endl;
      |        ^
Language: C++

#include<stdio.h>
int main(){
int member[3];
  scanf("%d%d%d",&member[0],&member[1],&member[2]);
  int or=(member[0]==member[1]||member[1]==member[2]||member[0]==member[2])?1:0;
  int and=(member[0]==member[1]&&member[1]==member[2]&&member[0]==member[2])?1:0;
  if(or && !and){printf("Yes\n");}
  else{printf("No\n");}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before 'or' token
    5 |   int or=(member[0]==member[1]||member[1]==member[2]||member[0]==member[2])?1:0;
      |       ^~
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |   int and=(member[0]==member[1]&&member[1]==member[2]&&member[0]==member[2])?1:0;
      |          ^
a.cc:7:6: error: expected primary-expression before 'or' token
    7 |   if(or && !and){printf("Yes\n");}
      |      ^~
a.cc:7:12: error: expected identifier before '!' token
    7 |   if(or && !and){printf("Yes\n");}
      |            ^
a.cc:7:11: error: expected ')' before '!' token
    7 |   if(or && !and){printf("Yes\n");}
      |     ~     ^~
      |           )
Language: C++

#include<stadio.h>
int main(){
int member[3];
  scanf("%d%d%d",&member[0],&member[1],&member[2]);
  int or=(member[0]==member[1]||member[1]==member[2]||member[0]==member[2])?1:0;
  int and=(member[0]==member[1]&&member[1]==member[2]&&member[0]==member[2])?1:0;
  if(or && !and){printf("Yes\n");}
  else{printf("No\n");}
}

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

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Poor {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

}


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

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

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

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

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

	if (a == b == c) {
		cout << "No";
	}
	else if (a != b && a != c && b==c) {
		cout << "Yes";
	}
	else if (b != a && b != c && a==c) {
		cout << "Yes";
	}
	else if (c != a && c != b && a==b) {
		cout << "Yes";
	}

	else {
		cout << "No";
	}
}

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

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

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

        if(a == b && b == c) cout << "No" << endl;
        else                 cout << "Yes" << endl;

        return 0;
}   

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main(){
  int A,B,C;
  cin >> A;
  cin >> B;
  cin >> C;
  int s=0;
  if( A == B ) s++; 
  if( A == C ) s++;
  if( B == C ) s++;
  if( sum == 1 ){
  cout << "Yes" << endl;
  }
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'sum' was not declared in this scope
   13 |   if( sum == 1 ){
      |       ^~~
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:62: error: 'Yes' was not declared in this scope
    8 |   if((a==b && a!=c)||(a==c && a!=b)||(b==c) && b!=a) cout << Yes << endl;
      |                                                              ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:58: error: expected expression before ')' token
    5 |               if((a==b&&b!=c)||(b==c&&a!=b)||(c==a&&b!=c&)){
      |                                                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:54: error: expected expression before ')' token
    5 |           if((a==b&&b!=c)||(b==c&&a!=b)||(c==a&&b!=c&)){
      |                                                      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:50: error: expected expression before ')' token
    5 |       if((a==b&&b!=c)||(b==c&&a!=b)||(c==a&&b!=c&){
      |                                                  ^
main.c:12:7: error: expected expression before '}' token
   12 |       }
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'eles' undeclared (first use in this function)
    7 | printf("No");}eles{printf("Yes");}
      |               ^~~~
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:19: error: expected ';' before '{' token
    7 | printf("No");}eles{printf("Yes");}
      |                   ^
      |                   ;
Language: C

    #include<stdio.h>
    int main()
    {
        int a,b,c;
        scanf("%d %d %d", &a, &b, &c);
if(a=b){printf("Yes");
}
      else{if(b=c){printf("Yes");}
              else{printf("No");}
      }
        scanf("%s",s);
        // 出力
        printf("%d %s\n",a+b+c,s);
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:11:20: error: 's' undeclared (first use in this function)
   11 |         scanf("%s",s);
      |                    ^
main.c:11:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

//#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
 int rem,n,i=0;
  cin>>n;
  while(n!=0)
  {
   rem =n%10;
    n=n/10;
    if(i==0)
    {
      int a=rem;
      i++;
    }
    else
    { 
      if(i==1)
      { int b=rem;
        i++;
      }
      else
        int c=rem;
    }
  }
  //int a,b,c;
  //cin>>a>>b>>c;
  if(a==b==c || a!=b!=c)
    cout<<"no";
  else
    cout<<"yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:6: error: 'a' was not declared in this scope
   29 |   if(a==b==c || a!=b!=c)
      |      ^
a.cc:29:9: error: 'b' was not declared in this scope
   29 |   if(a==b==c || a!=b!=c)
      |         ^
a.cc:29:12: error: 'c' was not declared in this scope
   29 |   if(a==b==c || a!=b!=c)
      |            ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
int main()
{
 /*int rem,n,i=0;
  cin>>n;
  while(n!=0)
  {
   rem =n%10;
    n=n/10;
    if(i==0)
    {
      int a=rem;
      i++;
    }
    else
    { 
      if(i==1)
      { int b=rem;
        i++;
      }
      else
        int c=rem;
    }
  }*/
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b==c || a!=b!=c)
    cout<<"no";
  else
    cout<<"yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   27 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:29:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |     cout<<"no";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

//#include <iostream>
#include <bits/stdc++.h>
int main()
{
 int rem,n,i=0;
  cin>>n;
  while(n!=0)
  {
   rem =n%10;
    n=n/10;
    if(i==0)
    {
      int a=rem;
      i++;
    }
    else
    { 
      if(i==1)
      { int b=rem;
        i++;
      }
      else
        int c=rem;
    }
  }
  if(a==b==c || a!=b!=c)
    cout<<"no";
  else
    cout<<"yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:6: error: 'a' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |      ^
a.cc:26:9: error: 'b' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |         ^
a.cc:26:12: error: 'c' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |            ^
a.cc:27:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |     cout<<"no";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:29:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

typedef long long ll;
const int N=2e5+5;
map<string,int>vis;
int n;
string s[N];
int main()
{
    scanf("%d",&n);
    i[s[i]]);
    }
    sort(s+1,s+1+n);
    for(int i=1;i<=n;i++)
        if(vis[s[i]]==mx)
    {
        cout<<s[i]<<endl;
        vis[s[i]]=0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'i' was not declared in this scope
   12 |     i[s[i]]);
      |     ^
a.cc: At global scope:
a.cc:14:9: error: expected constructor, destructor, or type conversion before '(' token
   14 |     sort(s+1,s+1+n);
      |         ^
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for(int i=1;i<=n;i++)
      |     ^~~
a.cc:15:17: error: 'i' does not name a type
   15 |     for(int i=1;i<=n;i++)
      |                 ^
a.cc:15:22: error: 'i' does not name a type
   15 |     for(int i=1;i<=n;i++)
      |                      ^
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
int main()
{
 int rem,n,i=0;
  cin>>n;
  while(n!=0)
  {
   rem =n%10;
    n=n/10;
    if(i==0)
    {
      int a=rem;
      i++;
    }
    else
    { 
      if(i==1)
      { int b=rem;
        i++;
      }
      else
        int c=rem;
    }
  }
  if(a==b==c || a!=b!=c)
    cout<<"no";
  else
    cout<<"yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:6: error: 'a' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |      ^
a.cc:26:9: error: 'b' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |         ^
a.cc:26:12: error: 'c' was not declared in this scope
   26 |   if(a==b==c || a!=b!=c)
      |            ^
a.cc:27:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |     cout<<"no";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:29:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

typedef long long ll;
const int N=2e5+5;
map<string,int>vis;
int n;
string s[N];
int main()
{
    scanf("%d",&n);
    int mx=0;
    for(int i=1;i<=n;i++)
    {
        cin>>s[i];vis[s[i]]++;

    {
        cout<<s[i]<<endl;
        vis[s[i]]=0;
    }
}

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

#include <iostream>
#include <bits/stdc++.h>
int main()
{
 int rem,n,i=0;
  cin>>n;
  while(n!=0)
  {
   rem =n%10;
    n=n/10;
    if(i==0)
    {int a=rem;
      	i++;}
    else
      if(i==1)
      {int b=rem;
       i++;}
    	else
          int c=rem;
  }
  if(a==b==c || a!=b!=c)
    cout<<"no";
  else
    cout<<"yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:21:6: error: 'a' was not declared in this scope
   21 |   if(a==b==c || a!=b!=c)
      |      ^
a.cc:21:9: error: 'b' was not declared in this scope
   21 |   if(a==b==c || a!=b!=c)
      |         ^
a.cc:21:12: error: 'c' was not declared in this scope
   21 |   if(a==b==c || a!=b!=c)
      |            ^
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout<<"no";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:24:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    7 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:7:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    7 |   sort(a.begin(), a.end());
      |                     ^~~
Language: C

#include<stdio.h>
int main(){
	int a,b,c;
	scanf("%d",a),scanf("%d",b),scanf("%d",c);
 	if((a==b==c)&&(a!=b!=c)){
    	print("no");
    }else{
    	print("yes");
    }
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |         print("no");
      |         ^~~~~
      |         printf
Language: C++


        cout<<s[t n; scanf("%d", &n); int ans = 0;
    for(int i = 1; i <= n; i ++) {
        cin >> s[i];
   endl;
        #include<or(int i=1;i<=n;i++)
        if(vis[s[i]]==mx)
    {bits/stdc++.h>
using namespace std;
h>
usi
    sort(s+1,s+1+n);
    f     ans = max(ans, ++ Map[s[i]]);
    }
    for(int i = 1; i <= n; i ++) {
        if(Map[s[i]] == ans) {
            Map[s[i]] = 0;
            vec.pb(s[i]);
        }
    }
    sort(vec2e5+5;.begin(), vec.end());
    fo0;
} 
typedef long long ll;
const int N=
map<string,int>vis; : vec) printf("%s\n", s.c_str());
    return  n;
string s[N];
int main()
{
    scanf("%d",&n);
    int
intr(auto s mx=0;
    for(int i=1;i<=n;i++)
    {
        cinvis[s[i]]=0;
    }
}
#ng na
vector<string>>>s[i];vis[s[i]]++;
        mx=max(mx,vis[s[i]]);
    }i]<< vec;
map<string, int> Map;
int main() {
    imespace std;

string s[200010];ninclude <bits/stdc++.

Compiler output:
a.cc:6:38: error: missing terminating > character
    6 |         #include<or(int i=1;i<=n;i++)
      |                                      ^
a.cc:6:17: fatal error: or(int i=1;i<=n;i++): No such file or directory
    6 |         #include<or(int i=1;i<=n;i++)
      |                 ^
compilation terminated.
Language: C++


       

string s[200010];ninclude <bits/stdc++.

Compiler output:
a.cc:4:1: error: 'string' does not name a type
    4 | string s[200010];ninclude <bits/stdc++.
      | ^~~~~~
a.cc:4:18: error: 'ninclude' does not name a type
    4 | string s[200010];ninclude <bits/stdc++.
      |                  ^~~~~~~~