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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:16: error: expected ')' before '!' token
    5 |   if( (a==b)!=c !! (b==c)!=a !! (a==c)!=b )
      |     ~          ^~
      |                )
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<Yes;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:11: error: 'Yes' was not declared in this scope
    6 |     cout<<Yes;
      |           ^~~
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      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:8:12: error: 'No' was not declared in this scope
    8 |      cout<<No;
      |            ^~
Language: Java

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

Compiler output:
Main.java:5: error: ';' expected
      	int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt);
      	                                                      ^
1 error
Language: C++

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

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


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d=0;
    scanf("%d %d %d",&a,&b,&c);
        if(a==b&&a!=c) d=1;
    else if(a==c&&a!=b) d=1;
    else if(b==c&&b!=a) d=1;
    
    if(d==1) printf("YES\n);
        else printf("NO"\n);
    return 0;
    
}

Compiler output:
a.cc:11:21: warning: missing terminating " character
   11 |     if(d==1) printf("YES\n);
      |                     ^
a.cc:11:21: error: missing terminating " character
   11 |     if(d==1) printf("YES\n);
      |                     ^~~~~~~~
a.cc:12:25: error: stray '\' in program
   12 |         else printf("NO"\n);
      |                         ^
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before 'else'
   12 |         else printf("NO"\n);
      |         ^~~~
Language: C++

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

int main() {
	int a, b, c;

	cin >> a >> b >> c;

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

	cout << "No";
}


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

#include <iostream>

using namespace std;

auto main() -> int{
    int A,B,C;
    cin >> A >> B >> C;
    if(A ==B && B == C && C == A){ cout << "No" << endl; return 0; }
    if(A != B && B != C && C != A){ cout << "No" << endl; return 0; }

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

}

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

#include<iostream>
namespace std;

int main(){
  int val[3];
  bool result;
  cin>>val[0]>>val[1]>>val[2];
  for(int i=0; i<=1; i++){
    if(i==i+1){
      if(result){
      	result=false;
      }else{
        result=true;
      }
    }
  }
  if(result){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>val[0]>>val[1]>>val[2];
      |   ^~~
      |   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:18:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout<<"No";
      |     ^~~~
      |     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 <stdio.h>
#include <iostream>

using namespace std;

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

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


}


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

a = list(map(int, input().split()))
b = set(a)
if len(b) == 2:
    print('Yes')
else:
    print('No')

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

#include<stdio.h>

int main(void) {

	int a, b, c;

	scanf_s("%d %d %d",&a,&b,&c);

	if (a == b && a != c || b == c && c != a || c == a && c != b)printf("Yes");

	else printf("No");

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d %d %d",&a,&b,&c);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main(){
vector<int> K(3);
for(int i=0;i<3;i++){
  cin>>K[i];
}
if((K[0]==k[1]&&K[0]!=K[2])||(K[1]==k[2]&&K[0]!=K[2])||(K[0]==k[2]&&K[0]!=K[1])){
  cout<<"Yes"<<endl;
}else{
  cout<<"No"<<endl;
}





return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'k' was not declared in this scope
    9 | if((K[0]==k[1]&&K[0]!=K[2])||(K[1]==k[2]&&K[0]!=K[2])||(K[0]==k[2]&&K[0]!=K[1])){
      |           ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
int a,b,c;
bool OK = false;
    scanf("%d %d %d",&a,&b,&c);
    if((a == b && a != c) || (b == c && c != a) || (c == a && a != b))OK = true;
  if(OK == true)printf("Yes");
  else(printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ')' before ';' token
   11 |   else(printf("No");
      |       ~            ^
      |                    )
main.c:11:21: error: expected ';' before '}' token
   11 |   else(printf("No");
      |                     ^
      |                     ;
   12 | }
      | ~
Language: Java

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

Compiler output:
Main.java:11: error: ')' expected
		}else if(!(a == b) && !( b == c) && !(a == c){
		                                             ^
1 error
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b,c;
    cin >> a >> b >> c;
     bool x = false;
     if(a-b == 0){
       if(a-c != o){
         x = true
       }
     }else if(a-c == 0||b-c== 0){
       x = true
     }
  if(x == true){
    cout << "Yes" << endl;
}else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'o' was not declared in this scope
    9 |        if(a-c != o){
      |                  ^
a.cc:10:18: error: expected ';' before '}' token
   10 |          x = true
      |                  ^
      |                  ;
   11 |        }
      |        ~          
a.cc:13:16: error: expected ';' before '}' token
   13 |        x = true
      |                ^
      |                ;
   14 |      }
      |      ~
Language: C++

def poor(a, b, c)
  if a == b || b == c || c == a
    puts "Yes"
  else
    puts "No"
  end
end

a, b, c = gets.chomp.split(" ").map(&:to_i)
poor(a, b, c)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def poor(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 and b && c){
			System.out.println(No);
		}else if(!(a == b) && !( b == c) && !(a == c){
			System.out.println(No);
		}else{
			System.out.println(Yes);
		}
	}
}

Compiler output:
Main.java:9: error: ')' expected
		if(a && b and b && c){
		         ^
Main.java:9: error: ';' expected
		if(a && b and b && c){
		               ^
Main.java:9: error: variable declaration not allowed here
		if(a && b and b && c){
		              ^
Main.java:9: error: not a statement
		if(a && b and b && c){
		                   ^
Main.java:9: error: ';' expected
		if(a && b and b && c){
		                    ^
Main.java:11: error: ')' expected
		}else if(!(a == b) && !( b == c) && !(a == c){
		                                             ^
Main.java:11: error: 'else' without 'if'
		}else if(!(a == b) && !( b == c) && !(a == c){
		 ^
7 errors
Language: C

#include<stdio.h>
int main(){
int a,b,c,ans=0;
scanf("%d %d %d",&a,&b,&c);
if(a==b&&a!=c) ans=1;

if(a==c&&a!=b) ans=1;

if(b==c&&a!=b) ans=1;

if(ans==0) printf("No");
else printf("Yes");
)

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected statement before ')' token
   13 | )
      | ^
main.c:13:1: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define eb emplace_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}
int const INF = 1001001001;
ll const MOD = 1000000007;


int main()
{
cin.tie(0);
ios::sync_with_stdio(false);

int a,b,c;
cin >> a >> b >> c;

if(a == b && c!= b){
    cout << "Yes" << endl;
    return 0;
}
if(a == c && c!= b){
    cout << "Yes" << endl;
    return 0;
if(b == c && c!= a){
    cout << "Yes" << endl;
    return 0;
}

cout << "No" << endl;


return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expression cannot be used as a function
    8 |     if((a==b && b!=c)||(a==c && a!=b)(c==b && b!=a)){
      |                        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
Language: C++

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

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

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

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

using namespace std;

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

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


}

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

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

if a == b and a != c:
    ans = "Yes"
elif b == c and a!= b:
    ans = "Yes"
elif a == c and a!=b:
    ans = "Yes"
    
print(ans)


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

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);

   int[] a = new int[N];
   for(int i=0;i<3;i++) a[i] = sc.nextInt();

   Arrays.sort(a);
   
   int ss = 0;
   int s = a[0];
   for(int i=1;i<3;i++) 
   {
     if(s==a[i])
     {
       ss++;
     }
     s = a[i];
   }
   
   String ans = "No";
   if(ss==1) ans = "Yes";
   System.out.print(ans);
 }
}

Compiler output:
Main.java:6: error: cannot find symbol
   int[] a = new int[N];
                     ^
  symbol:   variable N
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    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&&a!=b){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
}a


Compiler output:
a.cc:19:2: error: 'a' does not name a type
   19 | }a
      |  ^
Language: C++

#include <stdio.h>

void swap(int& a, int& b) {
	int t;
    t = a;
    a = b;
    b = t;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'a' was not declared in this scope
   11 |         scanf("%d %d %d", &a, &b, &c);
      |                            ^
a.cc:11:32: error: 'b' was not declared in this scope
   11 |         scanf("%d %d %d", &a, &b, &c);
      |                                ^
a.cc:11:36: error: 'c' was not declared in this scope
   11 |         scanf("%d %d %d", &a, &b, &c);
      |                                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before '=' token
    9 |         else if(a !== b && b !== c && a !== c){
      |                     ^
a.cc:9:32: error: expected primary-expression before '=' token
    9 |         else if(a !== b && b !== c && a !== c){
      |                                ^
a.cc:9:43: error: expected primary-expression before '=' token
    9 |         else if(a !== b && b !== c && a !== c){
      |                                           ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'ab' was not declared in this scope; did you mean 'b'?
   14 |     else if(b==c and a!=ab{
      |                         ^~
      |                         b
a.cc:17:5: error: expected primary-expression before 'else'
   17 |     else{
      |     ^~~~
a.cc:16:7: error: expected ')' before 'else'
   16 |      }
      |       ^
      |       )
   17 |     else{
      |     ~~~~
a.cc:14:12: note: to match this '('
   14 |     else if(b==c and a!=ab{
      |            ^
Language: Java

import java.util.*;
public class Main158A{
  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){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
}



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

int map[3];
for(int i=0;i<3;i++)
{
	scanf("%c",map[i]);  
}
for(int i=0;i<3;i++)
{
  int cnt=0;
	for(int j=0;j<3;j++)
	{
      if(i==j)continue;
      if(map[i]==map[j])
        cnt++;
 	}
  	if(cnt==1) printf("Yes");
  	else printf("No");
}


Compiler output:
a.cc:2:1: error: expected unqualified-id before 'for'
    2 | for(int i=0;i<3;i++)
      | ^~~
a.cc:2:13: error: 'i' does not name a type
    2 | for(int i=0;i<3;i++)
      |             ^
a.cc:2:17: error: 'i' does not name a type
    2 | for(int i=0;i<3;i++)
      |                 ^
a.cc:6:1: error: expected unqualified-id before 'for'
    6 | for(int i=0;i<3;i++)
      | ^~~
a.cc:6:13: error: 'i' does not name a type
    6 | for(int i=0;i<3;i++)
      |             ^
a.cc:6:17: error: 'i' does not name a type
    6 | for(int i=0;i<3;i++)
      |                 ^
Language: Java

import java.util.Scanner;

class atcorder {

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

		int A = stdIn.next();
		int B = stdIn.next();
		int C = stdIn.next();
		
		if(A==B || B=C)
			System.out.print("no");
		
		if(A==B || B!=C)
			System.out.print("yes");

		if(A!=B || B==C)
			System.out.print("yes");
		
		if(A!=B || B!=C)
			System.out.print("yes");
		

	}
    
}

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to int
		int A = stdIn.next();
		                  ^
Main.java:10: error: incompatible types: String cannot be converted to int
		int B = stdIn.next();
		                  ^
Main.java:11: error: incompatible types: String cannot be converted to int
		int C = stdIn.next();
		                  ^
Main.java:13: error: bad operand types for binary operator '||'
		if(A==B || B=C)
		        ^
  first type:  boolean
  second type: int
4 errors
Language: C++

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

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

val a
val b
val c

if a = b = c {
    print("no")
} else print("yes")

Compiler output:
a.cc:1:1: error: 'val' does not name a type
    1 | val a
      | ^~~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 | } else print("yes")
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |   }else if(a=!b && b=!c  && a=!c){
      |                      ~~~~^~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  
  if(a==b )
    printf("YES\n");
  else if(a==c)
      printf("YES"\n);
  else if(b==c)
    printf("YES\n");
  
  else
    printf("NO\n");
  
    
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: stray '\' in program
   11 |       printf("YES"\n);
      |                   ^
main.c:11:19: error: expected ')' before 'n'
   11 |       printf("YES"\n);
      |             ~     ^~
      |                   )
Language: Java

import java.util.*;


public final class ABC155A {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    Set<Integer> set = new HashSet<>();
    set.add(in.nextInt());
    set.add(in.nextInt());
    set.add(in.nextInt());
    System.out.println(set.size() == 2 ? "YES" : "NO");
  }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		// 出力
		if(a == b and b == c){
			System.out.println(No);
		}else if(a != b and b != c and a != c){
			System.out.println(No);
		}else{
			System.out.println(Yes);
		}
	}
}

Compiler output:
Main.java:9: error: ')' expected
		if(a == b and b == c){
		         ^
Main.java:9: error: ';' expected
		if(a == b and b == c){
		               ^
Main.java:9: error: variable declaration not allowed here
		if(a == b and b == c){
		              ^
Main.java:9: error: not a statement
		if(a == b and b == c){
		                   ^
Main.java:9: error: ';' expected
		if(a == b and b == c){
		                    ^
Main.java:11: error: ')' expected
		}else if(a != b and b != c and a != c){
		               ^
Main.java:11: error: ';' expected
		}else if(a != b and b != c and a != c){
		                     ^
Main.java:11: error: variable declaration not allowed here
		}else if(a != b and b != c and a != c){
		                    ^
Main.java:11: error: 'else' without 'if'
		}else if(a != b and b != c and a != c){
		 ^
Main.java:11: error: ';' expected
		}else if(a != b and b != c and a != c){
		                              ^
Main.java:11: error: not a statement
		}else if(a != b and b != c and a != c){
		                                 ^
Main.java:11: error: ';' expected
		}else if(a != b and b != c and a != c){
		                                     ^
Main.java:13: error: 'else' without 'if'
		}else{
		 ^
13 errors
Language: C++

a, b, c = gets.chomp.split.map(&:to_i)

array = [a, b, c]

if array.uniq.length == 2
    puts "Yes"
else
    puts "No"
end

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'No' was not declared in this scope
    5 |         int c=No,b;
      |               ^~
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

import java.util.Scanner;

public class Exercise
{
    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 || B == C || A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        scanner.close();
    }
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected primary-expression before ',' token
    5 |     ,long long int a,b,c;
      |     ^
a.cc:5:6: error: expected primary-expression before 'long'
    5 |     ,long long int a,b,c;
      |      ^~~~
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |            ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |                 ^
a.cc:6:22: error: 'c' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |                      ^
Language: Java

    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 || B == C || A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        scanner.close();
    }

Compiler output:
Main.java:1: 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: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |   }else if(a=!b=!c){
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	//freopen("","r",stdin);
	//freopen("","w",stdout);
	int a,b,c;
	cin>>a>>b>>c;
	if(a==b&&b!=c||a==c&&c!=b||b==c&&B!=a){
		cout<<"Yes";
	}
	else{
		cout<<"No";
	}

}


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

#include<iostream>
#include<stdio.h>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  //整数の時はint
  int n,m,o;


  //外部入力
  cin>>n;
  cin>>m;
  cin>>o;


 
  //ifは条件
  if(n==m==o){
    printf(yes);
    return 0;
  }
 



Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: 'yes' was not declared in this scope
   21 |     printf(yes);
      |            ^~~
a.cc:23:4: error: expected '}' at end of input
   23 |   }
      |    ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '<<' token
    9 |   else << "Yes";
      |        ^~
Language: C++

nums = list(map(int, input().split()))

if nums.count(nums[0]) == 2 or nums.count(nums[1] == 2):
    print("Yes")
else:
    print("No")

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

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

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

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

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,m,n) for(int i=(m);i<(n);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
using ll = long long;
template <typename T> using posteriority_queue = priority_queue<T, vector<T>, greater<T> >;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fLL;
const double EPS = 1e-8;
const int MOD = 1000000007;
// const int MOD = 998244353;
const int dy[] = {1, 0, -1, 0}, dx[] = {0, -1, 0, 1};
const int dy8[] = {1, 1, 0, -1, -1, -1, 0, 1}, dx8[] = {0, -1, -1, -1, 0, 1, 1, 1};
template <typename T, typename U> inline bool chmax(T &a, U b) { return a < b ? (a = b, true) : false; }
template <typename T, typename U> inline bool chmin(T &a, U b) { return a > b ? (a = b, true) : false; }
template <typename T> void unique(vector<T> &a) { a.erase(unique(ALL(a)), a.end()); }
struct IOSetup {
  IOSetup() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} iosetup;

int main() {
  vector<int> a(3); REP(i, 3) cin >> a[i];
  sort(ALL(a));
  unique(a);
  cout << (a.size() == 2 ? "Yes\n" : "No\n");
  rturn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:3: error: 'rturn' was not declared in this scope
   32 |   rturn 0;
      |   ^~~~~
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("No");
        }
        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: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
#include<bits/stdc++.h>
using namespace std;
int main(void)
{
	int a,b,c;
	int flag=0;
	scanf("%d%d%d",&a,&b,&c);
	if(a==b)
	{
		flag=1;
	}
	if(b==c)
	{
		flag=1;
	}
	if(a==c)
	{
		flag=1;
	}
	if(a==b&&b==c)
	{
		flag=0;
	}
	if(flag==0)
	{
		printf("No");
	}
	else
	{
		printf("Yes");
	}
 } 

Compiler output:
a.cc:5:1: error: expected initializer before 'using'
    5 | using namespace std;
      | ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected ';' before ':' token
   10 |   else if (c==a&&a!=b) ans="Yes":
      |                                 ^
      |                                 ;
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);


int g[15][15];
const int INF = 1001001001;
const int di[] = { -1,0,1,0 };
const int dj[] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:43:9: error: 'else' without a previous 'if'
   43 |         else puts("No");
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <iostream>
#include <vector>
#include <algorithm>
int main() {
	
	int a, b, c;
	cin >> a >> b >> c;

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


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

/*
    author: Salam_35
    Created at :

*/

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

#define ll long long int
#define pb push_back
#define sc(n) scanf("%d",&n)
#define Max 100005
#define scan(n) scanf("%lld",&n)
#define pi acos(-1.0)
#define _fastio  ios_base:: sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ALL(x) x.begin(),x.end()
#define sci(n) scanf("%d",&n);
#define scl(n) scanf("%lld",&n);
#define load(array,size)  for(ll i=0 ; i<size ; i++) cin>>array[i] ;
#define load1(array,size)  for(ll i=1 ; i<=size ; i++) cin>>array[i] ;
#define INF	1LL<<19
#define pll pair<ll,ll>
#define mst(arr,value) memset(arr,value,sizeof(arr));
#define tst() int t;cin >> t;while(t--)


const ll MOD = 1e9+7;

typedef vector<ll>vec;
typedef pair<ll,ll> pii;
typedef map<ll,ll>mpll;
typedef set<ll>seet;

int main()
{
    set<int>a;
  int m,n,b;
  cin >> m >> n >> b;
  s.insert(m);
  s.insert(n);
  s.insert(b);
  if(s.size()==2)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:40:3: error: 's' was not declared in this scope
   40 |   s.insert(m);
      |   ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
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>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<"No";
      |     ^~~~
      |     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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '<<' token
    8 |   else << "Yes";
      |        ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before ')' token
   10 |   else(){
      |        ^
Language: C++

#include <iostream>
using namespaces std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
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 >> 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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define E "\n"

using namespace std;
const long long MOD = (long long)1e9 + 7;

int a, b, c;
set<int> st;

int main()
{
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cin >> a >> b >> c;
    st.insert(a);
    st.insert<b);
    st.insert(c);
    if (st.size() == 2) cout << "Yes" << E;
    else cout << "No" << E;
    //system("pause");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: parse error in template argument list
   19 |     st.insert<b);
      |        ^~~~~~~~
a.cc:19:16: error: expected ';' before ')' token
   19 |     st.insert<b);
      |                ^
      |                ;
a.cc:19:8: error: statement cannot resolve address of overloaded function
   19 |     st.insert<b);
      |     ~~~^~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"No";
      |     ^~~~
      |     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<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<queue>
#include<map>
#include<vector>
#include<functional>
#include <random>
#include<iostream>
#include<iomanip>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: 'Yes' was not declared in this scope
   22 |                 cout << Yes;
      |                         ^~~
a.cc:25:25: error: 'No' was not declared in this scope
   25 |                 cout << No;
      |                         ^~
Language: C++


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

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());
		}
		if (set.size() == 2) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}




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



    int a[3];

    cin>>a[0]>>a[1]>>a[2];

    sort(a,a+3);

    if(a[0]==a[1] and a[0]!=a[2])
        cout<<"YES";
    else
        cout<<"NO";
}


Compiler output:
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin>>a[0]>>a[1]>>a[2];
      |     ^~~
a.cc:7:9: error: expected constructor, destructor, or type conversion before '(' token
    7 |     sort(a,a+3);
      |         ^
a.cc:9:5: error: expected unqualified-id before 'if'
    9 |     if(a[0]==a[1] and a[0]!=a[2])
      |     ^~
a.cc:11:5: error: expected unqualified-id before 'else'
   11 |     else
      |     ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: Java

public class Main {
	
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		if(a==b || a==c || b==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 Main
Main.java:4: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std; 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+2);
	if(a[0]==a[2])
	{
		printf("NO");
		return 0;
	}
	if(a[0]==a[1])
	{
		printf("YES");
		return 0;
	}
	if(a[1]==a[2])
	{
		printf("YES");
		return 0;
	}
	printf("NO");
	return 0;
}

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

a,b,c = map(int,input().split())
ans = set([a,b,c])
if len(ans) == 2:
	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++

#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#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 ;
    return 0;  
    }
    else if(a == b || b == c || c == a){
        cout << "Yes" << endl ;
        return 0;
    }
        cout << "No" << endl ;
    return 0;
}

Compiler output:
a.cc:4:18: error: expected unqualified-id before ')' token
    4 | #define all(x) (x).begin(),(x).end()
      |                  ^