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

#include<iostream>
#include<stdio.h>
int main{
	int A,B,C;
	std::cin >> A >> B >> C;
    if((A == B) && (B == C))
    	printf("No");
    if((A == B) && (B != C))
    	printf("Yes");
    if((A != B) && (B == C))
    	printf("Yes");
    if((A != B) && (A == C))
    	printf("Yes");
    if((A != B) && (A != C) && (B != C))
    	printf("No");
        }


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int A,B,C;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:14: error: 'cin' in namespace 'std' does not name a type
    5 |         std::cin >> A >> B >> C;
      |              ^~~
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:6:5: error: expected unqualified-id before 'if'
    6 |     if((A == B) && (B == C))
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if((A == B) && (B != C))
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'if'
   10 |     if((A != B) && (B == C))
      |     ^~
a.cc:12:5: error: expected unqualified-id before 'if'
   12 |     if((A != B) && (A == C))
      |     ^~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if((A != B) && (A != C) && (B != C))
      |     ^~
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
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");
  else if(A==B || B==C || A==C)
    printf("Yes");
  else
    printf("NO");
  
  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 <studio.h>

int main(void)
{
  int A,B,C;
  
  printf("A:");  scanf("%d", &A);
  printf("B:");  scanf("%d", &B);
  printf("C:");  scanf("%d", &C);
  
  if(A==B &&　B==C || A!=B && B!=C && C!=A)
    printf("NO\n");
  else 
    printf("YES\n");
  
  return 0;
}
  

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

<iostream>
<stdio.h>
int main{
	int A,B,C;
	std::cin >> A >> B >> C;
    if((A == B) && (B == C))
    	printf("No");
    if((A == B) && (B != C))
    	printf("Yes");
    if((A != B) && (B == C))
    	printf("Yes");
    if((A != B) && (A == C))
    	printf("Yes");
    if((A != B) && (A != C) && (B != C))
    	printf("No");
        }

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <iostream>
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before '.' token
    4 |   int a, b. c;
      |           ^
a.cc:6:22: error: 'b' was not declared in this scope
    6 |   scanf("%d%d%d",&a,&b,&c);
      |                      ^
a.cc:6:25: error: 'c' was not declared in this scope
    6 |   scanf("%d%d%d",&a,&b,&c);
      |                         ^
a.cc:9:3: error: 'even' was not declared in this scope
    9 |   even if(a!=b&&b!=c!&&c!=a)
      |   ^~~~
a.cc:11:7: error: expected ';' before 'printf'
   11 |   even
      |       ^
      |       ;
   12 |     printf("yes");
      |     ~~~~~~
a.cc:13:3: error: expected primary-expression before ')' token
   13 |   )
      |   ^
Language: C++

#include <iostream>
using namespace std;

nt main(void)
{
	int A, B, C;

	cin >> A>> B>> C;

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

	return 0;
}

Compiler output:
a.cc:4:1: error: 'nt' does not name a type; did you mean 'int'?
    4 | nt main(void)
      | ^~
      | int
Language: C++

int a,b,c
int x=0;
 if(a==b)
   x=x+1;
 if(b==c)
   x=x+1;
 if(c==a)
   x=x+1;
 if(x==2)
   printf("yes");
 else
   printf("no");
return 0;


Compiler output:
a.cc:2:1: error: expected initializer before 'int'
    2 | int x=0;
      | ^~~
a.cc:3:2: error: expected unqualified-id before 'if'
    3 |  if(a==b)
      |  ^~
a.cc:5:2: error: expected unqualified-id before 'if'
    5 |  if(b==c)
      |  ^~
a.cc:7:2: error: expected unqualified-id before 'if'
    7 |  if(c==a)
      |  ^~
a.cc:9:2: error: expected unqualified-id before 'if'
    9 |  if(x==2)
      |  ^~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 |  else
      |  ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     prinf("Yes");
      |     ^~~~~
      |     printf
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 'A' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:24: error: 'B' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                        ^
main.c:3:27: error: 'C' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 'a' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&a,&b,&c);
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:24: error: 'b' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&a,&b,&c);
      |                        ^
main.c:3:27: error: 'c' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 'A' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:24: error: 'B' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                        ^
main.c:3:27: error: 'C' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: 'A' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                     ^
main.c:3:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:24: error: 'B' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                        ^
main.c:3:27: error: 'C' undeclared (first use in this function)
    3 |   scanf("%d %d %d",&A,&B,&C);
      |                           ^
main.c:5:15: error: 'c' undeclared (first use in this function)
    5 |   if(A==B&&B!=c){
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ')' before ';' token
    6 |   C=scanf("%d",&C;
      |          ~       ^
      |                  )
main.c:19:15: error: expected ';' before '}' token
   19 |      return 0;
      |               ^
      |               ;
   20 |  }
      |  ~
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    6 |   scanf("%d %d %d",&a &b &c);
      |                    ~~ ^~
      |                    |   |
      |                    |   int
      |                    int*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'printtf' was not declared in this scope; did you mean 'printf'?
    8 |                 printtf("Yes\n");
      |                 ^~~~~~~
      |                 printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "No";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Yes";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "Yes";
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Yes";
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Yes";
      |         ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "No";
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A;
      |     ^~~
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |             cout << "No";
      |             ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Yes";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "Yes";
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Yes";
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Yes";
      |         ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "No";
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int A ;
	cin >> A ;
	int B ;
	cin >> B ;
	int C ;
	cin >> C ;
	
	if (A==B && C!=B) {
		cout << "Yes" << endl;
	} else if (B==C && A!=C){
		cout << "Yes;
	} else if (A==C && B!=C) {
		cout << "Yes" << endl;
	} else { 
		cout << "No" << endl;
	}		
	
	// your code goes here
	return 0;
}

Compiler output:
a.cc:15:25: warning: missing terminating " character
   15 |                 cout << "Yes;
      |                         ^
a.cc:15:25: error: missing terminating " character
   15 |                 cout << "Yes;
      |                         ^~~~~
a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression before '}' token
   16 |         } else if (A==C && B!=C) {
      |         ^
Language: C++

macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input!{
        A: usize,
        B: usize,
        C: usize,
    }
    
    if (A == B && A != C)||(A != B && A == C)||(C == B && A != C)  {
        println!("Yes");
    } else {
        println!("No");
    }
    }
    


Compiler output:
a.cc:38:10: error: too many decimal points in number
   38 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:1:1: error: 'macro_rules' does not name a type
    1 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:22:1: error: 'macro_rules' does not name a type
   22 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:32:1: error: 'macro_rules' does not name a type
   32 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:54:1: error: 'fn' does not name a type
   54 | fn main() {
      | ^~
Language: C++

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

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    // aとbが等しい
    if (a == b && a != c) {
        cout << "Yes" << endl;
    } elif (a == c && a != b) {
        cout << "Yes" << endl;
    } elif (b == c && b != a) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'elif' was not declared in this scope
   10 |     } elif (a == c && a != b) {
      |       ^~~~
a.cc:14:7: error: 'else' without a previous 'if'
   14 |     } else {
      |       ^~~~
Language: C++

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

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

#include<iostream>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <bits/stdc++.h> 
using namespace std;
 
#define REP(i, a, b) \
for (int i = int(a); i <= int(b); i++) 
\
 
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if((a==b && c>a) || (b==c && a>c) || (c==a && b>a))
    cout<<"Yes";
  else
    cout<<"No"
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: expected ';' before 'return'
   20 |     cout<<"No"
      |               ^
      |               ;
   21 | 
   22 |   return 0;
      |   ~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: expected ';' before string constant
    8 |   else if(A != B && B != C && A != C) cout "No" << endl;
      |                                           ^~~~~
      |                                           ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '%' token
    8 |   else if(A != B %% B != C %% A != C) cout "No" << endl;
      |                   ^
a.cc:8:29: error: expected primary-expression before '%' token
    8 |   else if(A != B %% B != C %% A != C) cout "No" << endl;
      |                             ^
a.cc:8:43: error: expected ';' before string constant
    8 |   else if(A != B %% B != C %% A != C) cout "No" << endl;
      |                                           ^~~~~
      |                                           ;
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&&B!==C&&C!==A)){
    cout<<"No"<<endl;
  }
  else{
    cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected primary-expression before '=' token
    7 |   if((A==B&&B==C)||(A!=B&&B!==C&&C!==A)){
      |                              ^
a.cc:7:37: error: expected primary-expression before '=' token
    7 |   if((A==B&&B==C)||(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&&B==C)||(A!=B&&B!==C&&C!==A){
    cout<<"No"<<endl;
  }
  else{
    cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected primary-expression before '=' token
    7 |   if((A==B&&B==C)||(A!=B&&B!==C&&C!==A){
      |                              ^
a.cc:7:37: error: expected primary-expression before '=' token
    7 |   if((A==B&&B==C)||(A!=B&&B!==C&&C!==A){
      |                                     ^
a.cc:7:40: error: expected ')' before '{' token
    7 |   if((A==B&&B==C)||(A!=B&&B!==C&&C!==A){
      |     ~                                  ^
      |                                        )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
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 || B = C != A){
cout << "Yes" << endl;
  }
else{
  cout << "No" << endl;
}
}


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

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

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

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

Compiler output:
Main.java:14: error: reached end of file while parsing
}
 ^
1 error
Language: C

#include <stdio.h>

int main(){
  int num[3];
  for(int i=0; i<3; i++) scanf("%d", &num[i]);
  for(int i=0; i<3; i++){
    if(a[i] == a[(i+1)%3] && a[i] != a[(i+2)%3]){
      printf("Yes\n");
      return 0;
    }
  }
  printf("No\n");
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'a' undeclared (first use in this function)
    7 |     if(a[i] == a[(i+1)%3] && a[i] != a[(i+2)%3]){
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

ABC = list(map(int, input().split()))
if len(set(ABC)) == 2:
    print("Yes")
else:
    print("No")


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!usr/bin/env python3
      |  ^
a.cc:16:13: warning: multi-character character constant [-Wmultichar]
   16 | INF = float('inf')
      |             ^~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: continue statement not within a loop
    9 |     if(a==b==c) continue;
      |                 ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected ';' before 'else'
    6 |     printf("No")
      |                 ^
      |                 ;
    7 |    else
      |    ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '==' token
    7 |   string ans == "No";
      |              ^~
a.cc:8:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if (a == b && a != c) ans == "Yes";
      |                         ^~~
      |                         abs
a.cc:9:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if (a == c && b != c) ans == "Yes";
      |                         ^~~
      |                         abs
a.cc:10:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if (b == c && a != c) ans == "Yes";
      |                         ^~~
      |                         abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before '}' token
   10 |         printf("Yes")
      |                      ^
      |                      ;
   11 |     }
      |     ~                 
main.c:13:22: error: expected ';' before '}' token
   13 |         printf("Yes")
      |                      ^
      |                      ;
   14 |     }
      |     ~                 
main.c:16:22: error: expected ';' before '}' token
   16 |         printf("Yes")
      |                      ^
      |                      ;
   17 |     }else{
      |     ~                 
main.c:18:21: error: expected ';' before '}' token
   18 |         printf("No")
      |                     ^
      |                     ;
   19 |     }
      |     ~
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&&a!=c){
    cout<<"No";
  }
  else{
    cout<<"Yes";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:44: error: expected ';' before '{' token
    6 |   if((a==b&&b==c&&a==c)||(a!=b&&b!=c&&a!=c){
      |                                            ^
      |                                            ;
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else{
      |   ^~~~
a.cc:8:4: error: expected ')' before 'else'
    8 |   }
      |    ^
      |    )
    9 |   else{
      |   ~~~~
a.cc:6:5: note: to match this '('
    6 |   if((a==b&&b==c&&a==c)||(a!=b&&b!=c&&a!=c){
      |     ^
Language: C++

A,B,C = list(map(int,input().split()))

if A == B == C:
    print('No')
else:
    print('Yes')

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
  vector<int> a;
  rep(i, 3) cin >> a.at(i);
  sort(a.begin(), a.end());
  if(a.(0)==a.at(1)&&a.at(1)!=a.at(2))cout << "Yes" <<endl;
  else if(a.(1)==a.at(2)&&a.at(1)!=a.at(0))cout << "Yes" <<endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected unqualified-id before '(' token
    9 |   if(a.(0)==a.at(1)&&a.at(1)!=a.at(2))cout << "Yes" <<endl;
      |        ^
a.cc:10:13: error: expected unqualified-id before '(' token
   10 |   else if(a.(1)==a.at(2)&&a.at(1)!=a.at(0))cout << "Yes" <<endl;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: stray '\343' in program
    4 |   <U+3000>int answer = 0;
      |   ^~~~~~~~
Language: C

  #include <stdio.h>
  int main(void)
  {
   int i,n;
   int a[100];a
   scanf("%d",&n);
   for(i=0; i<n; i++){
   scanf("%d",&a[i]);
   }
   for(i=0; i<n; i++){
    if(a[i] % 2 == 0 && a[i] % 3 != 0 && a[i] % 5 != 0){
           printf("DENIED\n");
    }
    else printf("APPROVED\n");
   }
   return 0;
   }


Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected ';' before 'scanf'
    5 |    int a[100];a
      |                ^
      |                ;
    6 |    scanf("%d",&n);
      |    ~~~~~
Language: C++

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

int main() {
  vector<int> S(3);

  for(int i=0;i<3;i++){
    cin>>S.at(i);
  }
  sort(S.begin(),S.end());

  if((S.at(0)==S.at(1) && S.at(1)!=S.at(2) || (S.at(1)==S.at(2) && S.at(1)!=S.at(0))) cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:86: error: expected ';' before 'cout'
   12 |   if((S.at(0)==S.at(1) && S.at(1)!=S.at(2) || (S.at(1)==S.at(2) && S.at(1)!=S.at(0))) cout<<"Yes";
      |                                                                                      ^~~~~
      |                                                                                      ;
a.cc:13:3: error: expected primary-expression before 'else'
   13 |   else cout<<"No";
      |   ^~~~
a.cc:12:99: error: expected ')' before 'else'
   12 |   if((S.at(0)==S.at(1) && S.at(1)!=S.at(2) || (S.at(1)==S.at(2) && S.at(1)!=S.at(0))) cout<<"Yes";
      |     ~                                                                                             ^
      |                                                                                                   )
   13 |   else cout<<"No";
      |   ~~~~
Language: Java

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

Compiler output:
Main.java:12: error: not a statement
    int((a==b)&&(a==c)){
    ^
Main.java:12: error: ';' expected
    int((a==b)&&(a==c)){
       ^
Main.java:12: error: not a statement
    int((a==b)&&(a==c)){
          ^
Main.java:12: error: ';' expected
    int((a==b)&&(a==c)){
             ^
Main.java:12: error: not a statement
    int((a==b)&&(a==c)){
                  ^
Main.java:12: error: ';' expected
    int((a==b)&&(a==c)){
                     ^
Main.java:14: error: 'else' without 'if'
    }else if((a!=b)&&(a!=c)&&(b!=c)){
     ^
7 errors
Language: Java

import java.util.*;
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();
    
    int(a==b&&a==c){
      System.out.println("No");
    }else if(a!=b&&a!=c&&b!=c){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
  }
}

Compiler output:
Main.java:12: error: not a statement
    int(a==b&&a==c){
    ^
Main.java:12: error: ';' expected
    int(a==b&&a==c){
       ^
Main.java:12: error: not a statement
    int(a==b&&a==c){
            ^
Main.java:12: error: ';' expected
    int(a==b&&a==c){
                  ^
Main.java:14: error: 'else' without 'if'
    }else if(a!=b&&a!=c&&b!=c){
     ^
5 errors
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C

int mani(void)
{

  int a, b, c;

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

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

  return 0;
}


Compiler output:
main.c: In function 'mani':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d %d %d", &a, &b, &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int mani(void)
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d %d %d", &a, &b, &c);
      |   ^~~~~
main.c:6: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("No\n");
      |     ^~~~~~
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:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |     printf("No\n");
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("Yes\n");
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<stdio.h>

int main(){
int a,b ,c,i=0;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b)i++;
  if(b==c)i++;
  if(c==a)i++;
  if(i==1){
  prinf("Yes¥n");
  }else{
  printf("No¥n");
  }
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   10 |   prinf("Yes¥n");
      |   ^~~~~
      |   printf
Language: C

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


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

#include<iostream>
#include<string>
#include<vector>

using namespace std;

int MAX_N = 100;

int main()
{
    vector<int> a;
    int c;
    //vector<int> data(123);  //  int 型で、初期要素数 123 の動的配列 data の宣言
    //vector<int> data(10, 5);      //  要素数10、全ての要素の値5 で初期化


    for (int i = 0; i < 3; i++)
    {
        cin >> c;
        a.push_back(c);
    }

    sort(a.begin(),a.end()); //昇順ソート
    //sort(a.begin(),a.end(),greater<int>()); //降順ソート

    if (a[0]==a[1] && a[1]!=a[2])
    {
        cout << "Yes" << endl;
    }else if (a[0]!=a[1] && a[1]==a[2])
    {
        cout << "Yes" << endl;
    }else
    {
        cout << "No" << endl;

    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   23 |     sort(a.begin(),a.end()); //昇順ソート
      |     ^~~~
      |     short
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'strinf' was not declared in this scope; did you mean 'strtof'?
    8 |     strinf ans = "No";
      |     ^~~~~~
      |     strtof
a.cc:9:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     if (a == b && b != c) ans = "Yes";
      |                           ^~~
      |                           abs
a.cc:10:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if (a == c && b != c) ans = "Yes";
      |                           ^~~
      |                           abs
a.cc:11:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     if (a != b && b == c) ans = "Yes";
      |                           ^~~
      |                           abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

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


Compiler output:
a.cc:8:18: warning: multi-character character constant [-Wmultichar]
    8 |     string ans = 'No';
      |                  ^~~~
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |     if (a == b && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:10:33: warning: multi-character character constant [-Wmultichar]
   10 |     if (a == c && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:11:33: warning: multi-character character constant [-Wmultichar]
   11 |     if (a != b && b == c) ans = 'Yes';
      |                                 ^~~~~
a.cc: In function 'int main()':
a.cc:8:18: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |     string ans = 'No';
      |                  ^~~~
a.cc:9:33: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
    9 |     if (a == b && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:10:33: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
   10 |     if (a == c && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:11:33: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
   11 |     if (a != b && b == c) ans = 'Yes';
      |                                 ^~~~~
Language: C++

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

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


Compiler output:
a.cc:8:18: warning: multi-character character constant [-Wmultichar]
    8 |     strinf ans = 'No';
      |                  ^~~~
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |     if (a == b && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:10:33: warning: multi-character character constant [-Wmultichar]
   10 |     if (a == c && b != c) ans = 'Yes';
      |                                 ^~~~~
a.cc:11:33: warning: multi-character character constant [-Wmultichar]
   11 |     if (a != b && b == c) ans = 'Yes';
      |                                 ^~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'strinf' was not declared in this scope; did you mean 'strtof'?
    8 |     strinf ans = 'No';
      |     ^~~~~~
      |     strtof
a.cc:9:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     if (a == b && b != c) ans = 'Yes';
      |                           ^~~
      |                           abs
a.cc:10:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if (a == c && b != c) ans = 'Yes';
      |                           ^~~
      |                           abs
a.cc:11:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     if (a != b && b == c) ans = 'Yes';
      |                           ^~~
      |                           abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: Java

public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && C != B)) {
			System.out.println("yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}


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

import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        hs.put(sc.nextInt());
        hs.put(sc.nextInt());
        hs.put(sc.nextInt());
        if(hs.size() != 2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        hs.put(sc.nextInt());
          ^
  symbol:   method put(int)
  location: variable hs of type HashSet<Integer>
Main.java:10: error: cannot find symbol
        hs.put(sc.nextInt());
          ^
  symbol:   method put(int)
  location: variable hs of type HashSet<Integer>
Main.java:11: error: cannot find symbol
        hs.put(sc.nextInt());
          ^
  symbol:   method put(int)
  location: variable hs of type HashSet<Integer>
3 errors
Language: C++

#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
int mod = 1e9+7;

int main() {
	cout << "Yes" << "\n";
	return 0;
}

cout << fixed << setprecision(12);

map<int, int> primeFactor(ll in) {
	map<int, int> ans;
	if (in < 3) return ans;
	ll a = 1;
	while (a*a <= in) a *= 2;
	for (int b = 2; b <= a; b++) {
		while (in % b == 0) {
			in /= b;
			ans[b]++;
		}
	}
	if (in != 1) ans[in]++;
	return ans;
}

ll inv(ll a, ll mo) {
	a %= mo;
	ll v[] = { 0, 1, mo };
	ll u[] = { 1, 0, a };
	while (v[2] != 1) {
		if (v[2] < u[2]) {
			ll tmp[] = {v[0], v[1], v[2]};
			v[0] = u[0];v[1] = u[1];v[2] = u[2];
			u[0] = tmp[0];u[1] = tmp[1];u[2] = tmp[2];
			continue;
		}
		ll coe = v[2] / u[2];
		for (int i = 0; i < 3; ++i) v[i] = v[i] - u[i] * coe;
	}
	return v[0] < 0 ? v[0] + mo : v[0];
}

ll GCD(ll a, ll b) {
	if (a % b != 0)return GCD(b, a % b);
	else return b;
}

bool comparator(pair<int, int> lh, pair<int, int> rh) {
	return (lh.second < rh.second);
}


Compiler output:
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << fixed << setprecision(12);
      | ^~~~
Language: C++

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


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

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

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

  if (A == B &&  B != C) {
    cout << "Yes" << endl;
  }
  else if (A == C &&  A != B) {
    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:14:12: error: 'c' was not declared in this scope
   14 |   else if (c == B &&  B != A) {
      |            ^
Language: C++

import std.stdio, std.conv, std.string, std.algorithm,
       std.math, std.array, std.container, std.typecons;

void main() {
  int[] abc = readln.chomp.split.to!(int[]);
  if(abc[0]!=abc[1]&&abc[1]==abc[2] ||
     abc[0]!=abc[1]&&abc[0]==abc[2] ||
     abc[0]==abc[1]&&abc[1]!=abc[2]) writeln("Yes");
  else writeln("No");
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio, std.conv, std.string, std.algorithm,
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:6: error: structured binding declaration cannot have type 'int'
    5 |   int[] abc = readln.chomp.split.to!(int[]);
      |      ^~
a.cc:5:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:6: error: empty structured binding declaration
a.cc:5:9: error: expected initializer before 'abc'
    5 |   int[] abc = readln.chomp.split.to!(int[]);
      |         ^~~
a.cc:6:6: error: 'abc' was not declared in this scope
    6 |   if(abc[0]!=abc[1]&&abc[1]==abc[2] ||
      |      ^~~
a.cc:8:38: error: 'writeln' was not declared in this scope
    8 |      abc[0]==abc[1]&&abc[1]!=abc[2]) writeln("Yes");
      |                                      ^~~~~~~
a.cc:9:8: error: 'writeln' was not declared in this scope
    9 |   else writeln("No");
      |        ^~~~~~~
Language: Java

import java.util.Scanner;
{

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

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

        if (x == y && x == z)
        {
            System.out.println("Poor Number");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Poor Number");
        }
}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args)
                ^
  (use --enable-preview to enable unnamed classes)
2 errors
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected '}' at end of input
   16 |     cout<<"No";
      |                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^