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

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

int main(){
  
  int x,y,z;
  cin >> x >> y >> z;

  if( x == y && !(x == z) ) {
    
    cout << "Yes" << endl;
    
  }
     
  else if( y == z && !(x == z) ){
    
    cout << "Yes" << endl;
    
  }
     
   else if(  ( x == z && !(x == y) ){
    
    cout << "Yes" << endl;
    
  }
  else{
    
    cout << "No"<< endl;
    
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:37: error: expected ')' before '{' token
   21 |    else if(  ( x == z && !(x == y) ){
      |           ~                         ^
      |                                     )
a.cc:32:1: error: expected primary-expression before '}' token
   32 | }
      | ^
Language: C++

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

int main(){
  
  int x,y,z;
  cin >> x >> y >> z;

  if( ( x == y && !(x == z) ) {
    
    cout << "Yes" << endl;
    
  }
     
  else if( y == z && !(x == z) ){
    
    cout << "Yes" << endl;
    
  }
     
   else if(  ( x == z && !(x == y) ){
    
    cout << "Yes" << endl;
    
  }
  else{
    
    cout << "No"<< endl;
    
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ')' before '{' token
    9 |   if( ( x == y && !(x == z) ) {
      |     ~                        ^~
      |                              )
a.cc:32:1: error: expected primary-expression before '}' token
   32 | }
      | ^
Language: C++

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

int main(){
  
  int x,y,z;
  cin >> x >> y >> z;

  if( ( x == y && !(x == z) ) || ( y == z && !(x == z) ) ||( ( x == z && !(x == y) ) ){
    
    cout << "Yes" << endl;
    
  }
  
  else{
    
    cout << "No"<< endl;
    
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:87: error: expected ')' before '{' token
    9 |   if( ( x == y && !(x == z) ) || ( y == z && !(x == z) ) ||( ( x == z && !(x == y) ) ){
      |     ~                                                                                 ^
      |                                                                                       )
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C++


    int main (){
     //   ios_base::sync_with_stdio(0); cin.tie(0);
        freopen("a.txt", "r", stdin);

        int a,b,c;

        cin>>a>>b>>c;
      //  cout <<a<<b<<c;
        string ans = "No";
        if (a==b && a != c) ans = "Yes";
        if (a==c && a != b) ans = "Yes";
        if (c==b && a != c) ans =  "Yes";

        cout <<ans<< endl;
        return 0;

    }



Compiler output:
a.cc: In function 'int main()':
a.cc:4:31: error: 'stdin' was not declared in this scope
    4 |         freopen("a.txt", "r", stdin);
      |                               ^~~~~
a.cc:1:1: note: 'stdin' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:4:9: error: 'freopen' was not declared in this scope
    4 |         freopen("a.txt", "r", stdin);
      |         ^~~~~~~
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>a>>b>>c;
      |         ^~~
a.cc:10:9: error: 'string' was not declared in this scope
   10 |         string ans = "No";
      |         ^~~~~~
a.cc:11:29: error: 'ans' was not declared in this scope
   11 |         if (a==b && a != c) ans = "Yes";
      |                             ^~~
a.cc:12:29: error: 'ans' was not declared in this scope
   12 |         if (a==c && a != b) ans = "Yes";
      |                             ^~~
a.cc:13:29: error: 'ans' was not declared in this scope
   13 |         if (c==b && a != c) ans =  "Yes";
      |                             ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout <<ans<< endl;
      |         ^~~~
a.cc:15:16: error: 'ans' was not declared in this scope
   15 |         cout <<ans<< endl;
      |                ^~~
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |         cout <<ans<< endl;
      |                      ^~~~
Language: C++

   int main (){
        ios_base::sync_with_stdio(0); cin.tie(0);
     //   freopen("a.txt", "r", stdin);

        int a,b,c;
        cin>>a>>b>>c;
        string ans = "No";
        if(a==b && a != c) ans = "Yes";
        if(a==c && a != b) ans = "Yes";
        if(c==b && a != c) ans =  "Yes";

        cout <<ans<< endl;
        return 0;

    }



Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'ios_base' has not been declared
    2 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |         ^~~~~~~~
a.cc:2:39: error: 'cin' was not declared in this scope
    2 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |                                       ^~~
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string ans = "No";
      |         ^~~~~~
a.cc:8:28: error: 'ans' was not declared in this scope
    8 |         if(a==b && a != c) ans = "Yes";
      |                            ^~~
a.cc:9:28: error: 'ans' was not declared in this scope
    9 |         if(a==c && a != b) ans = "Yes";
      |                            ^~~
a.cc:10:28: error: 'ans' was not declared in this scope
   10 |         if(c==b && a != c) ans =  "Yes";
      |                            ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout <<ans<< endl;
      |         ^~~~
a.cc:12:16: error: 'ans' was not declared in this scope
   12 |         cout <<ans<< endl;
      |                ^~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |         cout <<ans<< endl;
      |                      ^~~~
Language: C++

    int main (){
        ios_base::sync_with_stdio(0); cin.tie(0);
     //   freopen("a.txt", "r", stdin);

        int a,b,c;
        cin>>a>>b>>c;
        string ans = "No";
        if(a==b && a != c) ans = "Yes";
        if(a==c&& a!= b) ans ="Yes";
        if(c==b && a!=c) ans = "Yes";

        cout <<ans;
        return 0;


    }




Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'ios_base' has not been declared
    2 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |         ^~~~~~~~
a.cc:2:39: error: 'cin' was not declared in this scope
    2 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |                                       ^~~
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string ans = "No";
      |         ^~~~~~
a.cc:8:28: error: 'ans' was not declared in this scope
    8 |         if(a==b && a != c) ans = "Yes";
      |                            ^~~
a.cc:9:26: error: 'ans' was not declared in this scope
    9 |         if(a==c&& a!= b) ans ="Yes";
      |                          ^~~
a.cc:10:26: error: 'ans' was not declared in this scope
   10 |         if(c==b && a!=c) ans = "Yes";
      |                          ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout <<ans;
      |         ^~~~
a.cc:12:16: error: 'ans' was not declared in this scope
   12 |         cout <<ans;
      |                ^~~
Language: Java

package test1;

import java.util.Scanner;
public class Sample3 {
	public static void main(String args[]){
	@SuppressWarnings("resource")
	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("Yes");
	}if(b==c && c!=a){
		System.out.println("Yes");
	}if(c==a && a!=b){
		System.out.println("Yes");
	}else {
		System.out.println("No");
	}
}
}

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

#include <bits/stdc++.h>
using namespace std;
int main (){
    int a,b,c;
    cin>>a>>b>>c;
    set <int> st;
    st.insert(a);
    st.insert(b);
    st.insert(c);
    if(st.size()==2){cout<<"YES"<<endl;}
    else{cout<<"NO"<<endl;}
    return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main (){
    int a,b,c;
    cin>>a>>b>>c;
    set <int> st;
    st.insert(a);
    st.insert(b);
    st.insert(c);
    if(st.size()==2){cout<<"YES"<<endl;}
    else{cout<<"NO"<<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 (){
      |     ^~~~
Language: C

#include <stdio.h>

int main()
{
	int inputA, inputB, inputC;

	scanf("%d %d %d", &inputA, &inputB, &inputC);
	
	// Checks if all numbers have the same value
	if (inputA == inputB && inputB == inputC)
	{
		printf_s("No \n");
        return 0;
	}

	// Checks if inputed numbers are 'poor'
	if (inputA == inputB || inputA == inputC || inputB == inputC)
	{
		printf("Yes \n");
	}
	else
	{
		printf("No \n");
	}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |                 printf_s("No \n");
      |                 ^~~~~~~~
      |                 printf
Language: C

#include <stdio.h>

int main()
{
	int inputA, inputB, inputC;

	scanf("%d %d %d", &inputA, &inputB, &inputC);
	
	// Checks if all numbers have the same value
	if (inputA == inputB && inputB == inputC)
	{
		printf_s("No \n");
        return 0;
	}

	// Checks if inputed numbers are 'poor'
	if (inputA == inputB || inputA == inputC || inputB == inputC)
	{
		printf_s("Yes \n");
	}
	else
	{
		printf_s("No \n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |                 printf_s("No \n");
      |                 ^~~~~~~~
      |                 printf
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
	int n;
  int temp;
  bool can=true;
  cin >> n;
  for (int i-0;i<n;i++)
  {
    cin>>temp;
    if(temp%2==1)
      continue;
    else
    {
      if(temp%3==0||temp%5==0)
        continue;
      else
      {
		can=false;
        break;
      }
    }
  }
  if(can) cout<<"APPROVED";
  else cout<<"DENIED2";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before '-' token
   10 |   for (int i-0;i<n;i++)
      |             ^
      |             ;
a.cc:10:19: error: expected ')' before ';' token
   10 |   for (int i-0;i<n;i++)
      |       ~           ^
      |                   )
a.cc:10:20: error: 'i' was not declared in this scope
   10 |   for (int i-0;i<n;i++)
      |                    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:15: error: expected ';' before '}' token
   12 |   if(a==c){t++}
      |               ^
      |               ;
Language: C++

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

typedef long long ll;
typedef pair<int, int> P;
typedef pair<ll, ll> PL;
#define int ll

const ll MOD = 1000000007;
const ll INF_LL = (ll)1000000007 * 1000000007;
const int INF_INT = (int)1000000007;
const double PI = 3.14159265358979323846;

const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) FOR(i, 0, n)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define irep(itr, st) for (auto itr = (st).begin(); itr != (st).end(); ++itr)
#define irrep(itr, st) for (auto itr = (st).rbegin(); itr != (st).rend(); ++itr)

#define m0(x) memset((x), 0, sizeof((x)))
#define m1(x) memset((x), -1, sizeof((x)))

// xにはvectorなどのコンテナ
#define ALL(x) (x).begin(), (x).end()  // sortなどの引数を省略したい
#define RALL(x) (x).rbegin(), (x).rend()  // sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size())     // sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x))  //最大値を求める
#define MIN(x) *min_element(ALL(x))  //最小値を求める
#define all(x) (x).begin(), (x).end()

//略記
#define pb emplace_back  // vectorヘの挿入
#define mp make_pair     // pairのコンストラクタ
#define F first          // pairの一つ目の要素
#define S second         // pairの二つ目の要素

#define BITCOUNT __builtin_popcount
#define BITCOUNT_LL(x) __builtin_popcountll(x)

#define perm(c)             \
  sort(all(c));             \
  for (bool c##p = 1; c##p; \
       c##p = next_permutation(all(c)))  //順列 123 132 213 231 312 321

#define BIT(n) (1LL << (n))

#ifdef DEBUG
#define PRINT(A) std::cout << (#A) << ": " << (A) << std::endl;
#else
#define PRINT(A)
#endif

//入力高速化
struct IoSetup {
  IoSetup() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} iosetup;

template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}

template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}

signed main() {
  int A,B,C;
  cin >> A >> B >> C;
  bool ok = true;
  if (A == B && B == C && C == A) {
    ok = false;
  }
  if (A != B && B != C && C!== A) {
    ok = false;
  }

  cout << (ok?"Yes":"No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:90:30: error: expected primary-expression before '=' token
   90 |   if (A != B && B != C && C!== A) {
      |                              ^
Language: C++

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

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

//g++ -std=gnu++14 a.cpp

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <iostream>
#include <istream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <tuple>
#include <iomanip>
#include <random>
#include <math.h>
//#include <ostream>

using namespace std;

#define ll long long
#define rep(i, n) for(ll i = 0; i < (n); i++)
ll MOD = 1e9 + 7;
int INF = 1 << 30;
ll INFL = 1LL << 60;

int main(){
  vector<int> num(3);
  rep(i,3)cin >> num[i];
  sort(num.begin(),num.end());
  boo hantei = false;
  if(num[0]==num[1]&&num[1]!=num[2])bool hantei = true;
  if(num[0]!=num[1]&&num[1]==num[2])bool hantei = true;
  if(hantei)cout << "Yes" <<  endl;
  else  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 'boo' was not declared in this scope; did you mean 'bool'?
   34 |   boo hantei = false;
      |   ^~~
      |   bool
a.cc:37:6: error: 'hantei' was not declared in this scope
   37 |   if(hantei)cout << "Yes" <<  endl;
      |      ^~~~~~
Language: C

#include <stdio.h>

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

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

	if (a == b == c) {
		printf("No\n");
	}
	else if (a!=b!=c){
		printf("No\n");
	}
	else {
		print("Yes\n");
	}

	return 0;
}

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

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

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


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

#include "stdafx.h"
#include <bits/stdc++.h>
#define f(i,n) for(int i=0;i<n;i++)
#define P pair<int,int>
#define F first
#define S second
#define int long long
#define mod 1000000007
#define mmod 998244353
#define all(v) v.begin(), v.end()
#define INF LLONG_MAX/3
using namespace std;
int mypow(int fa, int fb, int fc) {
	if (fb == 0)return 1;
	if (fb % 2)return mypow(fa, fb - 1, fc)*fa%fc;
	int z = mypow(fa, fb / 2, fc);
	return z * z%fc;
}
int k(int fa) {
	int x = 0;
	while (fa) {
		x++;
		fa /= 10;
	}
	return x;
}
int gcd(int fa, int fb) {
	if (fb == 0)return fa;
	return gcd(fb, fa%fb);
}
signed main() {
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a + 3);
	if (a[0] == a[1] && a[1] != a[2]) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

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

	printf_s("数値を入力してください\n");
	scanf("%d%d%d", &a, &b, &c);

	if (a == b) {
		if (a == c) //すべて同じ場合
		{
			printf("No\n");
		}
		else //Cのみ違う場合
		{
			printf("Yes\n");
		}
	}
	else if (b == c) //Aのみ違う場合
	{
		printf("Yes\n");
	}
	else if (a == c) //Bのみ違う場合
	{
		printf("Yes\n");
	}
	else //すべて違う場合
	{
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |         printf_s("数値を入力してください\n");
      |         ^~~~~~~~
      |         printf
Language: C++

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
using ll = long long;
using ld = long double;
#define vpl vector<pair<long long,long long>>
#define vl vector<long long>
#define vvl vector<vector<long long>>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++)
using pll = pair<long long,long long>;
#define cY cout<<"Yes"<<endl
#define cN cout<<"No"<<endl
const long long INF = 1LL << 60;
long long MOD = 1000000007;
const long double pi = 3.1415926535897932;
#define pb push_back
#define mp make_pair
#define mt make_tuple
using Grid = vector<vector<char>>;
#define vc vector<char>
//(mod m)でのaの逆元を計算する
//a/b(mod m)=a(mod m)*modinv(b,m)
long long modinv(long long a, long long m) {
    long long b = m, u = 1, v = 0;
    while (b) {
        long long t = a / b;
        a -= t * b; swap(a, b);
        u -= t * v; swap(u, v);
    }
    u %= m;
    if (u < 0) u += m;
    return u;
}

//最大最小の入れ替え
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

//約数列挙
vector<long long> divisor(long long n) {
    vector<long long> ret;
    for (long long i = 1; i * i <= n; i++) {
        if (n % i == 0) {
            ret.push_back(i);
            if (i * i != n) ret.push_back(n / i);
        }
    }
    sort(ret.begin(), ret.end()); // 昇順に並べる
    return ret;
}
//コンビネーション
ll nCr(ll n, ll r) {
    ll ans = 1;
    for (ll i = n; i > n - r; --i) {
        ans = ans*i;
    }
    for (ll i = 1 ; i < r + 1; ++i) {
        ans = ans / i;
    }
    return ans;
}
//素因数分解
map< ll, ll > prime_factor(ll n) {
  map< ll, ll > ret;
  for(ll i = 2; i * i <= n; i++) {
    while(n % i == 0) {
      ret[i]++;
      n /= i;
    }
  }
  if(n != 1) ret[n] = 1;
  return ret;
}

//切り上げの割り算は(a + b - 1) / bでできる

//ここから
int main(){
  ll a,b,c;
  cin>>a>>b>>c;
  m[a]++;
  m[b]++;
  m[c]++;
  if(m.size()==2)cY;
  else cN;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:94:3: error: 'm' was not declared in this scope
   94 |   m[a]++;
      |   ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a = new int[n];
    String s= "APPROVED";
    int cnt == 0;
    for(int i= 0; i < n; i++){
      a[i] = sc.nextInt();
      if(a[i] % 2==0 ) {
        cnt++;
        if(a[i] % 3!= 0 || a[i] % 5 != 0)) {
          s = "DENIED";
        }
      }
    }
    if(cnt ==0) s = "DENIED";
    System.out.println(s);
  }
}


Compiler output:
Main.java:8: error: ';' expected
    int cnt == 0;
           ^
Main.java:13: error: illegal start of expression
        if(a[i] % 3!= 0 || a[i] % 5 != 0)) {
                                         ^
2 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ')' before '!' token
    8 |   if ((A == B && B ! = C) || (A == C && A != B) || (B == C && B != A)) {
      |       ~           ^~
      |                   )
a.cc:10:4: error: expected ')' before 'else'
   10 |   } else {
      |    ^~~~~
      |    )
a.cc:8:6: note: to match this '('
    8 |   if ((A == B && B ! = C) || (A == C && A != B) || (B == C && B != A)) {
      |      ^
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: Java

import java.util.Scanner;

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();
   boolean flag=false;
   
   if((a=b&&a!=c)||(a=c&&a!=b)||(c=b&&a!=c)){
   flag=true;
   }

   if(flag){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '&&'
   if((a=b&&a!=c)||(a=c&&a!=b)||(c=b&&a!=c)){
          ^
  first type:  int
  second type: boolean
Main.java:11: error: bad operand types for binary operator '&&'
   if((a=b&&a!=c)||(a=c&&a!=b)||(c=b&&a!=c)){
                       ^
  first type:  int
  second type: boolean
Main.java:11: error: bad operand types for binary operator '||'
   if((a=b&&a!=c)||(a=c&&a!=b)||(c=b&&a!=c)){
                 ^
  first type:  int
  second type: int
Main.java:11: error: bad operand types for binary operator '&&'
   if((a=b&&a!=c)||(a=c&&a!=b)||(c=b&&a!=c)){
                                    ^
  first type:  int
  second type: boolean
4 errors
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 == b == c) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
}

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

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i ,n) for(int i = 0 ; i < (n) ; i ++ )
#define all(x) (x).begin(),(x).end()
using ll = long long;
using namespace std;

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

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

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

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

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

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

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

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

#include<iostream>
using namespace std;

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

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>

int main(void){
   int n,i,a=0,b=0; 
   int c[1000]={0};
  
 while(1){
  scanf("%d",&n); 
    if(0 < n <= 100)
      break;
  }
  
   for(i=0;i<n;i++){ 
    while(1){
     scanf("%d",&c[i]); 
      if(0 < a[i] <= 1000)
        break;
    }
   } 
  for(i=0;i<n;i++)    
    if(c[i]/2==0){   
      if(c[i]/3==0 ||c[i]/3==0 ) a++;}   
  else b++;  
  
  if(n-b==a) puts("APPROVED");   
  else puts("DENIED");  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:15: error: subscripted value is neither array nor pointer nor vector
   16 |       if(0 < a[i] <= 1000)
      |               ^
Language: C

#include<stdio.h>

int main(void){
   int n,i,a=0,b=0; 
   int c[1000]={0};
  
 while(1){
  scanf("%d",&n); 
    if(0 < n <= 100)
      break;
  }
  
    for(i=0;i<n;i++){
    
    while(1){
     scanf("%d",&c[i]); 
      if(0 < a[i] <= 1000)
        break;
    }
    
  for(i=0;i<n;i++)    
    if(c[i]/2==0){   
      if(c[i]/3==0 ||c[i]/3==0 ) a++;}   
  else b++;  
  
  if(n-b==a) puts("APPROVED");   
  else puts("DENIED");  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:15: error: subscripted value is neither array nor pointer nor vector
   17 |       if(0 < a[i] <= 1000)
      |               ^
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
int i1,i2,i3;
int flag=0;
  scanf("%d",&i1);
  scanf("%d",&i2);
  scanf("%d",&i3);
  if(i1==i2) flag+=1;
  if(i1==i3) flag+=1;
  if(i2==i3) flag+=1;
  if(flag==1) printf("Yes");
  else printf("No");
}
  return 0;
  

Compiler output:
main.c:14:3: error: expected identifier or '(' before 'return'
   14 |   return 0;
      |   ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:39: error: expected ';' before 'if'
    6 |         scanf("%d%d%d", &a, &aa, &aaa)
      |                                       ^
      |                                       ;
    7 | 
    8 |     if(a==aa && a==aaa){
      |     ~~                                 
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(a!=aa && a!=aaa && aa!=aaa){
      |   ^~~~
Language: C++

int main(){
  int a,aa,aaa;
  
   scanf("%d%d%d",&a,&aa,&aaa);
     if(1<=a && a<=9){
       if(1<=aa && aa<=9){
         if(1<=aaa && aaa<=9){
  
           if(a==aa && a==aaa)
       printf("No");
    
    	else if(a!=aa && a!=aaa){
          if(aa!=aaa)
            printf("No");}
    
          else printf("Yes");
     }
       }
     }
 return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'scanf' was not declared in this scope
    4 |    scanf("%d%d%d",&a,&aa,&aaa);
      |    ^~~~~
a.cc:10:8: error: 'printf' was not declared in this scope
   10 |        printf("No");
      |        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:14:13: error: 'printf' was not declared in this scope
   14 |             printf("No");}
      |             ^~~~~~
a.cc:14:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:16: error: 'printf' was not declared in this scope
   16 |           else printf("Yes");
      |                ^~~~~~
a.cc:16:16: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(){
  int a,aa,aaa;
  
   scanf("%d%d%d",&a,&aa,&aaa);
     if(1<=a && a<=9){
       if(1<=aa && aa<=9){
         if(1<=aaa && aaa<=9){
  
           if(a==aa && a==aaa)
       printf("No");
    
    	else if(a!=aa && a!=aaa){
          if(aa!=aaa)
            printf("No");}
    
          else printf("Yes");
     }
       }
     }
 return 0;
  }
#include<stdio.h>
 
int main(){
  int a,aa,aaa;
  
   scanf("%d%d%d",&a,&aa,&aaa);
     if(1<=a && a<=9){
       if(1<=aa && aa<=9)
         if(1<=aaa && aaa<=9)
  if(a==aa && a==aaa)
       printf("No");
    
    	else if(a!=aa && a!=aaa){
          if(aa!=aaa)
            printf("No");}
    
          else printf("Yes");
     }
 return 0;
  }
提出情報 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'scanf' was not declared in this scope
    4 |    scanf("%d%d%d",&a,&aa,&aaa);
      |    ^~~~~
a.cc:10:8: error: 'printf' was not declared in this scope
   10 |        printf("No");
      |        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:14:13: error: 'printf' was not declared in this scope
   14 |             printf("No");}
      |             ^~~~~~
a.cc:14:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:16: error: 'printf' was not declared in this scope
   16 |           else printf("Yes");
      |                ^~~~~~
a.cc:16:16: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc: At global scope:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main(){
      |     ^~~~
a.cc:1:5: note: 'int main()' previously defined here
    1 | int main(){
      |     ^~~~
a.cc:42:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   42 | 提出情報
      | ^~~~~~~~
Language: C

#include<stdio.h>
int main(void){

  int A,B,C;
  puts("三つの整数を入力してください。");
  ptinrf("整数１：");   scanf("%d",&A);
  ptinrf("整数２：");   scanf("%d",&B);
  ptinrf("整数３：");   scanf("%d",&C);  
  
   if(A==B){
     if(B==C){
       puts("No");
     }
     else{
       puts("Yes");
     }
   }
   else{
     if(B==C){
       puts("Yes");
     }
     else{
       puts("No");
     }
   }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'ptinrf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   ptinrf("整数１：");   scanf("%d",&A);
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
int main(void){

  int A,B,C;
  puts("三つの整数を入力してください。");
  ptinrf("整数１：");   scanf("%d",&A);
  ptinrf("整数２：");   scanf("%d",&B);
  ptinrf("整数３：");   scanf("%d",&C);  
  
   if(A==B){
     if(B==C){
       puts("No");
     }
     else{
       puts("Yes");
     }
   }
   else{
     if(B==C){
       puts("Yes");
     }
     else{
       puts("No");
     }
   }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'ptinrf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   ptinrf("整数１：");   scanf("%d",&A);
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
int main(void)
{
  int a,b,c,i=0;
  printf("整数A,B,Cを入力してください(A,B,Cはいずれも 1以上 9以下の整数)");
  do{
    scanf("%d",&a);
  }(a<1 || 9<a);
  do{
    scanf("%d",&b);
  }(b<1 || 9<b);
  do{
    scanf("%d",&c);
  }(c<1 || 9<c);
  if(a==b)
    i++;
  if(b==c)
    i++;
  if(c==a)
    i++;
  if(i==1)
    printf("Yes\n");
  else
    printf("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected 'while' before '(' token
    8 |   }(a<1 || 9<a);
      |    ^
main.c:11:4: error: expected 'while' before '(' token
   11 |   }(b<1 || 9<b);
      |    ^
main.c:14:4: error: expected 'while' before '(' token
   14 |   }(c<1 || 9<c);
      |    ^
Language: C++

#include<stdio.h>

int main(){
  int a,aa,aaa;
  
  if(1<=a && a<=9){
  	if(1<=aa && aa<=9)
  	 if(1<=aaa && aaa<=9)
      
      if(a==aa && a==aaa)
       printf("No");
    
    	else if(a!=aa && a!=aaa){
          if(aa!=aaa)
            printf("No");}
    
    	else printf("Yes")
  }
  return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: expected ';' before '}' token
   17 |         else printf("Yes")
      |                           ^
      |                           ;
   18 |   }
      |   ~
Language: C

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("Yes");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |     printf("No");
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include "stdio.h"

int main(void)
{
    int a;
    int b;
    int c;
    scanf("%d %d %d",&a &b &c);

    if(a == b)
    {
        if(a != c)
        {
            printf("Yes");
        }
    }

    else if(a == c)
    {
        if(a != b)
        {
            printf("Yes");
        }
    }

    else if(b == c)
    {
        if(b != a)
        {
            printf("Yes");
        }
    }

    else
    {
        printf("No");
    }
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: invalid operands to binary & (have 'int *' and 'int')
    8 |     scanf("%d %d %d",&a &b &c);
      |                      ~~ ^
      |                      |
      |                      int *
Language: C

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("Yes");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf("Yes");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("Yes");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |     printf("No");
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:9: error: 'cb' undeclared (first use in this function); did you mean 'c'?
    8 |   if(a==cb&&a!=c){
      |         ^~
      |         c
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("Yes");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf("Yes");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("Yes");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |     printf("No");
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void)
{
	int a, b, c;
	scanf_s("%d%d%d", &a, &b, &c);

	if (a == b && b != c)
		puts("yes");
	else if (b == c && c != a)
		puts("yes");
	else if (a == c && c != b)
		puts("yes");
	else
		puts("no");

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

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


Compiler output:
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main (void)
      |     ^~~~
a.cc:2:5: note: 'int main()' previously defined here
    2 | int main (void)
      |     ^~~~
a.cc: In function 'int main()':
a.cc:18:23: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
   18 |   scanf("%d %d %d",&a &b &c);
      |                    ~~ ^~
      |                    |   |
      |                    |   int
      |                    int*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'const char [4]' and 'int' to binary 'operator&'
    9 |   scanf("%d\n"&C);
      |         ~~~~~~^~
      |         |      |
      |         |      int
      |         const char [4]
Language: C

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("Yes");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf("Yes");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("No");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:3: error: expected declaration or statement at end of input
   18 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.>

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

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

int main(void)
int a=0;
int b=0;
int c=0;
int f=0;
scanf("%d %d %d",&a,&b,&c);
if(a==b) f=1;
else if(b==c) f=1;
else if(c==a) f=1;
if(a==b==c) f=0;
if(f==1) printf("Yes\n");
else printf("No\n");
return 0;

Compiler output:
main.c: In function 'main':
main.c:2:1: error: parameter 'a' is initialized
    2 | int a=0;
      | ^~~
main.c:3:1: error: parameter 'b' is initialized
    3 | int b=0;
      | ^~~
main.c:4:1: error: parameter 'c' is initialized
    4 | int c=0;
      | ^~~
main.c:5:1: error: parameter 'f' is initialized
    5 | int f=0;
      | ^~~
main.c:6:1: error: expected declaration specifiers before 'scanf'
    6 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:7:1: error: expected declaration specifiers before 'if'
    7 | if(a==b) f=1;
      | ^~
main.c:8:1: error: expected declaration specifiers before 'else'
    8 | else if(b==c) f=1;
      | ^~~~
main.c:9:1: error: expected declaration specifiers before 'else'
    9 | else if(c==a) f=1;
      | ^~~~
main.c:10:1: error: expected declaration specifiers before 'if'
   10 | if(a==b==c) f=0;
      | ^~
main.c:11:1: error: expected declaration specifiers before 'if'
   11 | if(f==1) printf("Yes\n");
      | ^~
main.c:12:1: error: expected declaration specifiers before 'else'
   12 | else printf("No\n");
      | ^~~~
main.c:13:1: error: expected declaration specifiers before 'return'
   13 | return 0;
      | ^~~~~~
main.c:1:5: error: old-style parameter declarations in prototyped function definition
    1 | int main(void)
      |     ^~~~
main.c:14: error: expected '{' at end of input