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

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 | if(a==c && a!=b) pritnf("Yes");
      |                  ^~~~~~
      |                  printf
Language: C++

#include <iostream>

using namespace std;

int main () {

int a,b,c;
  cin>>a>>b>>c;
  if(a!=b and b==c) cout<<"Yes";
  else if (a==b and a!=c) cout<<"Yes";
  else if (a!=b and a==c) cout<<"Yes";
  else (a!=b and a!=c) cout<<"No";





}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected ';' before 'cout'
   12 |   else (a!=b and a!=c) cout<<"No";
      |                       ^~~~~
      |                       ;
Language: C++

#include <iostream>

using namespace std;

int main () {

int a,b,c;
  cin>>a>>b>>c;
  if(a==b and a==c) cout<<"No";
  else if (a==b and a!=c) cout<<"Yes";
  else if (a!=b and a==c) cout<<"Yes";
  else (a!=b and a!=c) cout<<"No";





}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected ';' before 'cout'
   12 |   else (a!=b and a!=c) cout<<"No";
      |                       ^~~~~
      |                       ;
Language: C

#include<iostream>

using namespace std;

int main(){

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

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

	


}

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

#include <bits/stdc++.h>
 
using namespace std;
 
#define sf(n) scanf("%d", &n)
#define pd(n) printf("%.12lf", n)
#define pf(n) printf("%d", n)
#define p() printf("\n")
#define ps() printf(" ")
#define ll long long
#define ull unsigned long long
#define MAX 1e9
const int mod = 1000 * 1000 * 1000 + 7;
#define ex 1e18
#define dbl 2e09
#define qu(q) queue<int> q
#define pqu(q) priority_queue<int> q
#define len(s) s.length()
#define sz(x) int(x.size())
#define pb(x) push_back(x)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define F first
#define S second
#define clr(x) x.clear()
#define LOG(x) std::cout << x << std::endl;
 
const int INF = 0x3f3f3f3f;
const ll LL_INF = 0x3f3f3f3f3f3f3f3f;
const double PI = 3.14159265359;
 
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};


int a[100005];
int p[10005];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:41:12: error: 'B' was not declared in this scope
   41 |    cin>>a>>B>>b;
      |            ^
Language: C

#include<iostream>
using namespace std;
main()
{
int a,b,c,count=0;
cin>>a>>b>>c;
if(a==b ||  a==c)
{
count=2;
}
else if(b==a || b==c)
{
count=2;
}
if(count==2)
{
cout<<"yes";
}
else
{
cout<<"no";
}
}


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

import java.util.*;
class Main{
    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&&A==C)||(a!=B&&a!=C&&B!=C)){
	    System.out.println("No");
	}else{
	    System.out.println("Yes");
	}
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
	if((a==B&&A==C)||(a!=B&&a!=C&&B!=C)){
	          ^
  symbol:   variable A
  location: class Main
1 error
Language: C

#include<stdio.h>
int main(void){
//Rajatsingh
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int ispoor = 0;
if( x==y && y!=z) ispoor=1;
if( y==z && z!=y) ispoor=1;
if( z==x && x!=y) ispoor=1;

if(ispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:26: error: 'Z' undeclared (first use in this function)
    5 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:1: error: expected declaration or statement at end of input
   19 | return 0;
      | ^~~~~~
Language: Java

import java.util.*;
public class ans
{
	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||b==c||a==c)
{
System.out.println("yes");
}
		else
		{
			System.out.println("no");
		}	
	}
}


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

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

int e,f,g;
scanf("%d%d%d", &e, &f, &g);
int numispoor = 0;
if( e==f && f!=g)
numispoor=1;
if( f==g && g!=f)
numispoor=1;
if( g==e && e!=f)
numispoor=1;

if(numispoor)
{
 printf("Yes");
}
else
{
printf("No");
}
}

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

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

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

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

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

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


Compiler output:
main.c:1:17: error: missing terminating > character
    1 | #include<stdio.H
      |                 ^
main.c:1:9: fatal error: stdio.H: No such file or directory
    1 | #include<stdio.H
      |         ^
compilation terminated.
Language: C++

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

exit(0);
}
cout<<"no";
}

Compiler output:
a.cc:3:7: error: extended character ¦ is not valid in an identifier
    3 | if(a==b¦¦a==c)
      |       ^
a.cc:3:7: error: extended character ¦ is not valid in an identifier
a.cc: In function 'int func(int, int, int)':
a.cc:3:7: error: 'b\U000000a6\U000000a6a' was not declared in this scope
    3 | if(a==b¦¦a==c)
      |       ^~~~
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"no";
      | ^~~~
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"yes";
      | ^~~~
a.cc:10:1: error: 'exit' was not declared in this scope
   10 | exit(0);
      | ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | int func (int a, int b,  int c)
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<"no";
      | ^~~~
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    4 | int a, d c;
      |          ^
main.c:5:23: error: 'd' undeclared (first use in this function)
    5 |  scanf("%d%d%d", &a, &d, &c);
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:27: error: 'c' undeclared (first use in this function)
    5 |  scanf("%d%d%d", &a, &d, &c);
      |                           ^
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(); 
int count=0;
if(a==b || a==c)
count=2;
if(b==c||b==a)
count=2;
if(count==2)
{
System.out.print("yes");
}
else
{
System.out.print("no");
}

	}




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

#include<bits/stdc++.h>
int main(void)
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int poor=0;
	if(a==b&&b!=c) poor=1;
	if(b==c&&c!=a) poor=1;
	if(c==a&&a!=b) poor=1;
	if(poor)
	{
		puts("yes");	
	}
	else
	{
		puts("no");
	}
	return 0;
}

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

#include<iostream.h>
using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

# include <stdio.h>

int main(void){
 int a,b,c;
scanf("%d%d%d", &a,&b,&c);
int Ispoor =0;
if(a==b && b!=c) Ispoor =1;
if(b==c && c!=a) Ispoor =1;
if(c==a && a!=b) Ispoor =1;

if(ispoor){
puts("yes");
}
else{
puts("no");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:4: error: 'ispoor' undeclared (first use in this function); did you mean 'Ispoor'?
   11 | if(ispoor){
      |    ^~~~~~
      |    Ispoor
main.c:11:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream.h>
using namespace std;

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

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

 int ispoor = 0;
 if (a == b && b != c) ispoor = 1;
 if (b == c && c != a) ispoor = 1;
 if (c == a && a != b) ispoor = 1;

 if (ispoor) {
 puts("Yes");
 } else {
 puts("No");
 }

 return 0;
}

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

import java.util.Scanner;
class Poor {
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: Java

import java.util.Scanner;
public class Exercise30 {

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

        System.out.print("Input first number: ");
        int e = in.nextInt();
        System.out.print("Input second number: ");
        int f = in.nextInt();
        System.out.print("Input third number: ");
        int g = in.nextInt();

        if (e == f && e == g)
        {
            System.out.println("All numbers are equal");
        }
        else if ((e == f) || (e == g) || (g == f))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("All numbers are different");
        }
    }
}

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

import java.util.Scanner;
public class Poor {
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:2: error: class Poor is public, should be declared in a file named Poor.java
public class Poor {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Exercise1 {

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

        System.out.print("Input first number: ");
        int e = in.nextInt();
        System.out.print("Input second number: ");
        int f = in.nextInt();
        System.out.print("Input third number: ");
        int g = in.nextInt();

        if (e == f && e == g)
        {
            System.out.println("All numbers are equal");
        }
        else if ((e == f) || (e == g) || (g == f))
        {
            System.out.println("Neither all are equal or different");
        }
        else
        {
            System.out.println("All numbers are different");
        }
    }
}

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

# include <stdio.h>

int main(void){
 int a,b,c;
scanf("%d%d%d", &a,&b,&c);
int ispoor =0;
if(a==b && b!=c) ispoor =1;
if(b==c && c!=a) ispoor =1;
if(c==a && a!=b) ispoor =1;

if(ispoor){
puts("yes")
}
else{
puts("no");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:12: error: expected ';' before '}' token
   12 | puts("yes")
      |            ^
      |            ;
   13 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:24: error: 'poor' undeclared (first use in this function); did you mean 'ipoor'?
    7 |         if(a==b&&b!=c) poor=1;
      |                        ^~~~
      |                        ipoor
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

# include <stdio.h>

int main(void){
 int a,b,c;
scanf("%d%d%d", &a,&b,&c);
iny Ispoor =0;
if(a==b && b!=c) Ispoor =1;
if(b==c && c!=a) Ispoor =1;
if(c==a && a!=b) Ispoor =1;

if(Ispoor){
puts("yes")
}
else{
puts("no");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'iny'; did you mean 'int'?
    6 | iny Ispoor =0;
      | ^~~
      | int
main.c:12:12: error: expected ';' before '}' token
   12 | puts("yes")
      |            ^
      |            ;
   13 | }
      | ~
Language: C

# include <stdio.h>

int main(void){
 int a,b,c;
scanf("%d%d%d", &a,&b,&c);
iny ispoor =0;
if(a==b && b!=c) ispoor =1;
if(b==c && c!=a) ispoor =1;
if(c==a && a!=b) ispoor =1;

if(ispoor){
puts("yes")
}
else{
puts("no");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'iny'; did you mean 'int'?
    6 | iny ispoor =0;
      | ^~~
      | int
main.c:12:12: error: expected ';' before '}' token
   12 | puts("yes")
      |            ^
      |            ;
   13 | }
      | ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: invalid suffix "if" on integer constant
    7 |    int ispoor= 0;9if(a==b&&b!=c)
      |                  ^~~
main.c:7:33: error: expected ';' before 'ispoor'
    7 |    int ispoor= 0;9if(a==b&&b!=c)
      |                                 ^
      |                                 ;
    8 |    ispoor= 1;
      |    ~~~~~~
Language: C++

#include<stdio>
#include<conio>
int main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
return 0;
}

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

#include<stdio.h>
void main( )
{
int e,f,g;
scanf("%d%d%d", &e, &f, &g);
int numispoor = 0;
if( e==f && f!=g)
numispoor=1;
if( f==g && g!=f)
numispoor=1;
if( g==e && e!=f)
numispoor=1;

if(numispoor)
{
 printf("Yes");
}
else
{
printf("No");
}

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

import java.util.Scanner;
public class Poor {

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

        int x = in.nextInt();
       
        int y = in.nextInt();
        
        int z = in.nextInt();

        if (x == y && x == z)
        {
         System.out.println("Yes");
        }
        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<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
return 0;
}

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

#include<stdio.h>
int main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"yes";
      | ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"no";
      | ^~~~
Language: C

#include<stdio.h>
int main(){
//Rajatsingh
int x,y,z;
scanf("%d,%d,%d", &x, &y, &Z);
int ispoor = 0;
if( x==y && y!=z)
ispoor=1;
if( y==z && z!=y)
ispoor=1;
if( z==x && x!=y)
ispoor=1;

if(ispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:28: error: 'Z' undeclared (first use in this function)
    5 | scanf("%d,%d,%d", &x, &y, &Z);
      |                            ^
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main( )
{
int x,y,z;
scanf("%d%d%d", &x, &y, &z);
int numispoor = 0;
if( x==y && y!=z)
numispoor=1;
if( y==z && z!=y)
numispoor=1;
if( z==x && x!=y)
numispoor=1;

if(numispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

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

#include<stdio.h>
void main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"yes";
      | ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"no";
      | ^~~~
Language: C++

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
}

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

#include<stdio.h>
int main(){
//Rajatsingh
int x,y,z;
scanf("%d%d%d", &x, &y, &z);
int ispoor = 0;
if( x==y && y!=z)
ispoor=1;
if( y==z && z!=y)
ispoor=1;
if( z==x && x!=y)
ispoor=1;

if(ispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

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

#include<stdio.h>
int main(){
//Rajatsingh
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int ispoor = 0;
if( x==y && y!=z)
ispoor=1;
if( y==z && z!=y)
ispoor=1;
if( z==x && x!=y)
ispoor=1;

if(ispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:26: error: 'Z' undeclared (first use in this function)
    5 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected declaration or statement at end of input
   22 | return 0;
      | ^~~~~~
Language: C++

#include<stdio.h>

using namespace std;

const int N = 123;

int n;

int a[N];

int main() {

	cin >> n;
	bool flag = true;
	for (int i = 0; i < n; i ++) {
		cin >> a[i];
		if (a[i] % 2 == 0) {
			if (a[i] % 3 != 0 && a[i] % 5 != 0) {
				flag = false;
			}
		}
	}
	cout << ((flag) ? "APPROVED\n" : "DENIED\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'cin' was not declared in this scope
   13 |         cin >> n;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << ((flag) ? "APPROVED\n" : "DENIED\n");
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
int main()
{
int a=0,b=0,c=0;
cin>>a;
cin>>b;
cin>>c;
if(a==b || b==c || c==a)
cout<<"yes";
else
cout<<"no";
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"yes";
      | ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"no";
      | ^~~~
a.cc:12:10: error: expected '}' at end of input
   12 | return 0;
      |          ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C

#include <bits/stdc++.h>

using namespace std;

const int N = 123;

int n;

int a[N];

int main() {

	cin >> n;
	bool flag = true;
	for (int i = 0; i < n; i ++) {
		cin >> a[i];
		if (a[i] % 2 == 0) {
			if (a[i] % 3 != 0 && a[i] % 5 != 0) {
				flag = false;
			}
		}
	}
	cout << ((flag) ? "APPROVED\n" : "DENIED\n");
	return 0;
}


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

#include<iostream.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a -";
cin>>a;
cout<<"Enter number b -";
cin>>b;
cout<<"Enter number c -";
cin>>c;
if(a==b && a==c && b==c)
cout<<"yes";
else
cout<<"no";
return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
class A-Poor 
{

	public static void main(String[] args) 
	{
		// TODO Auto-generated method stub
         Scanner sc=new Scanner(System.in);
         int array[]=new int[3];
         for(int i=0;i<3;i++)
        	 array[i]=sc.nextInt();
         find(array);
	}

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

}


Compiler output:
Main.java:2: error: '{' expected
class A-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<<“A ,B, C are all equal”;
    else if(a==b || b == c || a==c)
	 {
	 	cout<<"Yes"<<endl<<“Poor”;
	 	
	 }

     else
         cout<<"No"<<endl<<“Not Poor”;
}

Compiler output:
a.cc:8:31: error: extended character “ is not valid in an identifier
    8 |             cout<<"No"<<endl<<“A ,B, C are all equal”;
      |                               ^
a.cc:8:48: error: extended character ” is not valid in an identifier
    8 |             cout<<"No"<<endl<<“A ,B, C are all equal”;
      |                                                ^
a.cc:11:36: error: extended character “ is not valid in an identifier
   11 |                 cout<<"Yes"<<endl<<“Poor”;
      |                                    ^
a.cc:11:36: error: extended character ” is not valid in an identifier
a.cc:16:28: error: extended character “ is not valid in an identifier
   16 |          cout<<"No"<<endl<<“Not Poor”;
      |                            ^
a.cc:16:33: error: extended character ” is not valid in an identifier
   16 |          cout<<"No"<<endl<<“Not Poor”;
      |                                 ^
a.cc: In function 'int main()':
a.cc:8:31: error: '\U0000201cA' was not declared in this scope
    8 |             cout<<"No"<<endl<<“A ,B, C are all equal”;
      |                               ^~
a.cc:8:35: error: 'B' was not declared in this scope
    8 |             cout<<"No"<<endl<<“A ,B, C are all equal”;
      |                                   ^
a.cc:8:38: error: 'C' was not declared in this scope
    8 |             cout<<"No"<<endl<<“A ,B, C are all equal”;
      |                                      ^
a.cc:11:36: error: '\U0000201cPoor\U0000201d' was not declared in this scope
   11 |                 cout<<"Yes"<<endl<<“Poor”;
      |                                    ^~~~~~
a.cc:16:28: error: '\U0000201cNot' was not declared in this scope
   16 |          cout<<"No"<<endl<<“Not Poor”;
      |                            ^~~~
Language: Java

import java.util.*;
class A-Poor {

	public static void main(String[] args) 
	{
         Scanner sc=new Scanner(System.in);
         int array[]=new int[3];
         for(int i=0;i<3;i++)
        	 array[i]=sc.nextInt();
         find(array);
	}

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

}


Compiler output:
Main.java:2: error: '{' expected
class A-Poor {
       ^
1 error
Language: C

#include <stdio.h>
2
3 int main(void){
4 int a, b, c;
5
6 scanf("%d%d%d", &a, &b, &c);
7
8 int ispoor = 0;
9 if (a == b && b != c) ispoor = 1;
10 if (b == c && c != a) ispoor = 1;
11 if (c == a && a != b) ispoor = 1;
12
13 if (ispoor) {
14 puts("Yes");
15 } else {
16 puts("No");
17 }
18
19 return 0;
20 }


Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2
      | ^
Language: C

#include<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int ispoor = 0;
if( x==y && y!=z)
ispoor=1;
if( y==z && z!=y)
ispoor=1;
if( z==x && x!=y)
ispoor=1;

if(ispoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:4:26: error: 'Z' undeclared (first use in this function)
    4 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:1: error: expected declaration or statement at end of input
   21 | return 0;
      | ^~~~~~
Language: C

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

}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected ')' before '!' token
    6 | if(a==b && b!c) Ispoor =1;
      |   ~         ^
      |             )
main.c:7:13: error: expected ')' before '!' token
    7 | if(b==c && c!a) Ispoor =1;
      |   ~         ^
      |             )
Language: Java

import java.util.Arrays; 

  

public class GFG { 


    static void findTriplet(int arr[], int n) 

    { 

        

        Arrays.sort(arr);

        for (int i = n - 1; i >= 0; i--) { 

            int j = 0; 

            int k = i - 1; 

            while (j < k) { 

                if (arr[i] == arr[j] + arr[k]) { 

  

                    // pair found 

                    System.out.println("numbers are " + arr[i] + " "   + arr[j] + " " + arr[k]); 

  

                    return; 

                } 

                else if (arr[i] > arr[j] + arr[k]) 

                    j += 1; 

                else

                    k -= 1; 

            } 

        } 

        System.out.println("No such triplet exists"); 

    } 


    public static void main(String args[]) 

    { 

        int arr[] = { 5, 32, 1, 7, 10, 50, 19, 21, 2 }; 

        int n = arr.length; 

        findTriplet(arr, n); 

    } 
} 

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

# include <stdio.h>

int main(void)
{     int a,b,c;
     scanf("%d%d%d",&a,&b,&c);
 int Ispoor=0; 
if(a==b && b!c) Ispoor =1;
if(b==c && c!a) Ispoor =1;
if(c==a&& a!=b) Ispoor =1;
if(Ispoor)
{
 puts ("yes");
}
else
{
puts("no");
}
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected ')' before '!' token
    7 | if(a==b && b!c) Ispoor =1;
      |   ~         ^
      |             )
main.c:8:13: error: expected ')' before '!' token
    8 | if(b==c && c!a) Ispoor =1;
      |   ~         ^
      |             )
Language: C++

#include<stdio.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a -";
cin>>a;
cout<<"Enter number b -";
cin>>b;
cout<<"Enter number c -";
cin>>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:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"Enter number a -";
      | ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a;
      | ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
#include<conio.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a -";
cin>>a;
cout<<"Enter number b -";
cin>>b;
cout<<"Enter number c -";
cin>>c;
if(a==b && a==c && b==c)
cout<<"yes";
else
cout<<"no";
return 0;
}

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

#include<iostream>
using namespace std;

void main(){

int A, B, C;
cin>>A>>B>>C;

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


}



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

#include<stdio.h>
#include<conio.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a -";
cin>>a;
cout<<"Enter number b -";
cin>>b;
cout<<"Enter number c -";
cin>>c;
if(a==b && a==c && b==c)
cout<<"yes";
else
cout<<"no";
return 0;
}


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

#include<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &z);
int manpoor = 0;
if( x==y && y!=z)
manpoor=1;
if( y==z && z!=y)
manpoor=1;
if( z==x && x!=y)
manpoor=1;

if(manpoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

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

#include<stdio.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a -";
cin>>a;
cout<<"Enter number b -";
cin>>b;
cout<<"Enter number c -";
cin>>c;
if(a==b && a==c && b==c)
cout<<"yes";
else
cout<<"no;
return 0;
}

Compiler output:
a.cc:15:7: warning: missing terminating " character
   15 | cout<<"no;
      |       ^
a.cc:15:7: error: missing terminating " character
   15 | cout<<"no;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"Enter number a -";
      | ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a;
      | ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:1: error: expected primary-expression before 'return'
   16 | return 0;
      | ^~~~~~
Language: C++

#include<stdio.h>
int main{
int x,y,z;
scanf("%d%d%d", &x, &y, &z);
int poor = 0;
if( x==y && y!=z)
poor=1;
if( y==z && z!=y)
poor=1;
if( z==x && x!=y)
poor=1;

if(poor)
{
 puts("Yes");
}
else
{
puts("No");
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int x,y,z;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
    2 | int main{
      |         ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d%d%d", &x, &y, &z);
      |      ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if( x==y && y!=z)
      | ^~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if( y==z && z!=y)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if( z==x && x!=y)
      | ^~
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(poor)
      | ^~
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else
      | ^~~~
Language: C++

#include <stdio.h>

 int main(void){ 
int x,y,z; 
scanf("%d%d%d", &x, &y, &z); 
int ispoor = 0; 
if (x == y && y != z) ispoor = 1; 
if (y == z && z!= y) ispoor = 1;
 if (z == x && x != y) ispoor = 1; 
 if (ispoor) { 
puts("Yes"); } 
else { 
puts ("No"); 
return 0;

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

#include<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &z);
int poor = 0;
if( x==y && y!=z)
poor=1;
if( y==z && z!=y)
poor=1;
if( z==x && x!=y)
poor=1;

if(poor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

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

#include <stdio.h>

 int main(void){ 
int u,v,w; 
scanf("%d%d%d", &u, &v, &w); 
int ispoor = 0; 
if (u == v && v!= v) ispoor = 1; 
if (v == w && w!= v) ispoor = 1;
 if (w == u && u != v) ispoor = 1; 
 if (ispoor) { 
puts("Yes"); } 
else { 
puts ("No"); 
return 0;

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

#include<stdio.h>
using namespace std;
int main ()
{
int a,b,c;
cout<<"Enter number a - ";
cin>>a;
cout<<"Enter number b - ";
cin>>b;
cout<<"Enter number c - ";
cin>>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:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"Enter number a - ";
      | ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a;
      | ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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 a = in.nextInt();
        System.out.print("Input second number: ");
        int b = in.nextInt();
        System.out.print("Input third number: ");
        int c = in.nextInt();

        if (a== b && a == c)
        {
            System.out.println("No");
        }
        else if ((a == b) || (a == c) || (c == b))
        {
            System.out.println("Yes");
        }
        else
        {
            System.out.println("No");
        }
    }
}

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)
Main.java:28: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int poor = 0;
if( x==y && y!=z)
poor=1;
if( y==z && z!=y)
poor=1;
if( z==x && x!=y)
poor=1;

if(poor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:4:26: error: 'Z' was not declared in this scope
    4 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
a.cc:21:10: error: expected '}' at end of input
   21 | return 0;
      |          ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: Java

import java.util.Scanner;
public class A {

  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 A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected declaration specifiers before 'scanf'
    4 |      scanf("%d%d%d",&a,&b,&c);
      |      ^~~~~
main.c:5:2: error: parameter 'Ispoor' is initialized
    5 |  int Ispoor=0;
      |  ^~~
main.c:6:1: error: expected declaration specifiers before 'if'
    6 | if(a==b && b!c) Ispoor =1;
      | ^~
main.c:7:1: error: expected declaration specifiers before 'if'
    7 | if(b==c && c!a) Ispoor =1;
      | ^~
main.c:8:1: error: expected declaration specifiers before 'if'
    8 | if(c==a&& a!=b) Ispoor =1;
      | ^~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(Ispoor)
      | ^~
main.c:13:1: error: expected declaration specifiers before 'else'
   13 | else
      | ^~~~
main.c:17:1: error: expected declaration specifiers before 'return'
   17 | return 0;
      | ^~~~~~
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:19: error: expected '{' at end of input
Language: Java

import java.util.Scanner;
public class A{

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


Compiler output:
Main.java:23: error: reached end of file while parsing
}
 ^
1 error
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("Not a 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<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int manpoor = 0;
if( x==y && y!=z)
manpoor=1;
if( y==z && z!=y)
manpoor=1;
if( z==x && x!=y)
manpoor=1;

if(manpoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:4:26: error: 'Z' was not declared in this scope
    4 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
a.cc:21:10: error: expected '}' at end of input
   21 | return 0;
      |          ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C

#include<stdio.h>
int main(void){
int x,y,z;
scanf("%d%d%d", &x, &y, &Z);
int manpoor = 0;
if( x==y && y!=z)
manpoor=1;
if( y==z && z!=y)
manpoor=1;
if( z==x && x!=y)
manpoor=1;

if(manpoor)
{
 puts("Yes");
}
else
{
puts("No");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:4:26: error: 'Z' undeclared (first use in this function)
    4 | scanf("%d%d%d", &x, &y, &Z);
      |                          ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:1: error: expected declaration or statement at end of input
   21 | return 0;
      | ^~~~~~
Language: Java

import java.util.*;
    public class Triple{//Main
          public static void main(String[] args){
             Scanner scanner = new Scanner(System.in);
              int A = scanner.nextInt();
              int B = scanner.nextInt();
              int C = scanner.nextInt();
              if(A==B){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(A==C){
                             if(B==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else if(B==C){
                             if(A==C) System.out.println("No");
                             else System.out.println("Yes");
               }
              else System.out.println("No");
}
}


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

import java.util.Scanner;
publ

 {

  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("Not a 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
publ
^
Main.java:6: 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: Java

import java.util.Scanner;
public class Exercise30 {

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

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'a' undeclared (first use in this function)
    4 | scanf("%d%d%d",&a,&b,&c);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:20: error: 'b' undeclared (first use in this function)
    4 | scanf("%d%d%d",&a,&b,&c);
      |                    ^
main.c:4:23: error: 'c' undeclared (first use in this function)
    4 | scanf("%d%d%d",&a,&b,&c);
      |                       ^
main.c:5:16: error: expected expression before '=' token
    5 | if((a== b&& a!== c)||(a==c&&a!==b))
      |                ^
main.c:7:3: error: expected '}' before 'else'
    7 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(a==b||b==c||c==a)
{
cout<<"YES";
}
else
{
cout<<""NO";
}
return 0;
}


Compiler output:
a.cc:15:11: warning: missing terminating " character
   15 | cout<<""NO";
      |           ^
a.cc:15:11: error: missing terminating " character
   15 | cout<<""NO";
      |           ^~
a.cc: In function 'int main()':
a.cc:15:7: error: unable to find string literal operator 'operator""NO' with 'const char [1]', 'long unsigned int' arguments
   15 | cout<<""NO";
      |       ^~~~