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

#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
	int a,b,c,t=0;
	cin>>a>>b>>c;
	if(a==b)
		t+=10;
	if(b==c)
		t+=100;
	if(a==c)
		t+=1000;
	switch(t)
	{
		case 10:cout<<"YES";break;
		case 100:cout<<"YES";break;
		case 1000:cout<<"YES";break;
		default:cout<<"NO";break;		
	}
	return 0;
}#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
	int a,b,c,t=0;
	cin>>a>>b>>c;
	if(a==b)
		t+=10;
	if(b==c)
		t+=100;
	if(a==c)
		t+=1000;
	switch(t)
	{
		case 10:cout<<"YES"<<endl;break;
		case 100:cout<<"YES"<<endl;break;
		case 1000:cout<<"YES"<<endl;break;
		default:cout<<"NO";break;		
	}
	return 0;
}

Compiler output:
a.cc:23:2: error: stray '#' in program
   23 | }#include<cstdio>
      |  ^
a.cc:23:3: error: 'include' does not name a type
   23 | }#include<cstdio>
      |   ^~~~~~~
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main()
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main()
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
 int A[120]
    int N;
int main() {
  
    cin >> N;
    bool x = true;
    for(int i = 0;i<N;N++) cin >> A[i];
    for(int i = 0;i<N;N++){
      if(A[i] % 2==0){
        if(A[i] % 3 == 0||A[i] % 5 == 0 ){
        }else{
          x = false;
        }
      }
      if(x == true){
    cout << "APPROVED" << endl;
}else{
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc:4:5: error: expected initializer before 'int'
    4 |     int N;
      |     ^~~
a.cc: In function 'int main()':
a.cc:7:12: error: 'N' was not declared in this scope
    7 |     cin >> N;
      |            ^
a.cc:9:35: error: 'A' was not declared in this scope
    9 |     for(int i = 0;i<N;N++) cin >> A[i];
      |                                   ^
a.cc:11:10: error: 'A' was not declared in this scope
   11 |       if(A[i] % 2==0){
      |          ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
	int a,b,c,t=0;
	cin>>a>>b>>c;
	if(a==b)
		t+=10;
	if(b==c)
		t+=100;
	if(a==c)
		t+=1000;
	switch(t)
	{
		case 10:cout<<"YES";break;
		case 100:cout<<"YES";break;
		case 1000:cout<<"YES";break;
		default:cout<<"NO";break;		
	}
	return 0;
}#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
	int a,b,c,t=0;
	cin>>a>>b>>c;
	if(a==b)
		t+=10;
	if(b==c)
		t+=100;
	if(a==c)
		t+=1000;
	switch(t)
	{
		case 10:cout<<"YES"<<endl;break;
		case 100:cout<<"YES"<<endl;break;
		case 1000:cout<<"YES"<<endl;break;6
		default:cout<<"NO";break;		
	}
	return 0;
}

Compiler output:
a.cc:23:2: error: stray '#' in program
   23 | }#include<cstdio>
      |  ^
a.cc:23:3: error: 'include' does not name a type
   23 | }#include<cstdio>
      |   ^~~~~~~
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main()
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:41:52: error: expected ';' before 'default'
   41 |                 case 1000:cout<<"YES"<<endl;break;6
      |                                                    ^
      |                                                    ;
   42 |                 default:cout<<"NO";break;
      |                 ~~~~~~~
Language: C++

#include<bits/sdc++.h>
#define ll long long int
using namespace std;
int main()
  {
  ll a,b,c;
  cin>>a>>b>>c;
  if((a==b)&& (b!=c))
    cout<<"YES"<<endl;
  else if((b==c) && (a!=c))
    cout<<"YES"<<endl;
  else if((a==c) && (c!=b))
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
  }

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

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int A;
  int B;
  int C;
  int i;
  int tmp;

  
  cin >> A;
  cin >> B;
  cin >> C;
  if(A==B){
    if(B==C){
      cout << "no";
    }else{
      cout << "yes";
    }
  }else if{(B==C||A==C)
    cout << "yes";
  }else{
    cout <<"no";
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:22:11: error: expected '(' before '{' token
   22 |   }else if{(B==C||A==C)
      |           ^
      |           (
a.cc:24:4: error: 'else' without a previous 'if'
   24 |   }else{
      |    ^~~~
Language: Java

#include <iostream>

using namespace std;

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:7: error: not a statement
    cin>>a>>b>>c;
             ^
Main.java:16: error: not a statement
            cout<<"No"<<endl;
                      ^
Main.java:20: error: not a statement
            cout<<"Yes"<<endl;
                       ^
Main.java:25: error: not a statement
        cout<<"No"<<endl;
                  ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int A;
  int B;
  int C;
  int i;
  int tmp;

  
  cin >> A;
  cin >> B;
  cin >> C;
  if(A==B){
    if(B==C){
      cout << "no"
    }else{
      cout << "yes"
    }
  }else if{(B==C||A==C)
    cout << "yes"
  }else{
    cout <<"no"
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected ';' before '}' token
   18 |       cout << "no"
      |                   ^
      |                   ;
   19 |     }else{
      |     ~              
a.cc:20:20: error: expected ';' before '}' token
   20 |       cout << "yes"
      |                    ^
      |                    ;
   21 |     }
      |     ~               
a.cc:22:11: error: expected '(' before '{' token
   22 |   }else if{(B==C||A==C)
      |           ^
      |           (
a.cc:24:4: error: 'else' without a previous 'if'
   24 |   }else{
      |    ^~~~
a.cc:25:16: error: expected ';' before '}' token
   25 |     cout <<"no"
      |                ^
      |                ;
   26 |   }
      |   ~
Language: Java

public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
}

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

#include <stdio.h>
#include <stdlib.h>
void main (void)
{
  int A,B,C;
  A　=　rand();
  B　=　rand()%9+1;
  C　=　rand()%9+1;
  
  A = A%9+1
  B = B%9+1
  C = C%9+1
    
  if(A==B && B!=C)
  {
    printf('Yes');
  }
  else if(B==C && A!=C)
  {
    printf('yes');
  }
  else if(A==C && B!=C)
  {
    printf('yes');
  }
  else
  {
    printf('No');
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: stray '\343' in program
    6 |   A<U+3000>=<U+3000>rand();
      |    ^~~~~~~~
main.c:6:7: error: stray '\343' in program
    6 |   A<U+3000>=<U+3000>rand();
      |             ^~~~~~~~
main.c:7:4: error: stray '\343' in program
    7 |   B<U+3000>=<U+3000>rand()%9+1;
      |    ^~~~~~~~
main.c:7:7: error: stray '\343' in program
    7 |   B<U+3000>=<U+3000>rand()%9+1;
      |             ^~~~~~~~
main.c:8:4: error: stray '\343' in program
    8 |   C<U+3000>=<U+3000>rand()%9+1;
      |    ^~~~~~~~
main.c:8:7: error: stray '\343' in program
    8 |   C<U+3000>=<U+3000>rand()%9+1;
      |             ^~~~~~~~
main.c:10:12: error: expected ';' before 'B'
   10 |   A = A%9+1
      |            ^
      |            ;
   11 |   B = B%9+1
      |   ~         
main.c:16:12: warning: multi-character character constant [-Wmultichar]
   16 |     printf('Yes');
      |            ^~~~~
main.c:20:12: warning: multi-character character constant [-Wmultichar]
   20 |     printf('yes');
      |            ^~~~~
main.c:24:12: warning: multi-character character constant [-Wmultichar]
   24 |     printf('yes');
      |            ^~~~~
main.c:28:12: warning: multi-character character constant [-Wmultichar]
   28 |     printf('No');
      |            ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int A[120]
    int N;
    cin >> N;
    bool x = true;
    for(int i = 0;i<N;N++) cin >> A[i];
    for(int i = 0;i<N;N++){
      if(A[i] % 2==0){
        if(A[i] % 3 == 0||A[i] % 5 == 0 ){
        }else{
          x = false;
        }
      }
      if(x == true){
    cout << "APPROVED" << endl;
}else{
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'int'
    6 |     int N;
      |     ^~~
a.cc:7:12: error: 'N' was not declared in this scope
    7 |     cin >> N;
      |            ^
a.cc:9:35: error: 'A' was not declared in this scope
    9 |     for(int i = 0;i<N;N++) cin >> A[i];
      |                                   ^
a.cc:11:10: error: 'A' was not declared in this scope
   11 |       if(A[i] % 2==0){
      |          ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

package main

import (
	"fmt"
)

func main() {
	words := make([]int, 3)
	fmt.Scan(&words[0], &words[1], &words[2])

	answer := "No"
	if words[0] == words[1] && words[0] != words[2] {
		answer = "Yes"
	} else if words[0] == words[2] && words[0] != words[1] {
		answer = "Yes"
	} else if words[1] == words[2] && words[0] != words[1] {
		answer = "Yes"
	}

	fmt.Println(answer)
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int A , B , C;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> A >> B >> C;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(A == B != C || A == C != B || B == C != A){
      |     ^~
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else{
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected '}' before 'else'
   20 |   else{
      |   ^~~~
a.cc:16:24: note: to match this '{'
   16 |   else if (B == C != A){
      |                        ^
Language: Java

import java.util.Scanner;
public class Poor {

    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) || (z == y))
        {
            System.out.println("Yes");
        }
        else if (x == y && x == z)
        {
            System.out.println("No");
        }
        else
        {
            System.out.println("No");
        }
    }
}

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

#include <stdio.h>
void main (void)
{
  int A,B,C;
  A　=　rand();
  B　=　rand()%9+1;
  C　=　rand()%9+1;
  
  A = A%9+1
  B = B%9+1
  C = C%9+1
    
  if(A==B && B!=C)
  {
    printf('Yes');
  }
  else if(B==C && A!=C)
  {
    printf('yes');
  }
  else if(A==C && B!=C)
  {
    printf('yes');
  }
  else
  {
    printf('No');
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:4: error: stray '\343' in program
    5 |   A<U+3000>=<U+3000>rand();
      |    ^~~~~~~~
main.c:5:7: error: stray '\343' in program
    5 |   A<U+3000>=<U+3000>rand();
      |             ^~~~~~~~
main.c:5:9: error: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
    5 |   A　=　rand();
      |         ^~~~
main.c:6:4: error: stray '\343' in program
    6 |   B<U+3000>=<U+3000>rand()%9+1;
      |    ^~~~~~~~
main.c:6:7: error: stray '\343' in program
    6 |   B<U+3000>=<U+3000>rand()%9+1;
      |             ^~~~~~~~
main.c:7:4: error: stray '\343' in program
    7 |   C<U+3000>=<U+3000>rand()%9+1;
      |    ^~~~~~~~
main.c:7:7: error: stray '\343' in program
    7 |   C<U+3000>=<U+3000>rand()%9+1;
      |             ^~~~~~~~
main.c:9:12: error: expected ';' before 'B'
    9 |   A = A%9+1
      |            ^
      |            ;
   10 |   B = B%9+1
      |   ~         
main.c:15:12: warning: multi-character character constant [-Wmultichar]
   15 |     printf('Yes');
      |            ^~~~~
main.c:19:12: warning: multi-character character constant [-Wmultichar]
   19 |     printf('yes');
      |            ^~~~~
main.c:23:12: warning: multi-character character constant [-Wmultichar]
   23 |     printf('yes');
      |            ^~~~~
main.c:27:12: warning: multi-character character constant [-Wmultichar]
   27 |     printf('No');
      |            ^~~~
Language: C++

func main() {
	words := make([]int, 3)
	fmt.Scan(&words[0], &words[1], &words[2])

	answer := "No"
	if words[0] == words[1] && words[0] != words[2] {
		answer = "Yes"
	} else if words[0] == words[2] && words[0] != words[1] {
		answer = "Yes"
	} else if words[1] == words[2] && words[0] != words[1] {
		answer = "Yes"
	}

	fmt.Println(answer)
}

Compiler output:
a.cc:1:1: error: 'func' does not name a type
    1 | func main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: lvalue required as left operand of assignment
    6 |         if(a=b&&a=c&&b=c){
      |                   ~^~~
a.cc:11:16: error: 'o' was not declared in this scope
   11 |         return o;
      |                ^
Language: C++

#include<iostream>
using namespace std;
 
int main(void){
 int n[3];
 for(int i=0; i<3; i++){
  cin >> n[i];
 }
  
  if((n[0] == n[1] && n[1] != n[2]) || (n[1] == n[2] && n[2] != n[0]) || (n[2] == n[0] && n[0] != n[1])){
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }
  return 0;

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

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

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

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

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

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

#include#include <iostream>

using namespace std;

int a[10];
int num;
bool fl=false;

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include#include <iostream>
      |         ^
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> num;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include#include <iostream>
a.cc:21:11: error: 'cout' was not declared in this scope
   21 |   if (fl) cout <<"Yes";
      |           ^~~~
a.cc:21:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |   else          cout <<"No";
      |                 ^~~~
a.cc:22:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int A,B,C;
    scanf("%d %d %d\n",&A,&B,&C);
    
    if(A==B && B!= C)
    {
        printf("Yes\n");
    }
    else if(B==C && B!= A)
    {
        printf("Yes\n");
    }
    else if(A==C && B!= A)
    {
        printf("Yes\n");
    }
    else
    {
        printf("No\n");
    }
}


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

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

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

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

int main()
{
  bool result = false;
  bool arr[10] = 0;
  int num;
  for(int i = 0; i < 10; i++)
  {
    cin >> num;
    arr[num]++;
    if(arr[num] == 2)
    {
      result = true;
    }
    else if(arr[num] == 3)
    {
      result = false;
    }
    if(result == true)
    {
      cout << "Yes" << endl;
    }
    else
    {
      cout << "False" << endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: array must be initialized with a brace-enclosed initializer
    4 |   bool arr[10] = 0;
      |                  ^
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> num;
      |     ^~~
a.cc:9:12: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
    9 |     arr[num]++;
      |     ~~~~~~~^
a.cc:20:7: error: 'cout' was not declared in this scope
   20 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:20:24: error: 'endl' was not declared in this scope
   20 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:24:7: error: 'cout' was not declared in this scope
   24 |       cout << "False" << endl;
      |       ^~~~
a.cc:24:26: error: 'endl' was not declared in this scope
   24 |       cout << "False" << endl;
      |                          ^~~~
a.cc:26:4: error: expected '}' at end of input
   26 |   }
      |    ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

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

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

  if (A!=B!=C) {
    cout << "No" << endl;
  }
  if (A!=B==C) {
    cout << "Yes" <<endl;
  }
  if (A==B!=C) {
    cput << "Yes" <<endl;
  }
  if (A==B==C) {
    cpot << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'cput' was not declared in this scope
   15 |     cput << "Yes" <<endl;
      |     ^~~~
a.cc:18:5: error: 'cpot' was not declared in this scope
   18 |     cpot << "No" <<endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'c' was not declared in this scope
    8 |   cin >> A >> B >> c;
      |                    ^
Language: C++

#include<bits/stdc++.h>
usin namespace std;
int main()
{
    int a,b,c;
    set<int>aa;
    cin>>a>>b>>c;
    aa.insert(a);
    
    aa.insert(b);
    aa.insert(c);
    if(aa.size()==2)
    cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
    
}

Compiler output:
a.cc:2:1: error: 'usin' does not name a type
    2 | usin namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'set' was not declared in this scope
    6 |     set<int>aa;
      |     ^~~
a.cc:6:5: note: suggested alternatives:
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:96:11: note:   'std::set'
   96 |     class set
      |           ^~~
/usr/include/c++/14/set:87:13: note:   'std::pmr::set'
   87 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |     set<int>aa;
      |         ^~~
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'aa' was not declared in this scope; did you mean 'a'?
    8 |     aa.insert(a);
      |     ^~
      |     a
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     else cout<<"No"<<endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     else cout<<"No"<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

class atcorder {

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

		int A = stdIn.nextInt();
		int B = stdIn.nextInt();
		int C = stdIn.nextInt();
		
		if(A==B && B=C)
			System.out.println("no");
		
		if(A==B && B!=C)
			System.out.println("yes");

		if(A!=B && B==C)
			System.out.println("yes");
		
		if(A!=B && B!=C)
			System.out.println("yes");
		

	}
    
}

Compiler output:
Main.java:13: error: bad operand types for binary operator '&&'
		if(A==B && B=C)
		        ^
  first type:  boolean
  second type: int
1 error
Language: C++

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

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

  if (A!=B!=C) {
    cout << "No" << endl;
  }
  if (A!=B==C) {
    cout << "Yes" <<endl;
  }
  if (A==b!=C) {
    cput << "Yes" <<endl;
  }
  if (a==b==C) {
    cpot << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'b' was not declared in this scope
    6 |   cin >> A>>b >>c;
      |             ^
a.cc:6:17: error: 'c' was not declared in this scope
    6 |   cin >> A>>b >>c;
      |                 ^
a.cc:15:5: error: 'cput' was not declared in this scope
   15 |     cput << "Yes" <<endl;
      |     ^~~~
a.cc:17:7: error: 'a' was not declared in this scope
   17 |   if (a==b==C) {
      |       ^
a.cc:18:5: error: 'cpot' was not declared in this scope
   18 |     cpot << "No" <<endl;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class prob1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            System.out.print("Enter the numbers: ");
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}


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

#include<iostream>
using namespace std;
 
int main(void){
 int n[3];
 for(int i=0; i<3; i++){
  cin >> n[i];
 }
  
  if((n[1] == n[2] && n[2] != n[3]) || (n[2] == n[3] && n[3] != n[1]) || (n[3] == n[1] && n[2] != n[3])){
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: Java

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


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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: lvalue required as left operand of assignment
    8 |         if(A!=B&&A=C)
      |            ~~~~^~~
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==c&&a!=b)||(b==c&&b!=a)
     printf("Yes\n");
  else
     printf("No\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:46: error: expected ';' before 'printf'
    6 |   if((a==b&&a!=c)||(a==c&&a!=b)||(b==c&&b!=a)
      |                                              ^
      |                                              ;
    7 |      printf("Yes\n");
      |      ~~~~~~                                   
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else
      |   ^~~~
a.cc:7:22: error: expected ')' before 'else'
    7 |      printf("Yes\n");
      |                      ^
      |                      )
    8 |   else
      |   ~~~~                
a.cc:6:5: note: to match this '('
    6 |   if((a==b&&a!=c)||(a==c&&a!=b)||(b==c&&b!=a)
      |     ^
Language: C++

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

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before ')' token
    6 |  for(int i=0; i<3, i++){
      |                       ^
      |                       ;
Language: C++

#include <iostream>
using namespace std;
int main()
{
    int a[3];
    for(int i=0;i<3;i++)
    { cin>>a[i];}
    int c=0;
    for(int i=0;i<3;i++)
    {
        fro(int j=i+1;j<3;j++)
        {
            if(a[i]==a[j])
            {
                c++;
            }
        }
    }
    if(c!=0)
    {
        cout<<"Yes";
    }
    else
    {
        cout<<"No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before 'int'
   11 |         fro(int j=i+1;j<3;j++)
      |             ^~~
a.cc:11:23: error: 'j' was not declared in this scope
   11 |         fro(int j=i+1;j<3;j++)
      |                       ^
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==b && b!=c){
        cout << "Yes" << endl;
    }else if(a==c && b!=a){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected ';' before '}' token
   13 |         cout << "No" << endl
      |                             ^
      |                             ;
   14 |     }
      |     ~
Language: C++

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

int main() 
{ 
    long double int v[3];
    cin >> v[0] >> v[1] >> v[2];
    sort(v,v+3);
    if(v[0] == v[1] && v[1] != v[2])
        cout << "Yes" << endl;
    else
    {
        cout << "No" << endl;
    }
    
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: two or more data types in declaration of 'v'
    6 |     long double int v[3];
      |          ^~~~~~
a.cc:7:12: error: 'v' was not declared in this scope
    7 |     cin >> v[0] >> v[1] >> v[2];
      |            ^
Language: Java

import java.util.Scanner;

class atcorder {

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

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

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

	}
    
}

Compiler output:
Main.java:13: error: bad operand types for binary operator '&'
		if(A==B & B=C)
		        ^
  first type:  boolean
  second type: int
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before 'c'
    8 |   if(a==b && b==c &&b c==a) cout << "No";
      |     ~                ^~
      |                      )
Language: Java

import java.util.Scanner;
public class Poor {

    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) || (z == y))
        {
            System.out.println("Yes");
        }
        else
        {
            System.out.println("No");
        }
    }
}

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

#include <iostream>
using namespace std;
int main()
{
    int a[3];
    for(i=0;i<3;i++)
    { cin>>a[i];}
    int c=0;
    for(int i=0;i<3;i++)
    {
        fro(int j=i+1;j<3;j++)
        {
            if(a[i]==a[j])
            {
                c++;
            }
        }
    }
    if(c!=0)
    {
        cout<<"Yes";
    }
    else
    {
        cout<<"No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i=0;i<3;i++)
      |         ^
a.cc:11:13: error: expected primary-expression before 'int'
   11 |         fro(int j=i+1;j<3;j++)
      |             ^~~
a.cc:11:23: error: 'j' was not declared in this scope
   11 |         fro(int j=i+1;j<3;j++)
      |                       ^
Language: C

#include<stdio.h>

int x,y,z;
int main(void){
  do{
  scanf("%d",&x);
  scanf("%d",&y);
  scanf("%d",&z);
  }while(1<=x<=9 && 1<=y<=9 && 1<=z<=9)
    
    if((x==y && z !=x)||(y==z && x != y)||(z==x && y!=z)){
      printf("Yes");
    }else{printf("No");}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:40: error: expected ';' before 'if'
    9 |   }while(1<=x<=9 && 1<=y<=9 && 1<=z<=9)
      |                                        ^
      |                                        ;
   10 | 
   11 |     if((x==y && z !=x)||(y==z && x != y)||(z==x && y!=z)){
      |     ~~                                  
main.c:13:6: error: 'else' without a previous 'if'
   13 |     }else{printf("No");}
      |      ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: lvalue required as left operand of assignment
    7 |         if(a=b||a=c||b=c)
      |                   ~^~~
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
			System.out.println(No);
			                   ^
  symbol:   variable No
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int[] a = new int[N];
   for(int i=0;i<3;i++) a[i] = sc.nextInt();
 
   Arrays.sort(a);
   
   int ss = 0;
   int s = a[0];
   for(int i=1;i<3;i++) 
   {
     if(s==a[i])
     {
       ss++;
     }
     s = a[i];
   }
   
   String ans = "No";
   if(ss==1) ans = "Yes";
   System.out.print(ans);
 }
}

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

A = [int(i) for i in input().split()]
d = {}
for a in A:
    if a in d:
        d[a] += 1
    else:
        d[a] = 1
ans = "No"
for v in d.values():
    if v == 2:
        ans = "Yes"
        break
print(ans)


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A = [int(i) for i in input().split()]
      | ^
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for a in A:
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int i,j,count=0,a[3];
  for(i=1;i<=3;i++)
   cin>>a[i];
  for(i=1;i<=3;i++)
    for(j=i+1;j<=n;j++)
      if(a[i]==a[j])
        cout++;
  if(count==1)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'n' was not declared in this scope
   12 |     for(j=i+1;j<=n;j++)
      |                  ^
a.cc:14:13: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   14 |         cout++;
      |         ~~~~^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |          ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |               ^
a.cc:6:20: error: 'C' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |                    ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: lvalue required as left operand of assignment
    8 |         if (a=b || a=c || b=c)
      |                      ~~^~~~
a.cc:9:20: error: lvalue required as left operand of assignment
    9 |            if (a=b && b=c)
      |                  ~~^~~~
Language: C++

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

string FILENAME = "filename";
#define io ifstream fin(FILENAME + ".in"); ofstream fout(FILENAME + ".out")
#define fwrite(X) fout << X;
#define fwriteln(X) fout << X << endl;
#define qio ios_base::sync_with_stdio(false); cin.tie(NULL)

#define forl(V, N) for(int V = 0; V < N; V++)
#define for1(V, N) for(int V = 1; V <= N; V++)
#define fore(E, X) for(auto &E:X)
#define newl cout << endl
#define println(X) cout << X << endl
#define printe(X) for(auto &E:X) cout << E << " "; cout << endl
#define rem(X) X.top(); X.pop()
#define setmin(A, B) A = min(A, B)
#define setmax(A, B) A = max(A, B)

#define graph unordered_map<int, unordered_set<int>>
#define um unordered_map
#define us unordered_set
#define vi vector<int>
#define pi pair<int, int>
#define ll long long
#define pb push_back
#define mp make_pair
#define ins insert

int main() {
    qio; int a, b, c; cin >> a >> b >> c;
    us<int> z; z.ins(a). z.ins(b); z.ins(c);
    if(z.size() == 2) println("Yes");
    else prinln("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:26: error: 'struct std::pair<std::__detail::_Node_iterator<int, true, false>, bool>' has no member named 'z'
   33 |     us<int> z; z.ins(a). z.ins(b); z.ins(c);
      |                          ^
a.cc:35:10: error: 'prinln' was not declared in this scope; did you mean 'println'?
   35 |     else prinln("No");
      |          ^~~~~~
      |          println
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"No";
}
  else if(a==b || a==c || b==c)
  {
    cout"No";
  }
  else
    cout"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before string constant
    8 |         cout"No";
      |             ^~~~
      |             ;
a.cc:12:9: error: expected ';' before string constant
   12 |     cout"No";
      |         ^~~~
      |         ;
a.cc:15:9: error: expected ';' before string constant
   15 |     cout"Yes";
      |         ^~~~~
      |         ;
Language: Java

import java.util.Scanner;
public class Poor {

    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("No");
        }
        else if ((x == y) || (x == z) || (z == y))
        {
            System.out.println("Yes");
        }
        else
        {
            System.out.println("No");
        }
    }
}

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

#include <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) {
    if(A!=C){
      cout << "Yes" << endl;
    }
  }
  else if (A==C) {
    if(A!=B){
      cout << "Yes" << endl;
    }
  }
  else if (B==C) {
    if(C!=A){
      cout << "Yes" << endl;
    }
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |   else if (A==B) {
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else if (A==C) {
      |   ^~~~
a.cc:22:3: error: expected unqualified-id before 'else'
   22 |   else if (B==C) {
      |   ^~~~
a.cc:27:3: error: expected unqualified-id before 'else'
   27 |   else{
      |   ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;

private class poor{
  public static void main(String[] args){
    Scanner scan = new Scanner();
    List<Integer> list = new ArrayList<Integer>();
    for(int i = 0;i < 3;i++)
    String str = scan.nextInt();
  }
  if(list.get(0) == list.get(1)){
   	if(list.get(0) != list.get(2)){
      System.out.println("poor");
    }
  }else if(list.get(0) == list.get(2)){
    if(list.get(0) != list.get(1)){
      System.out.println("poor");
    }
  }
}

Compiler output:
Main.java:10: error: variable declaration not allowed here
    String str = scan.nextInt();
           ^
Main.java:12: error: illegal start of type
  if(list.get(0) == list.get(1)){
  ^
Main.java:12: error: <identifier> expected
  if(list.get(0) == list.get(1)){
             ^
Main.java:12: error: illegal start of type
  if(list.get(0) == list.get(1)){
              ^
Main.java:16: error: illegal start of type
  }else if(list.get(0) == list.get(2)){
   ^
Main.java:16: error: <identifier> expected
  }else if(list.get(0) == list.get(2)){
                   ^
Main.java:16: error: illegal start of type
  }else if(list.get(0) == list.get(2)){
                    ^
7 errors
Language: C++

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

int main() 
{ 
    
    int a[3];
    hash[10];
    for(int i=0;i<3;i++){
        cin>>a[i];
       
    }
     for(int i=0;i<3;i++){
     hash[a[i]]++;
     }
    for(int i=0;i<10;i++){
        if(hash[i]==2){
            cout<<"Yes"<<endl;
        }
        else{
            cout<<"No"<<endl;
        }
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected identifier before numeric constant
    9 |     hash[10];
      |          ^~
a.cc:9:10: error: expected ']' before numeric constant
    9 |     hash[10];
      |          ^~
      |          ]
a.cc:9:9: error: empty structured binding declaration
    9 |     hash[10];
      |         ^
a.cc:9:13: error: expected initializer before ';' token
    9 |     hash[10];
      |             ^
a.cc:15:12: error: expected ']' before '[' token
   15 |      hash[a[i]]++;
      |            ^
      |            ]
a.cc:15:16: error: expected initializer before '++' token
   15 |      hash[a[i]]++;
      |                ^~
a.cc:15:16: error: expected ';' before '++' token
a.cc:18:16: error: expected unqualified-id before '[' token
   18 |         if(hash[i]==2){
      |                ^
a.cc:24:6: error: expected '}' at end of input
   24 |     }
      |      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: Java

import java.util.Scanner;

class atcorder {

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

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

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

	}
    
}

Compiler output:
Main.java:13: error: bad operand types for binary operator '&&'
		if(A==B && B=C)
		        ^
  first type:  boolean
  second type: int
1 error
Language: C++

#include<bits/stdc++.h>
#define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define max3(a,b,c) ((a>b)?(a>c)?a:c:(b>c)?b:c)
#define min3(a,b,c) ((a<b)?(a<c)?a:c:(b<c)?b:c)
#define testcase int t;cin>>t;while(t--)
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
typedef pair<int, int> pii;
typedef pair<long long int,long long int> pll;
typedef long long int ll;
typedef unsigned long long int ull;
#define M 1000000007
using namespace std;
int main()
{
    fast
int a,b,c;
cin>>a>>b>>c;
if(a==b)
{
	if(a!=c)
	cout<<"Yes";
	else
	cout<<"No";
}
else
{
	if(b==c||a==c)
	cout<<"Yes";
	else
	cout<<"No";
}
return 0;
}






Compiler output:
a.cc:9:9: error: 'pair' does not name a type
    9 | typedef pair<int, int> pii;
      |         ^~~~
a.cc:10:9: error: 'pair' does not name a type
   10 | typedef pair<long long int,long long int> pll;
      |         ^~~~
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
			System.out.println(No);
			                   ^
  symbol:   variable No
  location: class Main
Main.java:12: error: cannot find symbol
			System.out.println(No);
			                   ^
  symbol:   variable No
  location: class Main
Main.java:14: error: cannot find symbol
			System.out.println(Yes);
			                   ^
  symbol:   variable Yes
  location: class Main
3 errors