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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<char> vchar;
typedef vector<vector<char>> vvchar;
typedef vector<int> vint;
typedef vector<vector<int>> vvint;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef priority_queue<long long> prque;
#define ain(i,n,a) for(long long i=0;i<(long long)(n);i++){cin>>a[i];}
#define aout(i,n,a) for(long long i=0;i<(long long)(n);i++){if(i){cout<<" ";}cout<<a[i];if(i==n-1){cout<<endl;}}
#define rep(i,n) for(long long i=0;i<(long long)(n);i++)
#define vsort(v) sort((v).begin(),(v).end())
#define vrsort(v) sort((v).rbegin(),(v).rend())
#define vreverse(v) reverse((v).begin(),(v).end())
#define pf(a) push_front(a)
#define pb(a) push_back(a)
#define INF 1998021900
#define MOD 1000000007
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  //input
  vll j(3);cin>>j[0]>>j[1]>>j[2];sort(j);
  if((j[0]==j[1])&&(j[1]!=j[2])){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
  //caricurate
  //output
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:38: error: no matching function for call to 'sort(vll&)'
   25 |   vll j(3);cin>>j[0]>>j[1]>>j[2];sort(j);
      |                                  ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C

#include <stdio.h> 
void FUNC (char A, char B,char C)
{
  if ((A ==B)||(A ==C)||(C ==B))
  {
      if((A!=B)||(B!=C))
      {
          printf("YES");
      }
      else
      {
          printf("NO");
       }
  }
  else
 {
    printf("NO"); // All are not equal
  }
} 

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

void FUNC (char A, char B,char C)
{
  if ((A ==B)||(A ==C)||(C ==B))
  {
      if((A!=B)||(B!=C))
      {
          printf("YES");
      }
      else
      {
          printf("NO");
       }
  }
  else
 {
    printf("NO"); // All are not equal
  }
} 

Compiler output:
main.c: In function 'FUNC':
main.c:7:11: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |           printf("YES");
      |           ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void FUNC (char A, char B,char C)
main.c:7:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |           printf("YES");
      |           ^~~~~~
main.c:7:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |           printf("NO");
      |           ^~~~~~
main.c:11:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("NO"); // All are not equal
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
{
     if ( (1st_num == 2nd_num) && (1st_num == 3rd_num) ) 
     {
         printf("NO"); // All are equal
     }
     else
     {
         printf("YES"); // Only two of them are equal
     }
}
else
{
   printf("NO");// All are not equal
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'if'
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      | ^~
main.c:1:7: error: invalid suffix "st_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |       ^~~~~~~
main.c:1:18: error: invalid suffix "nd_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |                  ^~~~~~~
main.c:1:31: error: invalid suffix "st_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |                               ^~~~~~~
main.c:1:42: error: invalid suffix "rd_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |                                          ^~~~~~~
main.c:1:56: error: invalid suffix "nd_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |                                                        ^~~~~~~
main.c:1:67: error: invalid suffix "rd_num" on integer constant
    1 | if ( (1st_num == 2nd_num) || (1st_num == 3rd_num) || ( 2nd_num == 3rd_num ) )
      |                                                                   ^~~~~~~
main.c:3:12: error: invalid suffix "st_num" on integer constant
    3 |      if ( (1st_num == 2nd_num) && (1st_num == 3rd_num) )
      |            ^~~~~~~
main.c:3:23: error: invalid suffix "nd_num" on integer constant
    3 |      if ( (1st_num == 2nd_num) && (1st_num == 3rd_num) )
      |                       ^~~~~~~
main.c:3:36: error: invalid suffix "st_num" on integer constant
    3 |      if ( (1st_num == 2nd_num) && (1st_num == 3rd_num) )
      |                                    ^~~~~~~
main.c:3:47: error: invalid suffix "rd_num" on integer constant
    3 |      if ( (1st_num == 2nd_num) && (1st_num == 3rd_num) )
      |                                               ^~~~~~~
main.c:12:1: error: expected identifier or '(' before 'else'
   12 | else
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define DEBUG 0
#define nl          '\n'
#define fori(n)			for(int i = 0; i < n; ++i) 
#define forj(n)			for(int j = 0; j < n; ++j)
#define fork(n)			for(int k = 0; k < n; ++k)
#define forl(n)			for(int l = 0; l < n; ++l)
#define pq priority_queue
#define umap unordered_map
#define uset unordered_set
#define ppb push_back
typedef long long ll;typedef pair<int,int> pii;typedef vector<bool> vbool;
typedef vector<int> vint;typedef vector<ll> vll;typedef long double ld;
typedef vector<vector<int>> vvi; typedef vector<vbool> vvb;

const ll N = 100010;
const ll INF = 0x3f3f3f3f;
const ll MOD = 1e9 + 7;

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int a[3];
	fori(3) cin >> a[i].
	sort(a, a+3);
	if (a[0] == a[1] && a[1] != a[2] || a[1] == a[2] && a[0] != a[1]) 
		cout << "Yes" << nl;
	else 
		cout << "No" << nl;
	
	#if DEBUG
	cerr << "Time: " << (ld)clock() / CLOCKS_PER_SEC << " s" << nl;
	#endif
	return 0;
}


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

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

typedef long long ll;
#define SZ(a) (int)a.size()
#define PB push_back
//#define cerr if(false)cerr
#define print(x) cerr<<"\n" << (#x) << " is " << (x) << endl;



int32_t main(){
	int arr[3];
	for(int i=0; i<3; i++) 
		cin >> arr[i];
	sort(arr, arr+3);
	int dist = 0;
	prev = -1;
	for(int i=1; i<3; i++)
		if(arr[i] != arr[i-1])
			dist++;
	if(dist == 1)
		cout << "YES" << endl;
	else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:18:17: error: overloaded function with no contextual type information
   18 |         prev = -1;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};

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

	vi r(3);
	rep(i,3){cin >> r.at(i)}
	if(r.at(0)==r.at(1) && r.at(0)!=r.at(2)){Yes}
  if(r.at(1)==r.at(2) && r.at(0)!=r.at(1)){Yes}
  if(r.at(0)==r.at(2) && r.at(0)!=r.at(1)){Yes}
	No
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:32: error: expected ';' before '}' token
   51 |         rep(i,3){cin >> r.at(i)}
      |                                ^
      |                                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};

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

	vi r(3);
	rep(i,3){cin >> r.at(i)}
	rep(i,3){repk(j,i+1,3){if(r.at(i)==r.at(j)){Yes}}}
	No
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:32: error: expected ';' before '}' token
   51 |         rep(i,3){cin >> r.at(i)}
      |                                ^
      |                                ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#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)
    {
        /* code */
        cout<<"No"<<endl;
    }
    else if(a==b&&b==c){
        cout<<"No"<<endl;

    }
    else
    {
        cout<<"Yes"<<endl;
    }
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:21:6: error: expected '}' at end of input
   21 |     }
      |      ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
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 ){
        if(!(a == b && b == c){
            printf("Yes");
        }else{
            printf("No");
        }
    }else{
        printf("No");
    }
}

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ')' before '{' token
    9 |         if(!(a == b && b == c){
      |           ~                   ^
      |                               )
main.c:14:5: error: expected expression before '}' token
   14 |     }else{
      |     ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define sync ios_base::sync_with_stdio(NULL);cin.tie(0);cout.tie(0);
using namespace std;
const int N = 1e5 * 2 + 1;
const int inf = 1e9 + 7;
const int MOD = 1e9 + 7;
const int P = 1e5 + 3;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
int bpow(int x, int n) {
    if (n == 0) return 1;
    if (n % 2 == 0) {
        int k = bpow(x, n / 2);
        return k * k % MOD;
    }
    return bpow(x, n - 1) * x % MOD;
}
int C(int n, int k) {
    int f = 1;
    for (int i = n; i > n - k; i--) {
        f *= i;
        f %= MOD;
    }
    int fk = 1;
    for (int i = 1; i <= k; i++) {
        fk *= i;
        fk %= MOD;
    }
    f = (f * bpow(fk, MOD - 2)) % MOD;
    return f;
}
int f[N], b[N];
signed main() {
    sync;
#ifdef varex
    freopen("test.in", "r", stdin);
    // freopen("test.out", "w", stdout);
#endif
    int a, b, c;
    cin >> a >> b >> c;
    if (a == b && b == c) return cout << "No", 0;
    if (a == b || b == c || a == c) return cout << "Yes\n";
    cout << "No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:49: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   42 |     if (a == b || b == c || a == c) return cout << "Yes\n";
      |                                            ~~~~~^~~~~~~~~~
      |                                                 |
      |                                                 std::basic_ostream<char>
Language: C++

#include<iostream>
#include<math.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected '(' before 'else'
   11 |         if else(A==C){
      |            ^~~~
      |            (
a.cc:14:12: error: expected '(' before 'else'
   14 |         if else(B==C){
      |            ^~~~
      |            (
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else {
      |         ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected '(' before 'else'
   10 |   if else( A !=B && A != C && B != C){
      |      ^~~~
      |      (
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else{
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans=false;
      |   ^~~
      |   abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'retrun' was not declared in this scope
   27 |   retrun 0;
      |   ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'retrun' was not declared in this scope
   27 |   retrun 0;
      |   ^~~~~~
Language: C++

#include <iostream>

int main() {

int a,b,c;
int n = 0;
cin >> a >> b >> c;
if (a==b)
n++;
if (a==c)
n++;
if (b==c)
n++;
if(n == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | 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:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | 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:15:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 | 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:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | 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:17:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | cout << "No" << endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.io.*;
import java.util.*;
public class Main{
public static void main(String[]args) throws IOException{
BufferedReader cin = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(cin.readLine());
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
int c = Integer.parseInt(st.nextToken());
boolean ret = false
if(a == b)
if(b==c) ret = false;
else ret = true;
if(b==c) 
if(a==b) ret = false;
else ret = true;
if(a==c)
if(a==b) ret = false;
else ret = true;
if(ret) System.out.println("Yes.");
else System.out.println("No.")
}
}

Compiler output:
Main.java:10: error: ';' expected
boolean ret = false
                   ^
Main.java:21: error: ';' expected
else System.out.println("No.")
                              ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl 	"\n"

typedef vector< ll > 	vi;
typedef vector< vi > 	vvi;
typedef pair< ll,ll > 	ii;
#define pb 		push_back
#define all(c) 		(c).begin(),(c).end()
#define tr(c,i) 	for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)
#define present(c,x) 	((c).find(x) != (c).end())

#define MOD 	1000000007
#define INF 	(int)1e9
#define MEM(a, b) memset(a, (b), sizeof(a))

int main()
{	 ios_base::sync_with_stdio(false);
	 cin.tie(NULL);
	

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: 'n' was not declared in this scope
   27 |         sort(a,a+n);
      |                  ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
   10 |     count << "No" << endl;
      |     ~~~~~~^~~~~~~
Language: C++

#include <unistd.h>

int main(int argc, char *args[])
{
    int i = 0;
    int j = 0;

    while (i != 4)
    {
        if (strcmp(args[i],args[i+1]) == 0)
        {
            j++;
        }
        i++;
    }

    if (j == 1)
        printf("Yes");
    else
    {
        printf("No");
    }
 
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:10:13: error: 'strcmp' was not declared in this scope
   10 |         if (strcmp(args[i],args[i+1]) == 0)
      |             ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <unistd.h>
  +++ |+#include <cstring>
    2 | 
a.cc:18:9: error: 'printf' was not declared in this scope
   18 |         printf("Yes");
      |         ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <unistd.h>
  +++ |+#include <cstdio>
    2 | 
a.cc:21:9: error: 'printf' was not declared in this scope
   21 |         printf("No");
      |         ^~~~~~
a.cc:21:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

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

#include <iostream>

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

    std::string ans = "No";
    if((a == b && a != c)|| (b == c && b != a)|| (c == a && c != b){
        ans = "Yes";
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:68: error: expected ';' before '{' token
    8 |     if((a == b && a != c)|| (b == c && b != a)|| (c == a && c != b){
      |                                                                    ^
      |                                                                    ;
a.cc:12:34: error: expected ')' before ';' token
   12 |     std::cout << ans << std::endl;
      |                                  ^
      |                                  )
a.cc:8:7: note: to match this '('
    8 |     if((a == b && a != c)|| (b == c && b != a)|| (c == a && c != b){
      |       ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define bigger (char)toupper
#define smaller (char)tolower
using namespace std;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef long long ll;
typedef unsigned long long ull;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: 'asnwer' was not declared in this scope; did you mean 'answer'?
   20 |   if(asnwer) cout<<"Yes"<<endl;
      |      ^~~~~~
      |      answer
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define bigger (char)toupper
#define smaller (char)tolower
using namespace std;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef long long ll;
typedef unsigned long long ull;

int main() {
  int A,B,C;
  cin>>A>>B>>C;
  bool answer=true;
  if(A==B==C) answer=false;
  else if(A!=B&&B!=C&&C!=A) answer=false;
  if(asnwer) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: 'asnwer' was not declared in this scope; did you mean 'answer'?
   20 |   if(asnwer) cout<<"Yes"<<endl;
      |      ^~~~~~
      |      answer
a.cc:21:25: error: expected '}' at end of input
   21 |   else cout<<"No"<<endl;
      |                         ^
a.cc:14:12: note: to match this '{'
   14 | int main() {
      |            ^
Language: C++

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

int main()
{
  int n;
  cin>>n;
  int a,count=0,nEven=0;
  for(int i=0;i<n;i++)
  {
    cin>>a;
    if(a%2==0)
    {
      count++;
      if(a%3==0 || a%5==0)
        nEven++;
    }
  }
 
  if(count==nEven)
    cout<<"APPROVED\n";
  else
    cout<<"DENIED\n";
  
  return 0;
}
#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;

int main() {
  int N;
  string tmp;
  cin >> N;
  map<string, int> mp;
  
  for(int i=0; i<N; i++) {
    cin >> tmp;
    //if(mp[tmp]==0) mp[tmp] = 1;
    //else mp[tmp]++;
    mp[tmp]++;
  }
  
  /*for(auto itr = mp.begin(); itr != mp.end(); ++itr) {
    cout << "key = " << itr->first                // キーを表示
         << ", val = " << itr->second << "\n";    // 値を表示
  }*/
  
  //cout << ((judge==1) ? "APPROVED" : "DENIED") << endl;
  
  int max = 0;
  vector<string> list;
  for(auto itr=mp.begin(); itr!=mp.end(); ++itr) {
    if(itr->second == max) {
      list.push_back(itr->first);
    } else if(itr->second > max) {
      max = itr->second;
      list.erase(list.begin(), list.end());
      list.push_back(itr->first);
    }
  }
  
  for(int i=0; i<list.size(); ++i) {
    cout << list[i] << " " << endl; 
  }
  
  return 0;
}


Compiler output:
a.cc:16:5: error: redefinition of 'int main()'
   16 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc:45:5: error: redefinition of 'int main()'
   45 | int main() {
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

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

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

import java.util.*;

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

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

#include <iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<map>
#include<limits>
//include<bits/stdc++.h>
using namespace std;
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	if ((A==B==C)||(A!=B!=C))
    {
		cout << "No" << endl;
	}
	else
		cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'A' was not declared in this scope
   14 |         if ((A==B==C)||(A!=B!=C))
      |              ^
a.cc:14:17: error: 'B' was not declared in this scope
   14 |         if ((A==B==C)||(A!=B!=C))
      |                 ^
a.cc:14:20: error: 'C' was not declared in this scope
   14 |         if ((A==B==C)||(A!=B!=C))
      |                    ^
Language: Java

import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
	public static void main(String[] args) {
		FastScanner sc = new FastScanner(System.in);
		PrintWriter pw = new PrintWriter(System.out);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		
		if(((a == b)&&(a != c))||((a == c)&&(b != c))||((c == b)&&(a != c))){
			pw.print("Yes");
		}else {
			pw.print("No");
		}
		pw.close();
	}
	
	static  class FastScanner {
		private BufferedReader reader = null;
	    private StringTokenizer tokenizer = null;
	    public FastScanner(InputStream in) {
	        reader = new BufferedReader(new InputStreamReader(in));
	        tokenizer = null;
	    }

	    public String next() {
	        if (tokenizer == null || !tokenizer.hasMoreTokens()) {
	            try {
	                tokenizer = new StringTokenizer(reader.readLine());
	            } catch (IOException e) {
	                throw new RuntimeException(e);
	            }
	        }
	        return tokenizer.nextToken();
	    }

	    public String nextLine() {
	        if (tokenizer == null || !tokenizer.hasMoreTokens()) {
	            try {
	                return reader.readLine();
	            } catch (IOException e) {
	                throw new RuntimeException(e);
	            }
	        }

	        return tokenizer.nextToken("\n");
	    }

	    public long nextLong() {
	        return Long.parseLong(next());
	    }

	    public int nextInt() {
	        return Integer.parseInt(next());
	    }

	    public double nextDouble() {
	         return Double.parseDouble(next());
	     }

	    public int[] nextIntArray(int n) {
	        int[] a = new int[n];
	        for (int i = 0; i < n; i++)
	            a[i] = nextInt();
	        return a;
	    }

	    public long[] nextLongArray(int n) {
	        long[] a = new long[n];
	        for (int i = 0; i < n; i++)
	            a[i] = nextLong();
	        return a;
	    }
	}

}

Compiler output:
Main.java:18: error: cannot find symbol
		private BufferedReader reader = null;
		        ^
  symbol:   class BufferedReader
  location: class FastScanner
Main.java:20: error: cannot find symbol
	    public FastScanner(InputStream in) {
	                       ^
  symbol:   class InputStream
  location: class FastScanner
Main.java:21: error: cannot find symbol
	        reader = new BufferedReader(new InputStreamReader(in));
	                     ^
  symbol:   class BufferedReader
  location: class FastScanner
Main.java:21: error: cannot find symbol
	        reader = new BufferedReader(new InputStreamReader(in));
	                                        ^
  symbol:   class InputStreamReader
  location: class FastScanner
Main.java:29: error: cannot find symbol
	            } catch (IOException e) {
	                     ^
  symbol:   class IOException
  location: class FastScanner
Main.java:40: error: cannot find symbol
	            } catch (IOException e) {
	                     ^
  symbol:   class IOException
  location: class FastScanner
6 errors
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: C++

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

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:3: error: 'cin' was not declared in this scope
    2 |   cin >> a >> b >> c;
      |   ^~~
a.cc:2:10: error: 'a' was not declared in this scope
    2 |   cin >> a >> b >> c;
      |          ^
a.cc:2:15: error: 'b' was not declared in this scope
    2 |   cin >> a >> b >> c;
      |               ^
a.cc:2:20: error: 'c' was not declared in this scope
    2 |   cin >> a >> b >> c;
      |                    ^
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:4:22: error: 'endl' was not declared in this scope
    4 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "No" << endl;
      |     ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |     cout << "No" << endl;
      |                     ^~~~
Language: C

#include <stdio.h>

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    5 |     inta,b,c;
      |     ^~~~
      |     int
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:10: error: 'b' undeclared (first use in this function)
    5 |     inta,b,c;
      |          ^
main.c:5:12: error: 'c' undeclared (first use in this function)
    5 |     inta,b,c;
      |            ^
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d%d%d",&a,&b,&c);
      |                     ^
Language: C

#include <stdio.h>

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: lvalue required as left operand of assignment
    8 |     if((a==b && a=!c) || (b==c && a=!c )|| (c==a && c=!b))
      |                  ^
main.c:8:36: error: lvalue required as left operand of assignment
    8 |     if((a==b && a=!c) || (b==c && a=!c )|| (c==a && c=!b))
      |                                    ^
main.c:8:54: error: lvalue required as left operand of assignment
    8 |     if((a==b && a=!c) || (b==c && a=!c )|| (c==a && c=!b))
      |                                                      ^
Language: C

#include <stdio.h>

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    5 |     inta,b,c;
      |     ^~~~
      |     int
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:10: error: 'b' undeclared (first use in this function)
    5 |     inta,b,c;
      |          ^
main.c:5:12: error: 'c' undeclared (first use in this function)
    5 |     inta,b,c;
      |            ^
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d%d%d",&a,&b,&c);
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)  for(long long i=0;i<(long long)(n);i++)
#define REP(i,k,n) for(long long i=k;i<(long long)(n);i++)
#define all(a) a.begin(),a.end()
#define pb push_back
#define eb emplace_back
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
#define ub(v,k) (upper_bound(all(v),k)-v.begin())
#define fi first
#define se second
#define pi M_PI
typedef long long ll;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> PP;
typedef multiset<ll> S;
typedef priority_queue<ll> PQ;
typedef priority_queue<P,vector<P>,greater<P>> SPQ;
using vi=vector<ll>;
using vvi=vector<vi>;
using vvvi=vector<vvi>;
const ll inf=1001001001001001;
const int INF=1001001001;
const int mod=1000000007;
template<class T> bool chmin(T&a,T b){if(a>b){a=b;return true;}return false;}
template<class T> bool chmax(T&a,T b){if(a<b){a=b;return true;}return false;}
template<class T> void out(T a){cout<<a<<endl;}
template<class T> void outp(T a){cout<<'('<<a.fi<<','<<a.se<<')'<<endl;}
template<class T> void outvp(T v){rep(i,v.size())outp(v[i]);}
template<class T> void outv(T v){rep(i,v.size()){if(i)cout<<' ';cout<<v[i];}cout<<endl;}
template<class T> void outvv(T v){rep(i,v.size()){rep(j,v[i].size()){if(j)cout<<' ';cout<<v[i][j];}cout<<endl;}}
ll gcd(ll a,ll b){
    if(b==0)return a;
    return gcd(b,a%b);
}
ll modpow(ll a,ll b){
    a%=mod;
    if(b==0)return 1;
    if(b&1)return a*modpow(a,b-1)%mod;
    ll k=modpow(a,b/2);
    return k*k%mod;
}
int main(){
    bool b=false;
    if(a==b&&b!=c)b=true;
    if(a==c&&b!=c)b=true;
    if(c==b&&a!=c)b=true;
    if(b)out("Yes");
    else out("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:8: error: 'a' was not declared in this scope
   45 |     if(a==b&&b!=c)b=true;
      |        ^
a.cc:45:17: error: 'c' was not declared in this scope
   45 |     if(a==b&&b!=c)b=true;
      |                 ^
a.cc:46:8: error: 'a' was not declared in this scope
   46 |     if(a==c&&b!=c)b=true;
      |        ^
a.cc:46:11: error: 'c' was not declared in this scope
   46 |     if(a==c&&b!=c)b=true;
      |           ^
a.cc:47:8: error: 'c' was not declared in this scope
   47 |     if(c==b&&a!=c)b=true;
      |        ^
a.cc:47:14: error: 'a' was not declared in this scope
   47 |     if(c==b&&a!=c)b=true;
      |              ^
Language: C++

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

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

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
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)==1)printf("Yes")
     else printf("No");
 
      return 0;
 }              

Compiler output:
main.c: In function 'main':
main.c:5:46: error: expected ';' before 'else'
    5 |      if((a==b)+(b==c)+(c==a)==1)printf("Yes")
      |                                              ^
      |                                              ;
    6 |      else printf("No");
      |      ~~~~
Language: C++

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




Compiler output:
a.cc:6:80: error: extended character “ is not valid in an identifier
    6 | if ((a == b and a != c) or (b == c and b != a) or (a == c and b != a)) cout << “Yes\n”;
      |                                                                                ^
a.cc:6:84: error: stray '\' in program
    6 | if ((a == b and a != c) or (b == c and b != a) or (a == c and b != a)) cout << “Yes\n”;
      |                                                                                    ^
a.cc:6:85: error: extended character ” is not valid in an identifier
    6 | if ((a == b and a != c) or (b == c and b != a) or (a == c and b != a)) cout << “Yes\n”;
      |                                                                                     ^
a.cc:7:14: error: extended character “ is not valid in an identifier
    7 | else cout << “No\n”;
      |              ^
a.cc:7:17: error: stray '\' in program
    7 | else cout << “No\n”;
      |                 ^
a.cc:7:18: error: extended character ” is not valid in an identifier
    7 | else cout << “No\n”;
      |                  ^
a.cc: In function 'int main()':
a.cc:6:80: error: '\U0000201cYes' was not declared in this scope
    6 | if ((a == b and a != c) or (b == c and b != a) or (a == c and b != a)) cout << “Yes\n”;
      |                                                                                ^~~~
a.cc:7:14: error: '\U0000201cNo' was not declared in this scope
    7 | else cout << “No\n”;
      |              ^~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int l, a[3];

    int i = 0;
    while (cin >> l) {
        a[i] = l;
        i++;
    }
    
    bool flag = false;
    
    if (a[0] == a[1] && a[0] != a[2]) {
        flag = true;
    } else if (a[0] == a[2] && a[0] != a[1]) {
        flag = true;
    }else if (a[1] == a[2] && a[0] != a[1]) {
        flag = true;
    }
    
    if (flag == false) {
        cout << "No"
    } else {
        cout << "Yes"
    }
    
    

    // for (i = 0; i < 3; i++) {
    //     cout << a[i];
    // }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:21: error: expected ';' before '}' token
   25 |         cout << "No"
      |                     ^
      |                     ;
   26 |     } else {
      |     ~                
a.cc:27:22: error: expected ';' before '}' token
   27 |         cout << "Yes"
      |                      ^
      |                      ;
   28 |     }
      |     ~
Language: Java

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

Compiler output:
Main.java:8: error: incomparable types: boolean and int
    if(a==b==c){System.out.println("No");}
           ^
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){
      System.out.println( " Yes " );}
    else{
      if(b=c){
      System.out.println( " Yes " );}
         else{
           if(c=a){
           System.out.println( " Yes " );}
              else{
                System.out.println( " No " );}
         }
    }
  }
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
    if(a=b){
        ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
      if(b=c){
          ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
           if(c=a){
               ^
3 errors
Language: Java

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

Compiler output:
Main.java:10: error: illegal start of expression
    else(if(b=c){
         ^
Main.java:10: error: not a statement
    else(if(b=c){
        ^
Main.java:12: error: illegal start of expression
         else(if(c=a){
              ^
Main.java:12: error: not a statement
         else(if(c=a){
             ^
Main.java:16: error: illegal start of expression
              )
              ^
5 errors
Language: Java

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

Compiler output:
Main.java:8: error: ')' expected
    if(a=b;){
          ^
Main.java:8: error: illegal start of expression
    if(a=b;){
           ^
Main.java:10: error: illegal start of expression
    else(if(b=c;){
         ^
Main.java:10: error: not a statement
    else(if(b=c;){
        ^
Main.java:10: error: 'else' without 'if'
    else(if(b=c;){
    ^
Main.java:10: error: ')' expected
    else(if(b=c;){
               ^
Main.java:10: error: illegal start of expression
    else(if(b=c;){
                ^
Main.java:12: error: illegal start of expression
         else(if(c=a;){
              ^
Main.java:12: error: not a statement
         else(if(c=a;){
             ^
Main.java:12: error: 'else' without 'if'
         else(if(c=a;){
         ^
Main.java:12: error: ')' expected
         else(if(c=a;){
                    ^
Main.java:12: error: illegal start of expression
         else(if(c=a;){
                     ^
Main.java:14: error: 'else' without 'if'
              else{
              ^
Main.java:16: error: illegal start of expression
              )
              ^
14 errors
Language: C

#include<stdio.h>

void main (void){
  int A,B,C;
  scanf("%d,%d,%d",&A,&B,&C);
  if(A!=B && A!=C || A==C && A+==B)
    printf("No");
  else
    printf("Yes");
}


Compiler output:
main.c: In function 'main':
main.c:6:33: error: expected expression before '=' token
    6 |   if(A!=B && A!=C || A==C && A+==B)
      |                                 ^
Language: C

#include<stdio.h>

void main (void){
  int A,B,C;
  scanf("%d,%d,%d",A,B,C);
  if(A!=B && A!=C || A==C && A+==B)
    printf("No");
  else
    printf("Yes");
}

Compiler output:
main.c: In function 'main':
main.c:6:33: error: expected expression before '=' token
    6 |   if(A!=B && A!=C || A==C && A+==B)
      |                                 ^