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

#include <iostream>
using namespace std;

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

cin >> a >> b >> c >> “¥n”;

if(a == b && a == c){
cout << “Yes” << “¥n”;
break;
}
else{
cout << “No” << ”¥n”;
break;
}
return 0;
}


Compiler output:
a.cc:8:23: error: extended character “ is not valid in an identifier
    8 | cin >> a >> b >> c >> “¥n”;
      |                       ^
a.cc:8:23: error: extended character ¥ is not valid in an identifier
a.cc:8:23: error: extended character ” is not valid in an identifier
a.cc:11:9: error: extended character “ is not valid in an identifier
   11 | cout << “Yes” << “¥n”;
      |         ^
a.cc:11:9: error: extended character ” is not valid in an identifier
a.cc:11:18: error: extended character “ is not valid in an identifier
   11 | cout << “Yes” << “¥n”;
      |                  ^
a.cc:11:18: error: extended character ¥ is not valid in an identifier
a.cc:11:18: error: extended character ” is not valid in an identifier
a.cc:15:9: error: extended character “ is not valid in an identifier
   15 | cout << “No” << ”¥n”;
      |         ^
a.cc:15:9: error: extended character ” is not valid in an identifier
a.cc:15:17: error: extended character ” is not valid in an identifier
   15 | cout << “No” << ”¥n”;
      |                 ^
a.cc:15:17: error: extended character ¥ is not valid in an identifier
a.cc:15:17: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:23: error: '\U0000201c\U000000a5n\U0000201d' was not declared in this scope
    8 | cin >> a >> b >> c >> “¥n”;
      |                       ^~~~
a.cc:11:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
   11 | cout << “Yes” << “¥n”;
      |         ^~~~~
a.cc:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
a.cc:15:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
   15 | cout << “No” << ”¥n”;
      |         ^~~~
a.cc:15:17: error: '\U0000201d\U000000a5n\U0000201d' was not declared in this scope
   15 | cout << “No” << ”¥n”;
      |                 ^~~~
a.cc:16:1: error: break statement not within loop or switch
   16 | break;
      | ^~~~~
Language: C++

#include<iostream.h>
int main(){
long long int a,b,c;
cin>>a>>b>>c;
if(a==b&&b==c){
cout<<"Yes"<<endl;
}
else {
cout<<"No"<<endl;
}


}

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

#include <string>
#include <iostream>
int main()
{
	string input;
	vector<int> length;
	while(getline(std::cin, input, ' '))#include <string>
#include <iostream>
int main()
{
	string input;
	vector<int> length;
	while(getline(std::cin, input, ' '))
	{
		length.emplace_back(std::stoi(input));
	}

	if(length.empty())
	{
		std::cout<< "No" << std::endl;
		return 0;
	}
	for(int& num : length)
	{
		if(num != length[0])
		{
			std::cout<< "No" << std::endl;
		}
	}
	std::cout<< "Yes" << std::endl;
	return 0;
}

	{
		length.emplace_back(std::stoi(input));
	}

	for(int& num : length)
	{
		if(num != length[0])
		{
			std::cout<< "No" << std::endl;
		}
	}
	std::cout<< "Yes" << std::endl;
	return 0;
}


Compiler output:
a.cc:7:45: error: stray '#' in program
    7 |         while(getline(std::cin, input, ' '))#include <string>
      |                                             ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string input;
      |         ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<int> length;
      |         ^~~~~~
a.cc:6:16: error: expected primary-expression before 'int'
    6 |         vector<int> length;
      |                ^~~
a.cc:7:33: error: 'input' was not declared in this scope; did you mean 'int'?
    7 |         while(getline(std::cin, input, ' '))#include <string>
      |                                 ^~~~~
      |                                 int
a.cc:7:46: error: 'include' was not declared in this scope
    7 |         while(getline(std::cin, input, ' '))#include <string>
      |                                              ^~~~~~~
a.cc:9:1: error: expected primary-expression before 'int'
    9 | int main()
      | ^~~
a.cc:35:17: error: 'length' was not declared in this scope
   35 |                 length.emplace_back(std::stoi(input));
      |                 ^~~~~~
a.cc:35:47: error: 'input' was not declared in this scope; did you mean 'int'?
   35 |                 length.emplace_back(std::stoi(input));
      |                                               ^~~~~
      |                                               int
a.cc:38:24: error: 'length' was not declared in this scope
   38 |         for(int& num : length)
      |                        ^~~~~~
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 cout<<"No"<<endl;
}

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

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

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

# include <iostream>
# include <cmath>
# include <algorithm>
# include <stdio.h>
# include <cstdint>
# include <cstring>
# include <string>
# include <cstdlib>
# include <vector>
# include <bitset>
# include <map>
# include <queue>
# include <ctime>
# include <stack>
# include <set>
# include <list>
# include <random>
# include <deque>
# include <functional>
# include <iomanip>
# include <sstream>
# include <fstream>
# include <complex>
# include <numeric>
# include <immintrin.h>
# include <cassert>
# include <array>
# include <tuple>
# include <unordered_set>
# include <unordered_map>
using namespace std;




int main(int argc, const char * argv[]) {
  //  freopen("/Users/danya.smelskiy/Documents/Danya/Resources/input.txt","r",stdin);
    ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    cin >> a[0] >> a[1] >> a[2];
    sort(a, a + 2);
    cout << ((((a[0] == a[1]) && (a[1] == a[2])) &&  a[0] + a[1] >= a[2]) ? "Yes\n" : "No\n");
}



Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:39:12: error: 'a' was not declared in this scope
   39 |     cin >> a[0] >> a[1] >> a[2];
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	if (a == b and a == c and b==c){
			cout << "Yes";
		}
		else{
			cout << "No";
		     }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'a' was not declared in this scope
    4 |         if (a == b and a == c and b==c){
      |             ^
a.cc:4:18: error: 'b' was not declared in this scope
    4 |         if (a == b and a == c and b==c){
      |                  ^
a.cc:4:29: error: 'c' was not declared in this scope
    4 |         if (a == b and a == c and b==c){
      |                             ^
Language: C++

#include <iostream>
#include <string.h>
#include <string>


using namespace std;
int main() {
	int N;
	std::string s;

	int N, Q; cin >> N >> Q;
	string s; cin >> s;
	int count = 0;
	bool isRed = false;
	for (int i = 0; i < N; i++) {
		if (s[i] == 'R') {
			count += 1;
			if(count > int(N/2)){ cout << "Yes" << endl; }
			

		}
		
	}
	cout << "No" << endl; 







	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: redeclaration of 'int N'
   11 |         int N, Q; cin >> N >> Q;
      |             ^
a.cc:8:13: note: 'int N' previously declared here
    8 |         int N;
      |             ^
a.cc:12:16: error: redeclaration of 'std::string s'
   12 |         string s; cin >> s;
      |                ^
a.cc:9:21: note: 'std::string s' previously declared here
    9 |         std::string s;
      |                     ^
Language: C++

#include <iostream>
#include <string.h>
#include <string>


using namespace std;
int main() {
	int N;
	std::string s;

	int N, Q; cin >> N >> Q;
	string s; cin >> s;
	int count = 0;
	bool isRed = false;
	for (int i = 0; i < N; i++) {
		if (s[i] == 'R') {
			count += 1;
			if(count > int(N/2)){ cout << "Yes" << endl; }
			else { cout << "No" << endl; }

		}
	}








	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: redeclaration of 'int N'
   11 |         int N, Q; cin >> N >> Q;
      |             ^
a.cc:8:13: note: 'int N' previously declared here
    8 |         int N;
      |             ^
a.cc:12:16: error: redeclaration of 'std::string s'
   12 |         string s; cin >> s;
      |                ^
a.cc:9:21: note: 'std::string s' previously declared here
    9 |         std::string s;
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    if(a+b>c&&c+a>b&&b+c>a)
    cout << 'Yes' << endl;
  　else if(a=b=c) cout << 'Yes' << endl;
    else cout << 'No' << endl;
    return 0;
}


Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:8:3: error: extended character 　 is not valid in an identifier
    8 |   　else if(a=b=c) cout << 'Yes' << endl;
      |   ^
a.cc:8:28: warning: multi-character character constant [-Wmultichar]
    8 |   　else if(a=b=c) cout << 'Yes' << endl;
      |                            ^~~~~
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
    9 |     else cout << 'No' << endl;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: '\U00003000else' was not declared in this scope
    8 |   　else if(a=b=c) cout << 'Yes' << endl;
      |   ^~~~~~
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout << 'No' << endl;
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    int counter=0;
    cin>>a;
    vector <char> b;

    for(int i=0;i<a;i++)
    {
        char A;
        cin>>A;
        b.push_back(A);
    }

    for(int i=0;i<a;i++)
    {
        if(A[i]=='R')
        {
            counter++;
        }
    }

    if(counter>a)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'A' was not declared in this scope
   19 |         if(A[i]=='R')
      |            ^
Language: C++

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

using ll=long long;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

main(){
  vector<int> a(3);
for (int i=0;i<3;i++) cin >> a[i];
sort(a.begin(),a.end());
if(intpow(a[3],2)==intpow(a[1],2)+intpow(a[2],2) cout << "Yes" << endl;
else cout << "No" << endl;
}


Compiler output:
a.cc:45:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   45 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:49:49: error: expected ';' before 'cout'
   49 | if(intpow(a[3],2)==intpow(a[1],2)+intpow(a[2],2) cout << "Yes" << endl;
      |                                                 ^~~~~
      |                                                 ;
a.cc:50:1: error: expected primary-expression before 'else'
   50 | else cout << "No" << endl;
      | ^~~~
a.cc:49:72: error: expected ')' before 'else'
   49 | if(intpow(a[3],2)==intpow(a[1],2)+intpow(a[2],2) cout << "Yes" << endl;
      |   ~                                                                    ^
      |                                                                        )
   50 | else cout << "No" << endl;
      | ~~~~
Language: C++

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

Compiler output:
a.cc:6:5: error: cannot declare '::main' to be a global variable
    6 | int main{
      |     ^~~~
a.cc:7:6: error: expected primary-expression before 'int'
    7 |      int A,B,C;
      |      ^~~
a.cc:7:6: error: expected '}' before 'int'
a.cc:6:9: note: to match this '{'
    6 | int main{
      |         ^
a.cc:8:6: error: 'cin' does not name a type
    8 |      cin >> A >> B >> C;
      |      ^~~
a.cc:9:6: error: expected unqualified-id before 'if'
    9 |      if(A == B && A == C)
      |      ^~
a.cc:11:6: error: expected unqualified-id before 'else'
   11 |      else
      |      ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: Java

import java.util.*;

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

        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

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

Compiler output:
Main.java:12: error: package system does not exist
            system.out.println("Yes");
                  ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	
	public String judgeTriangle(int a, int b, int c){
		if(a < 1 || a > 100 || b < 1 || b > 100 || c < 1 || c > 100) return "No";
		if(a != c || b != c) return "No";
		
		if(a + b > c && a + c > b && b + c > a) return "Yes";
		else return "No";
	}
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get integers
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		EquilateralTriangle equilateralTriangle = new EquilateralTriangle();
		
		System.out.println(equilateralTriangle.judgeTriangle(a, b, c));
	}
}


Compiler output:
Main.java:20: error: cannot find symbol
		EquilateralTriangle equilateralTriangle = new EquilateralTriangle();
		^
  symbol:   class EquilateralTriangle
  location: class Main
Main.java:20: error: cannot find symbol
		EquilateralTriangle equilateralTriangle = new EquilateralTriangle();
		                                              ^
  symbol:   class EquilateralTriangle
  location: class Main
2 errors
Language: C


#include<stdio.h>

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

	if (a == b)
		if (b == c)
			printf("Yes");
		else printf("No");
	else printf("No");
	return 0;
}

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

#include <stdio.h>

int main(){
	int n,r,b;
	char *str;
	scanf("%d", &n);
	str = (char *)malloc(n+1);
	scanf("%s", str);
	r=0;
	b=0;
	for(i=0;i<n;i++){
		if(str[i] == 'R') r++;
		else b++;
	}
	if(r>b){
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    7 |         str = (char *)malloc(n+1);
      |                       ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:7:23: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    7 |         str = (char *)malloc(n+1);
      |                       ^~~~~~
main.c:7:23: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:11:13: error: 'i' undeclared (first use in this function)
   11 |         for(i=0;i<n;i++){
      |             ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
//ACBexa
public class ACBexa {
    public static void main(String[] args) throws Exception {
        try (Scanner sc = new Scanner(System.in)) {
            while (sc.hasNextInt()) {
                String s = "No";
                int a = Integer.parseInt(sc.next());
                int b = Integer.parseInt(sc.next());
                int c = Integer.parseInt(sc.next());
                if(a==b && b==c && b>0) s = "YES";
                System.out.println(s);
            }
        }
    }
}

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

#include <iostream>

using namespace std;

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


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

#include<math.h>
#include<vector>
#include<iomanip>
using namespace std;
int main(){
    int a,b,c;
    cin >>a >>b >>c;
    if(a==b&&b==c){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >>a >>b >>c;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<iomanip>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

s = list(map(int, input().split()));
[A, B, C] = s;

if A == B and B == C:
    print("Yes");
else:
    print("No")

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = list(map(int, input().split()));
      | ^
a.cc:2:1: error: expected unqualified-id before '[' token
    2 | [A, B, C] = s;
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if A == B and B == C:
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else:
      | ^~~~
Language: C++

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

using ll=long long;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x) return x%1000000007;

main(){
  vector<int> a(3);
for (int i=0;i<3;i++) cin >> a[i];
sort(a.first(),a.end());
if(intpow(a[3],2)==intpow(a[1)],2)+intpow(a[2],2) cout << "Yes" << endl;
else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int div1(ll)':
a.cc:45:16: error: named return values are no longer supported
   45 | int div1(ll x) return x%1000000007;
      |                ^~~~~~
a.cc:50:8: error: 'class std::vector<int>' has no member named 'first'
   50 | sort(a.first(),a.end());
      |        ^~~~~
a.cc:51:30: error: expected ']' before ')' token
   51 | if(intpow(a[3],2)==intpow(a[1)],2)+intpow(a[2],2) cout << "Yes" << endl;
      |                              ^
      |                              ]
a.cc:51:26: error: too few arguments to function 'int intpow(int, int)'
   51 | if(intpow(a[3],2)==intpow(a[1)],2)+intpow(a[2],2) cout << "Yes" << endl;
      |                    ~~~~~~^~~~~
a.cc:19:5: note: declared here
   19 | int intpow(int x,int y){
      |     ^~~~~~
a.cc:51:31: error: expected ')' before ']' token
   51 | if(intpow(a[3],2)==intpow(a[1)],2)+intpow(a[2],2) cout << "Yes" << endl;
      |   ~                           ^
      |                               )
a.cc:51:31: error: expected primary-expression before ']' token
a.cc:53:1: warning: no return statement in function returning non-void [-Wreturn-type]
   53 | }
      | ^
Language: C++

#inclue <iostream>

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

	if (a >= b and a >= c){
		n = a*a - b*b -c*c;
		if (n==0):{
			cout >> "Yes";
		}
		else:{
			cout >> "No";
		     }
	}
	else if ( b >= a and b >= c){
		n = b*b - a*a - c*c;
		if (n==0):{
			cout >> "Yes";
		}
		else:{
			cout >> "No";
		}
	}
	else{
		n = c*c - a*a - b*b;
		if (n==0):{
			cout >> "Yes";
		}
		else:{
			cout >> "No";
		}
	}
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b >> c;
      |         ^~~
a.cc:8:17: error: 'n' was not declared in this scope
    8 |                 n = a*a - b*b -c*c;
      |                 ^
a.cc:9:26: error: expected primary-expression before ':' token
    9 |                 if (n==0):{
      |                          ^
a.cc:12:21: error: expected primary-expression before ':' token
   12 |                 else:{
      |                     ^
a.cc:17:17: error: 'n' was not declared in this scope
   17 |                 n = b*b - a*a - c*c;
      |                 ^
a.cc:18:26: error: expected primary-expression before ':' token
   18 |                 if (n==0):{
      |                          ^
a.cc:21:21: error: expected primary-expression before ':' token
   21 |                 else:{
      |                     ^
a.cc:26:17: error: 'n' was not declared in this scope
   26 |                 n = c*c - a*a - b*b;
      |                 ^
a.cc:27:26: error: expected primary-expression before ':' token
   27 |                 if (n==0):{
      |                          ^
a.cc:30:21: error: expected primary-expression before ':' token
   30 |                 else:{
      |                     ^
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
    cout<<"No"<<endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if(A=B&&B=C)
      |        ~^~~
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{
    cout << "No" << endl;
  }
}

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>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected '}' at end of input
   12 |          cout << "No" << endl;
      |                               ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<((a==b&&b==c):"Yes\n":"No\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ')' before ':' token
    7 |   cout<<((a==b&&b==c):"Yes\n":"No\n");
      |         ~            ^
      |                      )
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
    cout<<"No"<<endl;
}
    

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

#include<stdio.h>
int MAIN(){
	int A[3];
	for(int i=0;i<3;i++){
		scanf("%D",&A[i]);
	}
	if(A[0]==A[1]&&A[0]==A[2]){
		printf("Yes");
	}
	else printf("No");
	return 0;
}

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

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


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

#include<stdio.h>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin <<  a <<  b  <<  c;
      |   ^~~
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 | using namespace std;
a.cc:10:10: error: expected primary-expression before '>' token
   10 |   if(a+b=>c && b+c>=a && a+c>=b ){
      |          ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "Yes"  << endl;}
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:23: error: 'endl' was not declared in this scope
   12 |     cout << "Yes"  << endl;}
      |                       ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:13:8: error: 'cout' was not declared in this scope
   13 |   else cout <<  "No" <<endl;
      |        ^~~~
a.cc:13:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |   else cout <<  "No" <<endl;
      |                        ^~~~
a.cc:13:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
int MAIN(){
	int A[3];
	for(int i=0;i<3;i++){
		scanf("%D",A[i]);
	}
	if(A[0]==A[1]&&A[0]==A[2]){
		printf("Yes");
	}
	else printf("No");
	return 0;
}

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

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

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

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


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


#include<stdio.h>

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

	if (a == b)
		if (b == c)
			printf("Yes");
		else printf("No");
	else printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d %d %d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
  cin>>a>>b>>c;
  if(a==b&&b==c){
	cout>>Yes>>endl;
  }else{
	cout>>No>>endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'Yes' was not declared in this scope
    7 |         cout>>Yes>>endl;
      |               ^~~
a.cc:9:15: error: 'No' was not declared in this scope
    9 |         cout>>No>>endl;
      |               ^~
Language: C

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

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

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

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> A >> B >> C;
      |   ^~~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(A == B && B == C)
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 |   else
      |   ^~~~
Language: C

#include<stdio.h>
int MAIN(){
	int A[3];
	for(int i=0;i<3;i++){
		scanf("%d",A[i]);
	}
	if(A[0]==A[1]&&A[0]==A[2]){
		printf("Yes");
	}
	else printf("No");
	return 0;
}

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

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

Compiler output:
Main.java:8: error: bad operand types for binary operator '&&'
		if(A=B&&A>=C){
		      ^
  first type:  int
  second type: boolean
Main.java:8: error: incompatible types: int cannot be converted to boolean
		if(A=B&&A>=C){
		    ^
2 errors
Language: C++

L = [int(i) for i in input().split()]
N = sorted(L)
if N[0] < N[2]+ N[1] and N[1] < N[0] + N[2] and N[2] < N[1] + N[0] and N[0]==N[2]:
    print("Yes")
else:
    print("No")


Compiler output:
a.cc:1:1: error: 'L' does not name a type
    1 | L = [int(i) for i in input().split()]
      | ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>A>>B>>C;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if((A==B)&&(B==C)&&(A==C)) cout<<"yes";
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else{
      | ^~~~
Language: C++

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

}

Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

#include<stdio.h>
int MAIN(){
	int A[3];
	for(int i=0;i<3;i++){
		scanf("%d",A[i]);
	}
	if(A[0]==A[1]&&A[0]==A[200]){
		printf("Yes");
	}
	else printf("No");
	return 0;
}

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin<<a<<b<<c;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 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:9:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout<< "No" <<endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:17: 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected '(' before 'else'
   14 |   if else(A == B == C == 0) {
      |      ^~~~
      |      (
a.cc:18:5: error: expected '(' before 'cout'
   18 |     cout << "No" << endl;
      |     ^~~~
      |     (
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: Java


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 && A == C && B == C)
	System.out.println("Yes");
else
		System.out.println("No");
	}
}

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

#include<stdio.h>
int MAIN(){
	int A[3];
	for(int i=0;i<3;i++){
		scanf("%d",A[i]);
	}
	if(A==B&&C==B&&A==C){
		printf("Yes");
	}
	else printf("No");
	return 0;
}

Compiler output:
main.c: In function 'MAIN':
main.c:7:15: error: 'B' undeclared (first use in this function)
    7 |         if(A==B&&C==B&&A==C){
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:18: error: 'C' undeclared (first use in this function)
    7 |         if(A==B&&C==B&&A==C){
      |                  ^
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 cout << No <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: 'Yes' was not declared in this scope
    6 | if(a == b && b == c) cout << Yes << endl;
      |                              ^~~
a.cc:7:14: error: 'No' was not declared in this scope
    7 | else cout << No <<endl;
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
class Solution {
  int a[3];
public:
  void run() {
    cin >> a[0] >> a[1] >> a[2];
    for (int i = 0; i < n; ++i) {
      if (i != 2) swap(a[i], a[2]);
      if (a[0] == a[1] and a[0] + a[1] > a[2]) cout << "Yes\n", exit(0);
      if (i != 2) swap(a[i], a[2]);
    }
    cout << "No\n";
  }     
};
int main() {
  ios_base::sync_with_stdio(false); cin.tie(0);
  Solution().run();
}


Compiler output:
a.cc: In member function 'void Solution::run()':
a.cc:10:25: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |     for (int i = 0; i < n; ++i) {
      |                         ^
      |                         yn
Language: C

#include <stdio.h>

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

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'whi'
    7 |         whi
      |         ^~~
main.c:8:15: error: expected declaration specifiers or '...' before string constant
    8 |         scanf("%d",&a);
      |               ^~~~
main.c:8:20: error: expected declaration specifiers or '...' before '&' token
    8 |         scanf("%d",&a);
      |                    ^
Language: C++

#include <stdio.h>

int main() {
	int a, b, c;
	scanf('%d',&a);
	scanf('%d',&b);
	scanf('%d',&c);
	if(a+b>=c&&b+c>=a&&c+a>=b){
		printf('Yes');
	}else{
		printf('No');
	}
	return 0;
}

Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         scanf('%d',&a);
      |               ^~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         scanf('%d',&b);
      |               ^~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         scanf('%d',&c);
      |               ^~~~
a.cc:9:24: warning: multi-character character constant [-Wmultichar]
    9 |                 printf('Yes');
      |                        ^~~~~
a.cc:11:24: warning: multi-character character constant [-Wmultichar]
   11 |                 printf('No');
      |                        ^~~~
a.cc: In function 'int main()':
a.cc:5:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 |         scanf('%d',&a);
      |               ^~~~
      |               |
      |               int
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:6:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |         scanf('%d',&b);
      |               ^~~~
      |               |
      |               int
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |         scanf('%d',&c);
      |               ^~~~
      |               |
      |               int
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |                 printf('Yes');
      |                        ^~~~~
      |                        |
      |                        int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:11:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |                 printf('No');
      |                        ^~~~
      |                        |
      |                        int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main(){
  int a[3],b,ci,j,count=0,ans=0;
  cin >> a[0] >> a[1] >> a[2];
  sort(a,a+3);
  if(a[2] > (a[0]+a[1])){
    cout << "Yes";
  }else{
  cout "No";
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected ';' before string constant
   12 |   cout "No";
      |       ^~~~~
      |       ;
Language: C

#include <stdio.h>

int main() {
    int a, b, c;
    scanf(“%d %d %d”,&a, &b, &c);
    if (a == b && b == c){
        printf(“Yes”);
    } else {
        printf(“No”);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: stray '\342' in program
    5 |     scanf(<U+201C>%d %d %d<U+201D>,&a, &b, &c);
      |           ^~~~~~~~
main.c:5:12: error: expected expression before '%' token
    5 |     scanf(“%d %d %d”,&a, &b, &c);
      |            ^
main.c:5:20: error: stray '\342' in program
    5 |     scanf(<U+201C>%d %d %d<U+201D>,&a, &b, &c);
      |                           ^~~~~~~~
main.c:7:16: error: stray '\342' in program
    7 |         printf(<U+201C>Yes<U+201D>);
      |                ^~~~~~~~
main.c:7:20: error: stray '\342' in program
    7 |         printf(<U+201C>Yes<U+201D>);
      |                           ^~~~~~~~
main.c:7:17: error: 'Yes' undeclared (first use in this function)
    7 |         printf(“Yes”);
      |                 ^~~
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: stray '\342' in program
    9 |         printf(<U+201C>No<U+201D>);
      |                ^~~~~~~~
main.c:9:19: error: stray '\342' in program
    9 |         printf(<U+201C>No<U+201D>);
      |                          ^~~~~~~~
main.c:9:17: error: 'No' undeclared (first use in this function)
    9 |         printf(“No”);
      |                 ^~
Language: C++

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

int main(){
  int a[3],b,ci,j,count=0,ans=0;
  cin >> a[0] >> a[1] >> a[2];
  sort(a,a+3);
  if(a[2] > (a[0]+a[1])){
    cout << "Yes";
  }else{}
  cout "No";
  return 0;
}


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

import java.util.*;
import java.math.BigDecimal;

public class ACBexa {
    public static void main(String[] args) throws Exception {
        try (Scanner sc = new Scanner(System.in)) {
            while (sc.hasNextInt()) {
                String s = "No";
                int a = Integer.parseInt(sc.next());
                int b = Integer.parseInt(sc.next());
                int c = Integer.parseInt(sc.next());
                if(a==b && b==c) s = "YES";
                System.out.println(s);
            }
        }
    }
}

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

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


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

import java.util.*;


public class Main {
    public static void Main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String x[] = line.split(" ");
        int hen1 = Integer.valueOf(x[0]);
        int hen2 = Integer.valueOf(x[1]);
        int hen3 = Integer.valueOf(x[2]);
        if(hen1==hen2&&hen2==hen3&&hen1==hen3){
            System.out.println("Yes");
        }else{
            System.out.println("No")
        }
    }
}

Compiler output:
Main.java:15: error: ';' expected
            System.out.println("No")
                                    ^
1 error
Language: C

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

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

#include <bits/stdc++.h>
using namespace std;
  int A,B,C;
  cin >> A >> B >> C;
  if(A == B && B == C)
    cout << "YES" << endl ;
  else 
    cout << "NO" << endl;

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> A >> B >> C;
      |   ^~~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(A == B && B == C)
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#include <tr1/unordered_map>
#define ll long long
#define il inline
const ll inf = 1e9;

namespace io {

#define in(a) a = read()
#define out(a) write(a)
#define outn(a) out(a), putchar('\n')

#define I_int ll
inline I_int read() {
    I_int x = 0, f = 1;
    char c = getchar();
    while (c < '0' || c > '9') {
        if (c == '-') f = -1;
        c = getchar();
    }
    while (c >= '0' && c <= '9') {
        x = x * 10 + c - '0';
        c = getchar();
    }
    return x * f;
}
char F[200];
inline void write(I_int x) {
    if (x == 0) return (void) (putchar('0'));
    I_int tmp = x > 0 ? x : -x;
    if (x < 0) putchar('-');
    int cnt = 0;
    while (tmp > 0) {
        F[cnt++] = tmp % 10 + '0';
        tmp /= 10;
    }
    while (cnt > 0) putchar(F[--cnt]);
}
#undef I_int

}
using namespace io;

using namespace std;

#define N 2000100

int a = read(), b = read(). c = read();

int main() {
	if(a == b && b == c && a) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:48:29: error: request for member 'c' in 'io::read()', which is of non-class type 'long long int'
   48 | int a = read(), b = read(). c = read();
      |                             ^
a.cc: In function 'int main()':
a.cc:51:27: error: 'c' was not declared in this scope
   51 |         if(a == b && b == c && a) puts("Yes");
      |                           ^
Language: C++

A, B, C = map(int, input().split())
if A == B and B == C:
    print('YES')
else:
    print('NO')


Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('YES')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = map(int, input().split())
      | ^