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

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

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

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




Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int A,B,C;
      | ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>A>>B>>C;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(A=B){
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else{
      | ^~~~
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(A=C){
      | ^~
a.cc:16:1: error: expected unqualified-id before 'else'
   16 | else{
      | ^~~~
a.cc:18:1: error: expected unqualified-id before 'if'
   18 | if(B=C){
      | ^~
a.cc:22:1: error: expected unqualified-id before 'else'
   22 | else{
      | ^~~~
a.cc:24:1: error: expected unqualified-id before 'return'
   24 | return 0;}
      | ^~~~~~
a.cc:24:10: error: expected declaration before '}' token
   24 | return 0;}
      |          ^
Language: C++

#include<iostream.h>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter three numbers:";
cin>>a;
cin>>b;
cin>>c;
if(a==b&&a==c)
cout<<"No";
else if(a!=b&&a!=c)
cout<<"No";
else
cout<<"Yes";
return 0;
}

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

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("All numbers are equal");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("All numbers are different");
        }
    }
}


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

#include<iostream>
using namespace std;
int main()
{
int A,B,C;
cin>>A;
cin>>B;
cin>>C;
if(A==B||A==C||C==B)
{
 count<<"YES";
}
else
{
count<<"NO";
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: 'count' was not declared in this scope
   11 |  count<<"YES";
      |  ^~~~~
a.cc:15:1: error: 'count' was not declared in this scope
   15 | count<<"NO";
      | ^~~~~
Language: C

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

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

int main() {
    int a[3],c=0,i;
    for(i=0;i<3;i++)
    {
        cin>>a[i];
    }
    for(i=1;i<3;i++)
    {
        if(a[0]==a[i])
        {
            c++;
        }
    }
    if(c==2)
    {
        cout<<"No";
    }
    if(c==1)
    {
        cout<<"Yes";
    }
    if(c==0)
    {
        if(a[1]==a[2])
        {
            cout<<"Yes";
        }
        else
        {
            cout<<"No";
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a[i];
      |         ^~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"No";
      |         ^~~~
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout<<"Yes";
      |         ^~~~
a.cc:26:13: error: 'cout' was not declared in this scope
   26 |             cout<<"Yes";
      |             ^~~~
a.cc:30:13: error: 'cout' was not declared in this scope
   30 |             cout<<"No";
      |             ^~~~
Language: Java

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("All numbers are equal");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("All numbers are different");
        }
    }
}

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

#include<iostream.h>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter three numbers:";
cin>>a;
cin>>b;
cin>>c;
if(a==b&&a!=c)
cout<<"Yes";
else if(a==c&&a!=b)
cout<<"Yes";
else if(b==c&&b!=a)
cout<<"Yes";
else
cout<<"No";
return 0;
}

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

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("All numbers are equal");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("poor");
        }
        else
        {
            System.out.println("not poor");
        }
    }
}

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

import java.util.Scanner;
 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("yes");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("no");
        }
    }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
 {
 ^
Main.java:4: 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)
Main.java:28: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;
public class ans
{
	public static void main(String[] args) 
	{
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		int fn=1;
		if(n<2)
		{
			fn=1;
		}
		if(n>=2)
		{
			for(int i=n;i>=1;i=i-2)
			{
				fn=fn*i;
			}
		}
		int count=0;
		while(fn!=0)
		{
			int d=fn%10;
			if(d==0)
			{
				count++;
			}
			if(d!=0)
			{
				break;
			}
			fn=fn/10;
		}
		System.out.println(count);
			
	}
}

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

#include<stdio.h>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter three numbers:";
cin>>a;
cin>>b;
cin>>c;
if(a==b&&a!=c)
cout<<"Yes";
else if(a==c&&a!=b)
cout<<"Yes";
else if(b==c&&b!=a)
cout<<"Yes";
else
cout<<"No";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"Enter three numbers:";
      | ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a;
      | ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("yes");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("no");
        }
    }
}

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

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

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

#include <iostream>
int main()
{ 
cin>>a>>b>>c;
if((a== b&& a!== c)||(a==c&&a!==b))
    { return  yes;}
  else 
  { return   no;}
return  0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | 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:4:6: error: 'a' was not declared in this scope
    4 | cin>>a>>b>>c;
      |      ^
a.cc:4:9: error: 'b' was not declared in this scope
    4 | cin>>a>>b>>c;
      |         ^
a.cc:4:12: error: 'c' was not declared in this scope
    4 | cin>>a>>b>>c;
      |            ^
a.cc:5:16: error: expected primary-expression before '=' token
    5 | if((a== b&& a!== c)||(a==c&&a!==b))
      |                ^
a.cc:5:32: error: expected primary-expression before '=' token
    5 | if((a== b&& a!== c)||(a==c&&a!==b))
      |                                ^
a.cc:6:15: error: 'yes' was not declared in this scope
    6 |     { return  yes;}
      |               ^~~
a.cc:8:14: error: 'no' was not declared in this scope
    8 |   { return   no;}
      |              ^~
Language: C++

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

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

#include<stdio.h>
#include<conio.h>

int main()
{
	int A,B,C;
	scanf("%d",&A);
	scanf("%d",&B);
	scanf("%d",&C);
	if(A==B && B==C && A==C)
	{
		printf("No");
	}
	else 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==A)
		{
			printf("Yes");
		}
		else
		{
			printf("No");
		}
	}
	else if(B!=A)
	{
		if(B==C)
		{
			printf("Yes");
		}
		else
		{
			printf("No");
		}
	}

}

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

#include<iostream>
using namespace std;
int main()
{
int a,b,c;

cout<<"enter the 3 digit number";
cin>>a;
cin>>b;
cin>>c;

if(a==b|| b==c|| c==a)
{
{cout<<"yes";}
else
{cout<<"no";}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: expected '}' before 'else'
   15 | else
      | ^~~~
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
a.cc: At global scope:
a.cc:18:1: error: expected unqualified-id before 'return'
   18 | return 0;
      | ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
# include<conio>
int main()
{ 
cin>>a>>b>>c;
if((a== b&& a!== c)||(a==c&&a!==b))
    { return  yes;}
  else 
  { return   no;}
return  0;
}

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

clude<iostream>
using namespace std;
int main()
{
int a1,b1,c1;
cin>>a1>>b1>>c1;
if(a1==b1 && a1!=c1)
{
cout<<"Yes";
}
else if(b1==c1 && c1!=a1)
{
 cout<<"Yes";
}
else if(a1==c1 && a1!=b1)
{
 cout<<"Yes";
}
else
{
 cout<<"No";
}
return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<iostream>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a1>>b1>>c1;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"Yes";
      | ^~~~
a.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout<<"Yes";
      |  ^~~~
a.cc:17:2: error: 'cout' was not declared in this scope
   17 |  cout<<"Yes";
      |  ^~~~
a.cc:21:2: error: 'cout' was not declared in this scope
   21 |  cout<<"No";
      |  ^~~~
Language: C++

#include <iostream>
# include<conio.h>
int main()
{ 
cin>>a>>b>>c;
if((a== b&& a!== c)||(a==c&&a!==b))
    { return  yes;}
  else 
  { return   no;}
return  0;
}

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

int func(int a,int b,int c)
{
if(a==b || a==c )
{ if(b!=c)
  cout<<"yes";
  else
  cout<<"no";
}
cout<<"no";
}

Compiler output:
a.cc: In function 'int func(int, int, int)':
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout<<"yes";
      |   ^~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"no";
      |   ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"no";
      | ^~~~
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string poorNum(int a)
{
 int 
if(a[0]==a[1])
return "Yes";
if(a[1]==a[2])
return "Yes";
if(a[0]==a[2])
return "Yes";
return "No";
}
int main()
{ int a[3],i,count=0;
 for(i=0;i<3;i++)
{cin>>a[i];
}
string s1;
s1=poorNum(a);
cout<<s1;
return 0;
}

Compiler output:
a.cc: In function 'std::string poorNum(int)':
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a[0]==a[1])
      | ^~
a.cc:9:5: error: invalid types 'int[int]' for array subscript
    9 | if(a[1]==a[2])
      |     ^
a.cc:9:11: error: invalid types 'int[int]' for array subscript
    9 | if(a[1]==a[2])
      |           ^
a.cc:11:5: error: invalid types 'int[int]' for array subscript
   11 | if(a[0]==a[2])
      |     ^
a.cc:11:11: error: invalid types 'int[int]' for array subscript
   11 | if(a[0]==a[2])
      |           ^
a.cc: In function 'int main()':
a.cc:21:12: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   21 | s1=poorNum(a);
      |            ^
      |            |
      |            int*
a.cc:4:20: note:   initializing argument 1 of 'std::string poorNum(int)'
    4 | string poorNum(int a)
      |                ~~~~^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b>>c;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"Yes";
      | ^~~~
a.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout<<"Yes";
      |  ^~~~
a.cc:17:2: error: 'cout' was not declared in this scope
   17 |  cout<<"Yes";
      |  ^~~~
a.cc:21:2: error: 'cout' was not declared in this scope
   21 |  cout<<"No";
      |  ^~~~
Language: C++

#include<stdio.h>
#include conio.h
{
main
sdsd
dd
ddddd
f
as
fs
fdsds
mngbjbaherylhjjjjjyi7bftwgtiufwejknfkaekfhiehfihejfeskjdancknasncejhfuiewhgfaadhfyugkjabdkjfberuifhaewhfbgyulahbdsbrlgfuaLFGBUAEBG

Compiler output:
a.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include conio.h
      |          ^~~~~
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: Java

import java.util.*;
Class Triple{
          Public static void main(String[] args){
             Scanner scanner = new Scanner(System.in);
              int A = scanner.nextInt();
              int B = scanner.nextInt();
              int C = scanner.nextInt();
              if(A==B){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(A==C){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(B==C){
                             if(A==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else System.out.println("No");
}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
Class Triple{
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
              int A = scanner.nextInt();
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
              if(A==B){
              ^
Main.java:10: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:11: error: class, interface, enum, or record expected
               }
               ^
Main.java:14: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:15: error: class, interface, enum, or record expected
               }
               ^
Main.java:18: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:19: error: class, interface, enum, or record expected
               }
               ^
Main.java:21: error: class, interface, enum, or record expected
}
^
10 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
string poorNum(int a)
{
 int 
if(a[0]==a[1])
return "Yes";
if(a[1]==a[2])
return "Yes";
if(a[0]==a[2])
return "Yes";
return "No";
}
int main()
{ int a[3],i,count=0;
 for(i=0;i<3;i++)
{cin>>a[i];
}
string s1;
s1=poorNum(a);
cout<<s1;
return 0;
}

Compiler output:
a.cc: In function 'std::string poorNum(int)':
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a[0]==a[1])
      | ^~
a.cc:8:5: error: invalid types 'int[int]' for array subscript
    8 | if(a[1]==a[2])
      |     ^
a.cc:8:11: error: invalid types 'int[int]' for array subscript
    8 | if(a[1]==a[2])
      |           ^
a.cc:10:5: error: invalid types 'int[int]' for array subscript
   10 | if(a[0]==a[2])
      |     ^
a.cc:10:11: error: invalid types 'int[int]' for array subscript
   10 | if(a[0]==a[2])
      |           ^
a.cc: In function 'int main()':
a.cc:20:12: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   20 | s1=poorNum(a);
      |            ^
      |            |
      |            int*
a.cc:3:20: note:   initializing argument 1 of 'std::string poorNum(int)'
    3 | string poorNum(int a)
      |                ~~~~^
Language: C++

nclude<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a==b && a!=c)
{
cout<<"Yes";
}
else if(b==c && c!=a)
{
 cout<<"Yes";
}
else if(a==c && a!=b)
{
 cout<<"Yes";
}
else
{
 cout<<"No";
}
return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b>>c;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"Yes";
      | ^~~~
a.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout<<"Yes";
      |  ^~~~
a.cc:17:2: error: 'cout' was not declared in this scope
   17 |  cout<<"Yes";
      |  ^~~~
a.cc:21:2: error: 'cout' was not declared in this scope
   21 |  cout<<"No";
      |  ^~~~
Language: Java

Import java.util.*;
Class Triple{
          Public static void main(String[] args){
             Scanner scanner = new Scanner(System.in);
              int A = scanner.nextInt();
              int B = scanner.nextInt();
              int C = scanner.nextInt();
              if(A==B){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(A==C){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(B==C){
                             if(A==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else System.out.println("No");
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Import java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
Class Triple{
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
              int A = scanner.nextInt();
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
              if(A==B){
              ^
Main.java:10: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:11: error: class, interface, enum, or record expected
               }
               ^
Main.java:14: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:15: error: class, interface, enum, or record expected
               }
               ^
Main.java:18: error: class, interface, enum, or record expected
                             else System.out.println("Yes");
                             ^
Main.java:19: error: class, interface, enum, or record expected
               }
               ^
Main.java:21: error: class, interface, enum, or record expected
}
^
11 errors
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"enter the 3 digit number";
cin>>a,b,c;
if(a==b|| b==c|| c==a)
{
cout<<"yes";
else
cout<<"no";
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected '}' before 'else'
   11 | else
      | ^~~~
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
a.cc: At global scope:
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream.h>
# include<conio.h>
int main()
{ 
cin>>a>>b>>c;
if((a== b&& a!== c)||(a==c&&a!==b))
    { return  yes;}
  else 
  { return   no;}
return  0;
}

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

import java.util.*;
public class poor {

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

	private static void find(int a, int b, int c) 
	{
		// TODO Auto-generated method stub
		int array[]=new int[3];
		array[0]=a;		array[1]=b;		array[2]=c;
		int count=0;
		for(int i=0;i<2;i++)
		{
			for(int j=i+1;j<3;j++)
			{
				if(array[i]==array[j])
					count++;
			}
		}
		if(count==1)
			System.out.println("Yes");
		else 
			System.out.println("No");
		
		
	}

}


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

import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
	int B = stdIn.nextInt();
	int C = stdIn.nextInt();
	if((a==B&&A==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)||(a!=B&&a!=C&&B!=C)){
	          ^
  symbol:   variable A
  location: class Main
1 error
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";}
else{
cout<<"no";}
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: lvalue required as left operand of assignment
    7 | if(A=B!=C||A=C!=B||B=C!=A){
      |              ~~~~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c,i ;
 a>0;
a<9;
b>0;
b<9;
c>0;
c<9;
cin>>a>>b>>c;
if((a==b && a!=c ) || (a==c && a!=b) || (b==c && b!=a))
{
cout<<"yes, the no is poor"<<endl;
 }
else if (a==b  && b==c)
{
cout<<"no, the no. is not poor"<<endl;
 }
else{
cout<<"no"<<the no is not poor"<<endl;

}}




Compiler output:
a.cc:22:31: warning: missing terminating " character
   22 | cout<<"no"<<the no is not poor"<<endl;
      |                               ^
a.cc:22:31: error: missing terminating " character
   22 | cout<<"no"<<the no is not poor"<<endl;
      |                               ^~~~~~~~
a.cc: In function 'int main()':
a.cc:22:13: error: 'the' was not declared in this scope
   22 | cout<<"no"<<the no is not poor"<<endl;
      |             ^~~
Language: Java

import java.util.Scanner;
class poor{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean poor = false
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				poor = true;
			}
		}
		if (poor) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
}

Compiler output:
Main.java:8: error: ';' expected
		boolean poor = false
		                    ^
1 error
Language: Java

import java.util.Scanner;

public class PoorNumber {
	static boolean check(int a, int b, int c) {
		if((a==b&&b!=c)||(a==c&&a!=b)||(b==c&&a!=b))
			return true;
		return false;
	}
	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(check(a, b, c))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

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

#include<stdio.h>
void triple(int a, int b, int c)
{ if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
{ cout<<"yes";
}
else
{
cout<<"no";
};
int main()

{int a,b,c;
 cin>>a>>b>>c;
triple(a,b,c);
return 0;
}

Compiler output:
a.cc: In function 'void triple(int, int, int)':
a.cc:4:3: error: 'cout' was not declared in this scope
    4 | { cout<<"yes";
      |   ^~~~
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"no";
      | ^~~~
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main()
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main()
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:1: error: a function-definition is not allowed here before '{' token
   12 | {int a,b,c;
      | ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | { if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
      | ^
Language: Java

import java.util.*;
public class poor{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean poor = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				poor = true;
			}
		}
		if (poor) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
}

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

#include<iostream.h>
#include<conio.h>
int main()
{
int a,b,c;
cout<<"enter the 3 digit number";
cin>>a,b,c;
if(a==b|| b==c||c==a)
{
cout<<"yes";
else
cout<<"no";
}
return 0;
} 

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: 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:1: error: 'cout' was not declared in this scope
    7 | cout<<"Yes";
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"Yes";
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"Yes";
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<"No";
      | ^~~~
a.cc:13:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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:13: error: 'c' was not declared in this scope
    6 | if(A==B&&B!=c){
      |             ^
Language: C++

#include<iosteam>
using namespace std;
void triple(int a, int b, int c)
{ if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
{ cout<<"yes";
}
else
{
cout<<"no";
};
int main()

{int a,b,c;
 cin>>a>>b>>c;
triple(a,b,c);
return 0;
}

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

#include<bits\stdc++.h>
using namespace std;
int main()
{ int a[3],i;
 for(i=0;i<3;i++)
{cin>>a[i];
if(a[i]==a[i+1])
cout<<"YES";
}
if(i==3)
cout<<"NO";
}

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

import java.util.*;
public class ans
{
	public static void main(String[] args) 
	{
		Scanner s=new Scanner(System.in);
		int a=s.nextInt();
		int b=s.nextInt();
		int c=s.nextInt();
		if(a!=b&&b==c)
		{
			System.out.println("yes");
		}
		if(a==b&&b!=c)
		{
			System.out.println("yes");
		}
		if(a==c&&b!=c)
		{
			System.out.println("yes");
		}
		else
		{
			System.out.println("no");
		}	
	}
}


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

#include<iosteam.h>
void triple(int a, int b, int c)
{ if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
{ cout<<"yes";
}
else
{
cout<<"no";
};
int main()

{int a,b,c;
 cin>>a>>b>>c;
triple(a,b,c);
return 0;
}

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

import java.util.Scanner;

public class triple {
public static void main(String args[])
{
  Scanner s=new Scanner(System.in);
  String n=s.nextLine();
  String[] num=n.split(" ");
  int[] u=new int[num.length];
  for(int i=0;i<num.length;i++)
  {
    u[i]=Integer.parseInt(num[i]);
  } 
  int flag=0;
  for(int i=0;i<u.length;i++)
  {
    for(int j=i+1;j<u.length;j++)
    {
      if(u[i]==u[j])
      {
        flag++;
      }
    }
    break;
  }
  if(flag==1)
  {
    System.out.println("YES");
  }
  else
  {
    System.out.println("NO");
  }
}
}


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

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int x = in.nextInt();
        System.out.print("Input second number: ");
        int y = in.nextInt();
        System.out.print("Input third number: ");
        int z = in.nextInt();

        if (x == y && x == z)
        {
            System.out.println("All numbers are equal");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("All numbers are different");
        }
    }

Compiler output:
Main.java:27: error: reached end of file while parsing
    }
     ^
1 error
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:7:7: error: 'b' was not declared in this scope
    7 | if(A==b&&B!=C)
      |       ^
Language: C++

#include<iostream.h>
int main()
{
int a,b,c;
cout<<"Enter three numbers:";
cin>>a;
cin>>b;
cin>>c;'
if(a==b&&a!=c)
cout<<"Yes";
else if(a==c&&a!=b)
cout<<"Yes";
else if(b==c&&b!=a)
cout<<"Yes";
else
cout<<"No";
return 0;
}

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

void triple(int a, int b, int c)
{ if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
{ cout<<"yes";
}
else
{
cout<<"no";
}

Compiler output:
a.cc: In function 'void triple(int, int, int)':
a.cc:3:3: error: 'cout' was not declared in this scope
    3 | { cout<<"yes";
      |   ^~~~
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<"no";
      | ^~~~
a.cc:8:2: error: expected '}' at end of input
    8 | }
      |  ^
a.cc:2:1: note: to match this '{'
    2 | { if((a==b&&a!=c)||(b==c&&b!=a)||(a==c&&a!=b))
      | ^
Language: C++

void triple(int a, int b, int c)
{
  if(a==b&&a!=c||b==c&&b!=a||a==c&&a!=b)
{
    cout<<"yes";
}
else
{ cout<<"no";
}

Compiler output:
a.cc: In function 'void triple(int, int, int)':
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<"yes";
      |     ^~~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 | { cout<<"no";
      |   ^~~~
a.cc:9:2: error: expected '}' at end of input
    9 | }
      |  ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
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<<"No"<<endl;
}else if(B==C&&C!=A){
cout<<"No"<<endl;
}else if(C==A&&A!=B)
cout<<"No"<<endl;
}

cout<<"Yes"<<endl;

}


Compiler output:
a.cc:15:1: error: 'cout' does not name a type
   15 | cout<<"Yes"<<endl;
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
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<<"No"<<endl;
}else if(B==C&&C!=A){
cout<<"No"<<endl;
}else if(C==A&&A!=B)
cout<<"No"<<endl;
}
else{
cout<<"Yes"<<endl;
}
}


Compiler output:
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else{
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cinb' was not declared in this scope
    5 |   cinb>>A>>B>>C;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else cout<<"No";}}
      |   ^~~~
a.cc:6:28: note: to match this '{'
    6 |   if (a==b || a==c || b==c){
      |                            ^
a.cc: At global scope:
a.cc:9:20: error: expected declaration before '}' token
    9 |   else cout<<"No";}}
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,l,r) for(size_t i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define int long long

signed main(){
    vector<int>vec(3);
    REP(i,3){
        cin >>vec[i];
    }
    sort(vec.begin(),vec.end());
    if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2])({
        cout <<"Yes" << endl;
    }
    else{
        cout <<"No"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: expected '}' before ';' token
   14 |         cout <<"Yes" << endl;
      |                             ^
a.cc:13:77: note: to match this '{'
   13 |     if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2])({
      |                                                                             ^
a.cc:14:29: error: expected ')' before ';' token
   14 |         cout <<"Yes" << endl;
      |                             ^
      |                             )
a.cc:13:76: note: to match this '('
   13 |     if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2])({
      |                                                                            ^
a.cc:14:29: error: expected ')' before ';' token
   14 |         cout <<"Yes" << endl;
      |                             ^
      |                             )
a.cc:13:7: note: to match this '('
   13 |     if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2])({
      |       ^
a.cc: At global scope:
a.cc:16:5: error: expected unqualified-id before 'else'
   16 |     else{
      |     ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,l,r) for(size_t i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define int long long

signed main(){
    vector<int>vec(3);
    REP(i,3){
        cin >>vec[i];
    }
    sort(vec.begin(),vec.end());
    if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2]){
        cout <<"Yes" << endl;
    }
    else{
        cout <<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:76: error: expected ')' before '{' token
   13 |     if((vec[0]!=vec[1] &&vec[1]==vec[2])||(vec[0]==vec[1] &&vec[1]!=vec[2]){
      |       ~                                                                    ^
      |                                                                            )
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  long long int arr[3];
  for (int i =0;i<3;i++)
  {
    cin>>arr[i];
  }
  sort(arr,arr+3);
  if ( arr[0]==arr[1] && arr[1]!=arr[2])
    cout <<"Yes\n";
  else if ( arr[1]==arr[2] && arr[0]!=arr[1])
    cout << "Yes\n":
  else
    cout << "No\n";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before ':' token
   14 |     cout << "Yes\n":
      |                    ^
      |                    ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'if'
    8 |   if(A == B)Ans++
      |                  ^
      |                  ;
    9 |   if(B == C)Ans++
      |   ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int arr[3];
  set<int>st;
  for(int i=0;i<3;i++)
  {cin>>arr[i];
   s.insert(arr[i]);
  }
  if(s.size()==2)
    cout<<"Yes";
  else
    cout<<"No";
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 's' was not declared in this scope
    8 |    s.insert(arr[i]);
      |    ^
a.cc:10:6: error: 's' was not declared in this scope; did you mean 'st'?
   10 |   if(s.size()==2)
      |      ^
      |      st
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int arr[3];
  set<int>st;
  for(int i=0;i<3;i++)
  {cin>>arr[i];
   s.insert(arr[i]);
  }
  if(s.size()==2)
    cout<<"Yes";
  else
    cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 's' was not declared in this scope
    8 |    s.insert(arr[i]);
      |    ^
a.cc:10:6: error: 's' was not declared in this scope; did you mean 'st'?
   10 |   if(s.size()==2)
      |      ^
      |      st
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int arr[3];
  set<int>st;
  for(int i=0;i<3;i++)
  {cin>>arr[i];
   s.insert(arr[i]);
  }
  if(s.size()!=2)
    cout<<"Yes";
  else
    cout<<"No";
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 's' was not declared in this scope
    8 |    s.insert(arr[i]);
      |    ^
a.cc:10:6: error: 's' was not declared in this scope; did you mean 'st'?
   10 |   if(s.size()!=2)
      |      ^
      |      st
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define int long long
#define endl "\n"
#define pii pair<int,int> 
#define ff first
#define ss second
#define mii map<int,int>
#define si set<int>
#define sti stack<int>
#define qi queue<int>
#define vi vector<int>
#define pq priority_queue<int>
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int M=1e9+7;

int32_t main(){
    IOS;
 	int a[3];
 	for(int i=0;i<n;i++) cin>>a[i];
 	sort(a,a+3);
 	if(a[0]==a[1]&&a[1]!=a[2]) cout<<"Yes"<<endl;
 	else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:21:23: error: 'n' was not declared in this scope
   21 |         for(int i=0;i<n;i++) cin>>a[i];
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{ int A[3];
  int i=3;
  while(i--)
  {cin>>A[i];
  }
  if((A[0]==A[1]&&A[0]!=A[2])||(A[0]==A[2]&&A[0]!=A[1])||(A[2]==A[1]&&A[0]!=A[2]))
    cout<<"Yes";
 else
   cout<<"No"'
  return 0;
}

Compiler output:
a.cc:12:14: warning: missing terminating ' character
   12 |    cout<<"No"'
      |              ^
a.cc:12:14: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before 'return'
   12 |    cout<<"No"'
      |              ^
      |              ;
   13 |   return 0;
      |   ~~~~~~
Language: C++

#include<bits/stdc++>
using namespace std;
int main()
{ int A[3];
  int i=3;
  while(i--)
  {cin>>A[i];
  }
  int count=0;
  int ele=A[0];
  for(int j=1;j<3;j++)
  {if(A[j]==ele)
    count++;
  }
 if(count==0)
 {if(A[1]==A[2])
   count++;
 }
 if(count==1)
   cout<<"yes";
 else
   cout<<"No";
  return 0;
}

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

a,b,c=map(int,input().split());print('YNeos'[a==b==c or a!=b!=c::2])

Compiler output:
a.cc:1:38: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | a,b,c=map(int,input().split());print('YNeos'[a==b==c or a!=b!=c::2])
      |                                      ^~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=map(int,input().split());print('YNeos'[a==b==c or a!=b!=c::2])
      | ^
a.cc:1:37: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b,c=map(int,input().split());print('YNeos'[a==b==c or a!=b!=c::2])
      |                                     ^
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){
		cout<<"Yes";
	}
	else cout<<"No";
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'if'
    8 |   x=((A==B)+(B==C)+(C==A))
      |                           ^
      |                           ;
    9 |   if(x==1)
      |   ~~                       
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:29: error: expected expression before '||' token
    9 |   if (a!=b && b!=c && c!=a) || (a==b && b==c))
      |                             ^~
main.c:9:46: error: expected statement before ')' token
    9 |   if (a!=b && b!=c && c!=a) || (a==b && b==c))
      |                                              ^
main.c:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~