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

import java.util.*;
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n[] = new int[3];
      for(int i=0;i<3;i++){
        n[i]=Integer.parseInt(sc.next());
      }
      if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
        n[i]=Integer.parseInt(sc.next());
                              ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      String n[] = new String[3];
      for(int i=0;i<3;i++){
        n[i]=Integer.parseInt(scan.next());
      }
      if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}


Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to String
        n[i]=Integer.parseInt(scan.next());
                             ^
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      String n[] = new String[3];
      for(int i=0;i<3;i++){
        n[i]=Integer.parseInt(sc.next());
      }
      if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
        n[i]=Integer.parseInt(sc.next());
                              ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n[] = new int[3];
      for(int i=0;i<3;i++){
        n[i]=scan.next();
      }
      if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
        n[i]=scan.next();
                      ^
1 error
Language: Java

import java.util.*;
import java.lang.Math.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    int maxNum = 0;
    int sum = 0;
    int remain = 0;
    for(int i=0;i<3;i++){
      num[i] = sc.nextInt(); 
      sum += num[i];
    }
    maxNum = Math.max(num[0],num[1],num[2]);
    remain = sum - maxNum;
    if(maxNum == remain){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:15: error: no suitable method found for max(int,int,int)
    maxNum = Math.max(num[0],num[1],num[2]);
                 ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;
import java.lang.Math.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    int max = 0;
    int sum = 0;
    int remain = 0;
    for(int i=0;i<3;i++){
      num[i] = sc.nextInt(); 
      sum += num[i];
    }
    max = Math.max(num[0],num[1],num[2]);
    remain = sum - max;
    if(max == remain){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:15: error: no suitable method found for max(int,int,int)
    max = Math.max(num[0],num[1],num[2]);
              ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    int max = 0;
    int sum = 0;
    int remain = 0;
    for(int i=0;i<3;i++){
      num[i] = sc.nextInt(); 
      sum += num[i];
    }
    max = Math.max(num[0],num[1],num[2]);
    remain = sum - max;
    if(max == remain){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:14: error: no suitable method found for max(int,int,int)
    max = Math.max(num[0],num[1],num[2]);
              ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

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

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

	if ((a + b + c) % 3 == 0)
	{
		cout << "Yes" << endl
	}
	else
	{
		cout << "No" << endl
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: expected ';' before '}' token
   11 |                 cout << "Yes" << endl
      |                                      ^
      |                                      ;
   12 |         }
      |         ~                             
a.cc:15:37: error: expected ';' before '}' token
   15 |                 cout << "No" << endl
      |                                     ^
      |                                     ;
   16 |         }
      |         ~
Language: C++

# include<bits/stdc++.h>
using namespace std;
int main (){
int a,b,c;
cin>>a>>b>>c;
c.push_back(a);
c.push_back(b);
c.push_back(c);
sort(c.begin(),c.end());
if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
    cout<<"Yes";
}
else {
    cout<<"No";
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
    6 | c.push_back(a);
      |   ^~~~~~~~~
a.cc:7:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
    7 | c.push_back(b);
      |   ^~~~~~~~~
a.cc:8:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
    8 | c.push_back(c);
      |   ^~~~~~~~~
a.cc:9:8: error: request for member 'begin' in 'c', which is of non-class type 'int'
    9 | sort(c.begin(),c.end());
      |        ^~~~~
a.cc:9:18: error: request for member 'end' in 'c', which is of non-class type 'int'
    9 | sort(c.begin(),c.end());
      |                  ^~~
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |      ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |            ^
a.cc:10:20: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |                    ^
a.cc:10:35: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |                                   ^
a.cc:10:41: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |                                         ^
a.cc:10:46: error: invalid types 'int[int]' for array subscript
   10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
      |                                              ^
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;
  }
  if(a+c==b){
    cout<<"Yes"<<endl;
  }
  if(b+c==a){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define be begin()
#define en end()
#define le length()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (__typeof(n) i = 0; i < n; i++)
#define repo(i, n) for (__typeof(n) i = 1; i <= n; i++)
#define eps 1e-6
#define pi 3.141592653589793
#define c(a) cout << a << "\n";
#define a(a)         \
    for (auto i : a) \
        cout << i << " ";
typedef vector<int> vii;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int main()
{

ll a,b,c;
cin>>a>>b>>C;
if(a==b+c || b==a+c || c==a+b) c("Yes")
else c("No")
}

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

#include <iostream>
#include <utility>
#include <vector>
#include <queue>
#include <stack>
#include <array>
#include <algorithm>
#include <numeric>
#include <limits>
#include <string>
#include <regex>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
using ll = long long;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected primary-expression before '<<' token
   23 |     else << "No" << endl;
      |          ^~
Language: C++

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

int main() {
	// your code goes here
	int a,b,c;
	cin a >> b >> c;
	if((a+b+c)%3==0) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'a'
    7 |         cin a >> b >> c;
      |            ^~
      |            ;
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  bool f = false;
  if(a[0] + a[1] == a[2] or a[0] = a[1] + a[2] or a[0] + a[2] == a[1]) f = true;
  if(f) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: lvalue required as left operand of assignment
   10 |   if(a[0] + a[1] == a[2] or a[0] = a[1] + a[2] or a[0] + a[2] == a[1]) f = true;
      |      ~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C

#include<stdio.h>

int main(void) {
  int a, b, c;
  int max, x, y;
  
  scanf("%d %d %d", &a, &b, &c);
  
  if(a >= b && a>= c) {
    max = a;
    x = b;
    y = c;
  }
  else if(b >= a && b>= c) {
    max = b;
    x = a;
    y = c;
  }
  else {
    max = c;
    x = a;
    y = b;
  }
  
  if(max == x + y;) {
    puts("YES");
  }
  else {
    puts("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:18: error: expected ')' before ';' token
   25 |   if(max == x + y;) {
      |     ~            ^
      |                  )
Language: C

#include<stdio.h>
int main(void){
int a,b,c
scanf("%d%d%d",&a,&b,&c);

if((a==b+c)||(b==a+c)||(c==a+b)){
  printf("Yes");
}
else{printf("No");}

}


Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 | scanf("%d%d%d",&a,&b,&c);
      | ^~~~~
main.c:6:10: error: 'c' undeclared (first use in this function)
    6 | if((a==b+c)||(b==a+c)||(c==a+b)){
      |          ^
main.c:6:10: 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);

if((a==b+c)||(b==a+c)||(c==a+b)){
  printf("Yes");
}
else{printf("No");}

}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 | scanf("%d%d%d",a,b,c);
      | ^~~~~
main.c:6:10: error: 'c' undeclared (first use in this function)
    6 | if((a==b+c)||(b==a+c)||(c==a+b)){
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclde<bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:17: error: 'endl' was not declared in this scope
   10 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:10:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

a,b,c=map(int,input().split())
if a+b==c or a+c==b or b+c==a:
  print('Yes')
else:
  print('No')

Compiler output:
a.cc:3:9: warning: multi-character character constant [-Wmultichar]
    3 |   print('Yes')
      |         ^~~~~
a.cc:5:9: 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())
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {

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

    bool can;
    if (a + b == c || b + c == a || c + a == b) cna = true;
    else can = false;

    cout << (can ? "Yes" : "No") << endl;
        

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:49: error: 'cna' was not declared in this scope; did you mean 'can'?
   10 |     if (a + b == c || b + c == a || c + a == b) cna = true;
      |                                                 ^~~
      |                                                 can
Language: C

#include<stdio.h>
int main(){
  int a,b,c;
  if(a=b+c){
    printf("Yes");
  }else if(b=a+c){
    printf("Yes");
  }else if(c=a+b){
    printf("Yes");
  }else{
    printf("No")
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:17: error: expected ';' before '}' token
   11 |     printf("No")
      |                 ^
      |                 ;
   12 |   }
      |   ~
Language: C

#include<stdion.h>
int main(){
  int a,b,c;
  if(a=b+c){
    printf("Yes");
  }else if(b=a+c){
    printf("Yes");
  }else if(c=a+b){
    printf("Yes");
  }else{
    printf("No")
  }
  return 0;
}


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

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:7:23: error: lvalue required as left operand of assignment
    7 | if(a=(b+c)||b=(a+c)||c=(a+b)){printf("Yes");}
      |                       ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected ')' before '{' token
    5 |   if(a>=b&&a>=c){if(a=(b+c){printf("Yes");}else{printf("No");}}
      |                    ~       ^
      |                            )
main.c:5:63: error: expected expression before '}' token
    5 |   if(a>=b&&a>=c){if(a=(b+c){printf("Yes");}else{printf("No");}}
      |                                                               ^
main.c:6:26: error: expected ')' before '{' token
    6 | if(b>=c&&b>=a){if(b=(a+c){printf("Yes");}else{printf("No");}}
      |                  ~       ^
      |                          )
main.c:6:61: error: expected expression before '}' token
    6 | if(b>=c&&b>=a){if(b=(a+c){printf("Yes");}else{printf("No");}}
      |                                                             ^
main.c:7:26: error: expected ')' before '{' token
    7 | if(c>=b&&c>=a){if(c=(b+a){printf("Yes");}else{printf("No");}}
      |                  ~       ^
      |                          )
main.c:7:61: error: expected expression before '}' token
    7 | if(c>=b&&c>=a){if(c=(b+a){printf("Yes");}else{printf("No");}}
      |                                                             ^
Language: C++

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    // start
    int a, b, c;
    cin >> a >> b >> c;
    if (a + b == c)
        cout << "Yes" endl;
    else if (a == b + c)
        cout << "Yes" << endl;
    else if (a + c == b)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    // end

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before 'endl'
   16 |         cout << "Yes" endl;
      |                      ^~~~~
      |                      ;
Language: C++

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

int main() {

  int a, b, c; cin >> a >> b >> c;
  int M;
  M = max({a, b, c});
  if (2 * M = a + b + c) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
    
}


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

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

int main() {

  int a, b, c; cin >> a >> b >> c;
  M = max({a, b, c});
  if (2 * M = a + b + c) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'M' was not declared in this scope
    7 |   M = max({a, b, c});
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'if'
    7 |     if (s == a || s == b || s == c) {
      |     ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'if'
    7 |     if (s == max (a, b, c)) {
      |     ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
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";
  }else if(b == (a+c)){
    cout << "Yes";
  }else if(c = (a+b)){
    cout << "Yes";
  }else{
    cout << "No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |   int a,b,c,;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |   int a,b,c,;
      |             ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std ; 

int main() {

  int a,b,c ; cin >> a >> b >> c ;
  int sum = a+b+c ; 
  int max = max({a,b,c});
  
  cout << (max == sum -max) ? "Yes" : "No" ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'max' cannot be used as a function
    9 |   int max = max({a,b,c});
      |             ~~~^~~~~~~~~
Language: C++

A, B, C = map(int, input().split())
sum = A + B + C
M = max([A, B, C])
if M == sum - M:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = map(int, input().split())
      | ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespece'
    2 | using namespece std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: 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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << "Yes" << 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:9:5: 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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout >> "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

#define ALL(v) (v).begin(),(v).end()

using namespace std ;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;




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

/*　吾輩はやれば出来る子である。 
　　　　∩∩ 
　　　（´･ω･） 
　　 ＿|　⊃／(＿＿_ 
　／　└-(＿＿＿_／ 
　￣￣￣￣￣￣￣ 
　やる気はまだない 

　　 ⊂⌒／ヽ-、＿_ 
　／⊂_/＿＿＿＿ ／ 
　￣￣￣￣￣￣￣　　*/

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

import java.util.Arrays;
import java.util.Scanner;

public class Main {

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

		Integer [] a = new Integer[2] ;
		for(int i =0; i < 3; i++) {
			a[i] = scan.nextInt();
		}

		Arrays.sort(a[2]) ;

		if (a[2] == a[1] + a[0]) {
			result = "Yes" ;
		} else {
			result = "No" ;
		}

        System.out.println(result);
	}
}

Compiler output:
Main.java:15: error: no suitable method found for sort(Integer)
		Arrays.sort(a[2]) ;
		      ^
    method Arrays.sort(int[]) is not applicable
      (argument mismatch; Integer cannot be converted to int[])
    method Arrays.sort(long[]) is not applicable
      (argument mismatch; Integer cannot be converted to long[])
    method Arrays.sort(short[]) is not applicable
      (argument mismatch; Integer cannot be converted to short[])
    method Arrays.sort(char[]) is not applicable
      (argument mismatch; Integer cannot be converted to char[])
    method Arrays.sort(byte[]) is not applicable
      (argument mismatch; Integer cannot be converted to byte[])
    method Arrays.sort(float[]) is not applicable
      (argument mismatch; Integer cannot be converted to float[])
    method Arrays.sort(double[]) is not applicable
      (argument mismatch; Integer cannot be converted to double[])
    method Arrays.sort(Object[]) is not applicable
      (argument mismatch; Integer cannot be converted to Object[])
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (actual and formal argument lists differ in length))
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;


int main(){
  string A, B, C;
  cin >> A >> B >> C;
  string ans = "No";
  if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: no match for 'operator*' (operand types are 'int' and 'const std::__cxx11::basic_string<char>')
   19 |   if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
      |                   ~ ^ ~~~~~~~~~~~~
      |                   |      |
      |                   int    const std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = __cxx11::basic_string<char>; _Compare = __cxx11::basic_string<char>]':
a.cc:19:26:   required from here
   19 |   if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
      |                       ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: no match for call to '(std::__cxx11::basic_string<char>) (const std::__cxx11::basic_string<char>&, const std::__cxx11::basic_string<char>&)'
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |   else printf("No")
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include <cstdio>
using namespace std;

int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if ((a+b+c)%2 == 0 && ((a+b+c)/2 == a || (a+b+c)/2 == b || (a+b+c)/2 == c) {
    printf("Yes\n");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:77: error: expected ')' before '{' token
    7 |   if ((a+b+c)%2 == 0 && ((a+b+c)/2 == a || (a+b+c)/2 == b || (a+b+c)/2 == c) {
      |      ~                                                                      ^~
      |                                                                             )
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before ';' token
    5 |   int a, b, c, p,;
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
    7 |   int n = a+b+c-max;
      |           ~~~~~^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'max' cannot be used as a function
    6 |   int max = max({a,b,c});
      |             ~~~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before '}' token
    6 |   int max = ({a,b,c});
      |                    ^
      |                    ;
Language: C++

#include<stdio.h>
#include<stlib.h>

int main(void){
  int a,b,c;
  if(abs(a-b)==c){
    printf("Yes\n");
  }
   else{
     printf("No\n");
   }
  
  return 0;
}

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

import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //3つのキャンディーパックを２人に分ける
        int a = sc.nextInt(); //キャンディーa
        int b = sc.nextInt(); //キャンディーb
        int c = sc.nextInt(); //キャンディーc
        
        if(a+b==c || b+c==a || a+c==b){
            System.out.println(YES);
        }
        else{
            System.out.println(NO);
        }
    }     
}


Compiler output:
Main.java:11: error: cannot find symbol
            System.out.println(YES);
                               ^
  symbol:   variable YES
  location: class Main
Main.java:14: error: cannot find symbol
            System.out.println(NO);
                               ^
  symbol:   variable NO
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //3つのキャンディーパックを２人に分ける
        int a = sc.nextInt(); //キャンディーa
        int b = sc.nextInt(); //キャンディーb
        int c = sc.nextInt(); //キャンディーc
        
        if(a+b=c || b+c=a || a+c=b){
            System.out.println(YES);
        }
        else{
            System.out.println(NO);
        }
    }     
}


Compiler output:
Main.java:10: error: unexpected type
        if(a+b=c || b+c=a || a+c=b){
            ^
  required: variable
  found:    value
Main.java:10: error: bad operand types for binary operator '||'
        if(a+b=c || b+c=a || a+c=b){
                 ^
  first type:  int
  second type: int
Main.java:10: error: bad operand types for binary operator '||'
        if(a+b=c || b+c=a || a+c=b){
                          ^
  first type:  int
  second type: int
Main.java:11: error: cannot find symbol
            System.out.println(YES);
                               ^
  symbol:   variable YES
  location: class Main
Main.java:14: error: cannot find symbol
            System.out.println(NO);
                               ^
  symbol:   variable NO
  location: class Main
5 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int ans = 3;
	if (a == b && b == c) {
		cout << "1" << endl;
		return 0;
	}
	if (a == b) {
		ans--;
	}
	if (b == c){
		ans--;
		}
	if (a == c) {
		ans--;
	}
	cout << ans << endl;
	return 0;
}
#include <iostream>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int ab, ac, bc;
	ab = a + b;
	ac = a + c;
	bc = b + c;

	if (a == bc || b == ac || c == ab) {
		cout << "Yes" << endl;
		return 0;
	}
	cout << "No" << endl;
	return 0;
}


Compiler output:
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  cout << ( a+b+c == 2*max({a,b,c}) ? "Yes" : "No")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:52: error: expected ';' before '}' token
   21 |   cout << ( a+b+c == 2*max({a,b,c}) ? "Yes" : "No")
      |                                                    ^
      |                                                    ;
   22 | }
      | ~
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;
  }
  if((a + c) == b) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  
  if((b + c) == a) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before ',' token
   12 |     cout <, "No" << endl;
      |           ^
a.cc:12:18: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout <, "No" << endl;
      |             ~~~~~^~~~~~~
Language: C++

#include <iostream>
int main(void) {
  int a,b,c;
  if(a + b == c) {
    cout << "Yes" << endl;
  } else if (a + c == b) {
    cout << "Yes" << endl;
  } else if (b + c == a) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

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

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

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

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

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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |   if((a+b+c)%2=0)
      |      ~~~~~~~^~
Language: C++

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

       

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a>>b>>c;
      |      ^~
      |      ;
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     if(a[0]+a[1]==a[2])ans="Yes";
      |                        ^~~
      |                        abs
a.cc:14:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     else ans = "No";
      |          ^~~
      |          abs
a.cc:15:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |       cout << ans << endl;
      |               ^~~
      |               abs
Language: C++

#include<iostream>
using namespace std;

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

  bool possible = (a + b == c) || (a + c == b) || (b + c == a);
  cout << possible ? "Yes" : "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << possible ? "Yes" : "No" << endl;
      |                              ~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

  if((a + b + c) % 2 == 0) {
    cout << 'Yes' << endl;
  } else {
    cout << 'No' << endl;
  }
  return 0;

}

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]=new int[3];
    a[0]=sc.nextInt();
      a[1]=sc.nextInt();
      a[2]=sc.nextInt();
    Arrays.sort(a);
      if(a[2]==a[1]+a[0]){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }}


Compiler output:
Main.java:11: error: cannot find symbol
    Arrays.sort(a);
    ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]=new int[3];
    a[0]=sc.nextInt();
      a[1]=sc.nextInt();
      a[2]=sc.nextInt();
    Arrays.sort(a);
      if(a[2]==a[1]+a[0]){
      System.out.println("Yes");}else{System.out.println("No");}
    }}

Compiler output:
Main.java:11: error: cannot find symbol
    Arrays.sort(a);
    ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void)
{
  int a, b, c;
  set<int> s;
  scanf("%d%d%d", &a, &b, &c);
  s.insert(a), s.insert(b), s.insert(c);
  if (s[0] + s[1] == s[2])
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
    9 |   if (s[0] + s[1] == s[2])
      |        ^
a.cc:9:15: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
    9 |   if (s[0] + s[1] == s[2])
      |               ^
a.cc:9:23: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
    9 |   if (s[0] + s[1] == s[2])
      |                       ^
Language: C++

#include<stdio.h>
int main(void)
{
	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\n");
	}
	else{
		printf("No\n");
	}
	return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~