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

#include<iostream>

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

Compiler output:
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:6:20: error: 'max' cannot be used as a function
    6 |   int max=max(a,max(b,c));
      |                 ~~~^~~~~
a.cc:6:25: error: 'max' cannot be used as a function
    6 |   int max=max(a,max(b,c));
      |                         ^
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << (max==min ? "Yes" : "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:8:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << (max==min ? "Yes" : "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)
      |     ^~~~
Language: Java

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

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

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    if(a == b + c || b = c + a || c = a + b) {
      System.out.println("YES");
    } else {
      System.out.println("NO");
    }
  }  
}

Compiler output:
Main.java:10: error: bad operand types for binary operator '||'
    if(a == b + c || b = c + a || c = a + b) {
                  ^
  first type:  boolean
  second type: int
Main.java:10: error: bad operand types for binary operator '||'
    if(a == b + c || b = c + a || c = a + b) {
                               ^
  first type:  int
  second type: int
2 errors
Language: C++

#include <iostream>
using namespace std;

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

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

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


int main(){

  int vector<int> v(3);
  for (int x:v) {
    cin >> v.at(x);
  }

  sort(v.begin(),v.begin());
  if (v.at(1)+v.at(0) == v.at(2)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid declarator before 'v'
    7 |   int vector<int> v(3);
      |                   ^
a.cc:8:14: error: 'v' was not declared in this scope
    8 |   for (int x:v) {
      |              ^
a.cc:12:8: error: 'v' was not declared in this scope
   12 |   sort(v.begin(),v.begin());
      |        ^
Language: C++

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

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std; int main() {     int a, b, c;     cin >> a >> b >> c;     int maxn = max({a, b, c}), sum = a + b + c;     if (sum == 2 * maxn)         cout << "Yes" << endl;     else         cout << "No" << endl;     return 0; }
      |                          ^~~~~
/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++

//https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8 より
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

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

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };
    ($iter:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
    };
    ($iter:expr, chars) => {
        read_value!($iter, String).chars().collect::<Vec<char>>()
    };
    ($iter:expr, usize1) => {
        read_value!($iter, usize) - 1
    };
    ($iter:expr, $t:ty) => {
        $iter.next().unwrap().parse::<$t>().expect("Parse error")
    };
}

//

fn run() {
    input! {
        a: [u32; 3],
    }
    let s: u32 = a.iter().sum();
    if s % 3 != 0 {
        println!("No");
    } else {
        println!("Yes");
    }
}

fn main() {
    run();
}


Compiler output:
a.cc:33:10: error: too many decimal points in number
   33 |         (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:2:1: error: 'macro_rules' does not name a type
    2 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:19:1: error: 'macro_rules' does not name a type
   19 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:28:1: error: 'macro_rules' does not name a type
   28 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:48:1: error: 'fn' does not name a type
   48 | fn run() {
      | ^~
a.cc:60:1: error: 'fn' does not name a type
   60 | fn main() {
      | ^~
Language: C++

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

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if((a+b=c) ||(a=b+c) ||(b=a+c)){
    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=b+c) ||(b=a+c)){
      |       ~^~
Language: C++

a=list(map(int,input().split())).sort()
if a[0]+a[1]==a[2]:
  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=list(map(int,input().split())).sort()
      | ^
Language: C++

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

int a,b,c;

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


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

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

int main(){

    int a,b,c;
    cin>>a>>b>>c;
    cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;









    return 0;
}

Compiler output:
a.cc:8:59: warning: missing terminating " character
    8 |     cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;
      |                                                           ^
a.cc:8:59: error: missing terminating " character
    8 |     cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;
      |                                                           ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:18:5: error: expected primary-expression before 'return'
   18 |     return 0;
      |     ^~~~~~
a.cc:8:59: error: expected ')' before 'return'
    8 |     cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;
      |           ~                                               ^
      |                                                           )
......
   18 |     return 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";
  }else{
    cout << "No;
  }
}

Compiler output:
a.cc:9:13: warning: missing terminating " character
    9 |     cout << "No;
      |             ^
a.cc:9:13: error: missing terminating " character
    9 |     cout << "No;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> data = {a, b, c}
  sort(data.begin(), data.end());
  if (a + b == c) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'sort'
    8 |   sort(data.begin(), data.end());
      |   ^~~~
Language: C++

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

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

#include <iostream>

using namespace std;

int main(){
    int a;
    int b;
    int 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:9:20: error: expected unqualified-id before '>' token
    9 |     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 = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a == b + c){
			System.out.println("Yes");
        }else if(b == a + c){
			System.out.println("Yes");
   		}else if(c == a + b){
			System.out.println("Yes");
        }else
			System.out.println("No");
    }
	}

}


Compiler output:
Main.java:21: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'if'
    7 |   if (A>B & A>C & A == B+C){
      |   ^~
a.cc:10:4: error: 'else' without a previous 'if'
   10 |    else if (B>C & B>A & B == A+C){
      |    ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: expected primary-expression before ')' token
    7 |         cout<< ((a+c==b || b+c==a ||)? "Yes":"No")<<endl;
      |                                     ^
Language: Java

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

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

a,b,c = [int(i) for i in input().split()]
if a == b or b == c or a == c:
    print("Yes")
elif a == b+c or b == a+c or c == a+b:
    print("Yes")
else:
    print("No")

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

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

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

Compiler output:
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else{
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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 (c+b == a) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No"  << endl;
}


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

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

Compiler output:
main.c: In function 'main':
main.c:4:30: error: expected ';' before 'if'
    4 |  scanf("%d %d %d\n",&a,&b,&c)
      |                              ^
      |                              ;
    5 |  if(a-b-c==0 || b-a-c==0 ||c-a-b==0)
      |  ~~                           
main.c:7:3: error: 'else' without a previous 'if'
    7 |   else
      |   ^~~~
Language: C

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

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

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

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

int main(){
 int a,b,c,d,e;
 cin >> a >> b >> c;
 d = max{(a,b,c)};
 e = a+ b+c-d;

 if(d == e){
 	cout << "Yes" << endl;
 }
 else{
 	cout << "No" << endl;
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    7 |  d = max{(a,b,c)};
      |      ^~~
Language: C++

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

int main(){
 int a,b,c,d;
 cin >> a >> b >> c;
 d = max{(a,b,c)};
 e = a+ b+c-d;

 if(d == e){
 	cout << "Yes" << endl;
 }
 else{
 	cout << "No" << endl;
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    7 |  d = max{(a,b,c)};
      |      ^~~
a.cc:8:2: error: 'e' was not declared in this scope
    8 |  e = a+ b+c-d;
      |  ^
Language: Java

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

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


Compiler output:
Main.java:16: error: cannot find symbol
            System.out.pritnln("No");
                      ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
1 error
Language: Java

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

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.next();
        int b = sc.next();
        int c = sc.next();
        if(a == b+ c || b == c +a || c == a+b){
            System.out.println("Yes");
        }else{
            System.out.pritnln("No");
        }        
    }
}


Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
        int a = sc.next();
                       ^
Main.java:11: error: incompatible types: String cannot be converted to int
        int b = sc.next();
                       ^
Main.java:12: error: incompatible types: String cannot be converted to int
        int c = sc.next();
                       ^
Main.java:16: error: cannot find symbol
            System.out.pritnln("No");
                      ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
4 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: expected ';' before 'cout'
    7 |   if (sum - max((a,b),c) == max((a,b),c) cout << "Yes" << endl;
      |                                         ^~~~~
      |                                         ;
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else cout << "No" << endl;
      |   ^~~~
a.cc:7:64: error: expected ')' before 'else'
    7 |   if (sum - max((a,b),c) == max((a,b),c) cout << "Yes" << endl;
      |      ~                                                         ^
      |                                                                )
    8 |   else cout << "No" << endl;
      |   ~~~~
Language: C++

#include<iostram>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b+c or b==a+c or c==a+b)cout<<"Yes\n";else cout<<"No\n";}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '?' token
    6 |   if(sum%2==0) ? printf("Yes"); : printf("No");
      |                ^
main.c:6:33: error: expected expression before ':' token
    6 |   if(sum%2==0) ? printf("Yes"); : printf("No");
      |                                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '?' token
    8 |   if(sum%2==0) ? printf("Yes"); : printf("No");
      |                ^
main.c:8:33: error: expected expression before ':' token
    8 |   if(sum%2==0) ? printf("Yes"); : printf("No");
      |                                 ^
Language: C++

#include<iostream>

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";
  else cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |   if(a+b =c || a+c =b || b+c==a)cout<<"Yes";
      |           ~~^~~~~~
Language: C++

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

Compiler output:
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 = int; _Compare = int]':
a.cc:6:20:   required from here
    6 |   if(a+b+c == 2*max(a,b,c)){
      |                 ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[4];
int main()
{
	for(int i=1;i<=3;i++)
		scanf("%d",&a[i]);
	sort(a+1,a+4);
	if(a[1]+a[2]==a[3])
		printf("Yes\n");
	else printf("No\n);
   return 0;
}

Compiler output:
a.cc:11:21: warning: missing terminating " character
   11 |         else printf("No\n);
      |                     ^
a.cc:11:21: error: missing terminating " character
   11 |         else printf("No\n);
      |                     ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:4: error: expected primary-expression before 'return'
   12 |    return 0;
      |    ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: lvalue required as left operand of assignment
   25 |         if(a+b=c) cout<<"Yes"<<endl;
      |            ~^~
Language: C++

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


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

#include<iostream>
using namespace std;
int a[2];
int main(){
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+3);
	if(a[0]+a[1]==a[2]) cout<<"Yes";
	else cout<<"No";}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |         sort(a,a+3);
      |         ^~~~
      |         short
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> vec(3)={a,b,c};
cin>>a>>b>>c;
  sort(vec.begin(),vec.end());
  reverse(vec.begin(),vec.begin());
  if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
  }
else {
cout<<"NO"<<endl;
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: expected ',' or ';' before '=' token
    4 | vector<string> vec(3)={a,b,c};
      |                      ^
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a>>b>>c;
      |      ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 | cin>>a>>b>>c;
      |         ^
a.cc:5:12: error: 'c' was not declared in this scope
    5 | cin>>a>>b>>c;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={a,b,c};
cin>>a>>b>>c;
  sort(vec.begin(),vec.end());
  reverse(vec.begin(),vec.begin());
  if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
  }
else {
cout<<"NO"<<endl;
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: 'a' was not declared in this scope
    4 | vector<int> vec={a,b,c};
      |                  ^
a.cc:4:20: error: 'b' was not declared in this scope
    4 | vector<int> vec={a,b,c};
      |                    ^
a.cc:4:22: error: 'c' was not declared in this scope
    4 | vector<int> vec={a,b,c};
      |                      ^
a.cc:4:23: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
    4 | vector<int> vec={a,b,c};
      |                       ^
      |                       |
      |                       <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={a,b,c}
cin>>a>>b>>c;
  sort(vec.begin(),vec.end());
  reverse(vec.begin(),vec.begin());
  if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
  }
else {
cout<<"NO"<<endl;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: 'a' was not declared in this scope
    4 | vector<int> vec={a,b,c}
      |                  ^
a.cc:4:20: error: 'b' was not declared in this scope
    4 | vector<int> vec={a,b,c}
      |                    ^
a.cc:4:22: error: 'c' was not declared in this scope
    4 | vector<int> vec={a,b,c}
      |                      ^
a.cc:4:23: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
    4 | vector<int> vec={a,b,c}
      |                       ^
      |                       |
      |                       <brace-enclosed initializer list>
a.cc:5:1: error: expected ',' or ';' before 'cin'
    5 | cin>>a>>b>>c;
      | ^~~
Language: C++

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

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


Compiler output:
a.cc:9:10: warning: missing terminating " character
    9 |    ans = "Yes;
      |          ^
a.cc:9:10: error: missing terminating " character
    9 |    ans = "Yes;
      |          ^~~~~
a.cc:11:11: warning: missing terminating " character
   11 |     ans = "Yes
      |           ^
a.cc:11:11: error: missing terminating " character
   11 |     ans = "Yes
      |           ^~~~
a.cc:13:11: warning: missing terminating " character
   13 |     ans = "Yes
      |           ^
a.cc:13:11: error: missing terminating " character
   13 |     ans = "Yes
      |           ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before 'if'
   10 |   if(a == b+c)
      |   ^~
Language: Java

import java.util.*;

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

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

    int max = math.max(math.max(a, b), c);
    if ((max == a+b || max == b+c || max == c+a)) {
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
    int max = math.max(math.max(a, b), c);
              ^
  symbol:   variable math
  location: class Main
Main.java:11: error: cannot find symbol
    int max = math.max(math.max(a, b), c);
                       ^
  symbol:   variable math
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '||' token
   11 |   if(a+b==c)||(a+c==b)||(b+c==a)cout << "Yes" << endl;
      |             ^~
Language: C++

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

int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: 'Yes' was not declared in this scope
    9 |         if(a+b==c|| a+c==b||b+c==a){cout<<Yes<<endl;}
      |                                           ^~~
a.cc:11:15: error: 'No' was not declared in this scope
   11 |         cout<<No<<endl;
      |               ^~
Language: Java

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

Compiler output:
Main.java:9: error: ')' expected
		if(((a+b == c) || ((a+c == b) || ((b+c == a)) {
		                                             ^
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
    6 |         cin >> a >> b >> c endl;
      |                           ^~~~~
      |                           ;
a.cc:7:13: error: 'mod' was not declared in this scope; did you mean 'modf'?
    7 |         if (mod(a+b+c, 3) == 0){
      |             ^~~
      |             modf
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
    6 |         cin >> a >> b >> c endl
      |                           ^~~~~
      |                           ;
a.cc:10:17: 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 endl
    	if (mod(a+b+c, 3) == 0;){
      		cout << "Yes" << endl;
    	}
  		else
  		{
          	cout << "No" << endl;
        }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
    6 |         cin >> a >> b >> c endl
      |                           ^~~~~
      |                           ;
a.cc:7:32: error: expected primary-expression before ')' token
    7 |         if (mod(a+b+c, 3) == 0;){
      |                                ^
a.cc:10:17: 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;
  bool A = 0;
  if(a+b==c||a+c==b||b+c==a)A=1;
 if(A)
  cout << Yes <<endl;
  else{
  cout << No <<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'Yes' was not declared in this scope
   10 |   cout << Yes <<endl;
      |           ^~~
a.cc:12:11: error: 'No' was not declared in this scope
   12 |   cout << No <<endl;}
      |           ^~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
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:10:3: error: 'cout' was not declared in this scope
   10 |   cout << Yes <<endl;
      |   ^~~~
a.cc:10:11: error: 'Yes' was not declared in this scope
   10 |   cout << Yes <<endl;
      |           ^~~
a.cc:10:17: error: 'endl' was not declared in this scope
   10 |   cout << Yes <<endl;
      |                 ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << No <<endl;}
      |   ^~~~
a.cc:12:11: error: 'No' was not declared in this scope
   12 |   cout << No <<endl;}
      |           ^~
a.cc:12:16: error: 'endl' was not declared in this scope
   12 |   cout << No <<endl;}
      |                ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c;
  cin >> a >> b >> c;
  bool A = 0;
  if(a+b==c||a+c==b||b+c==a)A=1
 
  cout << A <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'cout'
    8 |   if(a+b==c||a+c==b||b+c==a)A=1
      |                                ^
      |                                ;
    9 | 
   10 |   cout << A <<endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c;
  cin >> a >> b >> c;
  bool A = 0;
  if(a+b===c||a+c==b||b+c==a)A=1
 
  cout << A <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '=' token
    8 |   if(a+b===c||a+c==b||b+c==a)A=1
      |           ^
a.cc:8:33: error: expected ';' before 'cout'
    8 |   if(a+b===c||a+c==b||b+c==a)A=1
      |                                 ^
      |                                 ;
    9 | 
   10 |   cout << A <<endl;
      |   ~~~~
Language: C++

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

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


Compiler output:
a.cc:8:3: error: extended character 　 is not valid in an identifier
    8 |   　cout<<"Yes"<<endl;
      |   ^
a.cc: In function 'int main()':
a.cc:8:3: error: '\U00003000cout' was not declared in this scope
    8 |   　cout<<"Yes"<<endl;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:20: error: lvalue required as left operand of assignment
    5 |   if(a + b == c||a = b + c) printf("YES");
      |                    ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:66: error: expected ';' before '}' token
    6 |         if (a + b == c || a + c == b || b + c == a) { puts("Yes") }
      |                                                                  ^~
      |                                                                  ;
Language: C++


#include <iostream>

using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: lvalue required as left operand of assignment
   10 |     if(a+b=c||c+b=a||a+c=b)
      |                   ~^~~~~
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 || a=b+c) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: lvalue required as left operand of assignment
    6 |   if(a+b==c || a+c==b || a=b+c) cout << "Yes" << endl;
      |      ~~~~~~~~~~~~~~~~~^~~~
Language: C++

//shara's here
#include<bits/stdc++.h>
int main(){
	int x,y,z;
	if(x+y==z||x+z==y||y+z==x)cout<<"Yes";
	else cout<<"No";



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         if(x+y==z||x+z==y||y+z==x)cout<<"Yes";
      |                                   ^~~~
      |                                   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         else cout<<"No";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
 int a,b,c,d,e,f;
 cin >> a >> b >> c;
 d = (max(a,b),c);
 e = a+ b+c-d

 if(d == e){
 	cout << "Yes" << endl;
 }
 else{
 	cout << "No" << endl;
 }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: warning: ignoring return value of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |  d = (max(a,b),c);
      |       ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: declared here
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:8:14: error: expected ';' before 'if'
    8 |  e = a+ b+c-d
      |              ^
      |              ;
    9 | 
   10 |  if(d == e){
      |  ~~           
a.cc:13:2: error: 'else' without a previous 'if'
   13 |  else{
      |  ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |     if (2*max({a,b,c})==a+b+c) {
      |           ~~~^~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  cout << (((max({A, B, C}))==(A+B+C-max({A, B, C})))?"Yes":"No")) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:66: error: expected ';' before ')' token
    7 |   cout << (((max({A, B, C}))==(A+B+C-max({A, B, C})))?"Yes":"No")) << endl;
      |                                                                  ^
      |                                                                  ;
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  cout << ((max({A, B, C}))==(A+B+C-max({A, B, C})?"Yes":"No")) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   cout << ((max({A, B, C}))==(A+B+C-max({A, B, C})?"Yes":"No")) << endl;
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;

void Main(){
 int a,b,c;
   cin >> a >> b >> c;
   
  if((a+b-c)*(b+c-a)*(c+a-b)==0)
  cout << "Yes" << endl;
  else
  cout << "No" endl;
 return;
 }
  
int main(){
 cin.tie(nullptr);
 ios_base::sync_with_stdio(false);
 cout << fixed << setprecision(15);
 Main();
 return 0;
 }


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

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

    return 0;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: lvalue required as left operand of assignment
    6 |     if(a+c=b||a+b=c||b+c=a) cout<<"YES"<<endl;
      |                   ~^~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef vector<ll> vl;
typedef vector<vector<int, int> > vvi;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
int main(){
    int a, b, c;
    cin >> a >> b >>c;
    vi v;
    v.pb(a);
    v.pb(b);
    v.pb(c);
    sort(all(v));
    if(v[0] + v[1] == v[2]){
        cout << "Yes";
    }
    else cout << "No";

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

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

int main(){
  int a, b, c;
  vector<int> v;
  cin >> a >> b >> c;
  v.push_back(a);
  v.push_back(b);
  v.push_back(c);
  sort(v.begin(), v.end());
  
  if (v[0] + v[1] == v[2])
    cout << "Yes" << endl;
  else
    cout << "No" <<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(v.begin(), v.end());
      |   ^~~~
      |   short
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before 'if'
    8 |   sort(abc.begin(), abc.end())
      |                               ^
      |                               ;
    9 |   if(abc.at(0)+abc.at(2) == abc.at(1)){cout << "Yes" << endl;}
      |   ~~                           
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{cout << "No" << endl;}
      |   ^~~~
Language: C++

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <cmath>
#include <climits>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <array>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define io() ios_base::sync_with_stdio(false); cin.tie(nullptr)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define us unsigned short
#define fi first
#define se second
#define IN(i,l,r) (l<i&&i<r)
#define LINR(i,l,r) (l<=i&&i<=r)
#define LIN(i,l,r) (l<=i&&i<r)
#define INR(i,l,r) (l<i&&i<=r)
#define v(T) vector<T>
#define p(T, N) pair<T, N>
#define ii p(int, int)
#define vi v(int)
#define vii v(p(int, int))
#define vvi v(v(int))
#define vl v(long long)
#define vll v(p(long long, long long))
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define qsort(a) sort(all(a))
#define qsortd(a) sort(all(a), greater<>())
#define qsortf(a, f) sort(all(a), f)
#define qsortsi(v) sort(v.begin(), v.end(), [](pair<int, int> aoeui, pair<int, int> boeui){return aoeui.se < boeui.se;})
#define pb(n) push_back(n)
#define eb(n) emplace_back(n)
#define pp(a, b) emplace_back(make_pair(a, b))
#define elif else if
#define fori(i, n) for(ll i = 0; i < n; i++)
#define foris(i, a, b) for(ll i = a; i < b; i++)
#define forise(i, a, b) for(ll i = a; i <= b; i++)
#define ford(i, n) for(ll i = n; i >= 0; i--)
#define fords(i, a, b) for(ll i = a; i >= b; i--)
#define fordse(i, a, b) for(ll i = a; i > b; i--)
#define forr(i, a) for (auto &i: a)
#define rev(a) reverse(a.begin(), a.end())
#define revf(a, b, c) (reverse(a.begin() + b, a.begin() + c))
#define digits(i) (int)((log(i)/(log(10))+1)
#define umap unordered_map
#define nl '\n'
#define fileio(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
const int mod = 1000000007;

int A, B, C;
vi arr;

int main() {
  io();
  
  cin >> A >> B >> C;
  arr.pb(a); arr.pb(b); arr.pb(c);
  qsort(arr);
  if(arr[0] + arr[1] == arr[2]) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:82:10: error: 'a' was not declared in this scope
   82 |   arr.pb(a); arr.pb(b); arr.pb(c);
      |          ^
a.cc:56:25: note: in definition of macro 'pb'
   56 | #define pb(n) push_back(n)
      |                         ^
a.cc:82:21: error: 'b' was not declared in this scope
   82 |   arr.pb(a); arr.pb(b); arr.pb(c);
      |                     ^
a.cc:56:25: note: in definition of macro 'pb'
   56 | #define pb(n) push_back(n)
      |                         ^
a.cc:82:32: error: 'c' was not declared in this scope
   82 |   arr.pb(a); arr.pb(b); arr.pb(c);
      |                                ^
a.cc:56:25: note: in definition of macro 'pb'
   56 | #define pb(n) push_back(n)
      |                         ^
Language: Java

import java.util.*;

class Main {
public static void main(String[] args){

Scanner sc = new Scanner(System.in);
ArrayList<Integer> li = new ArrayList<>();
li.add(sc.nextInt());
li.add(sc.nextInt()); 
li.add(sc.nextInt());
Collections.sort(li,collections.reverseOrder());
if(li.get(0) == li.get(1) + li.get(2)){
System.out.println("Yes");
 }else{
System.out.println("No");
}

}
}

Compiler output:
Main.java:11: error: cannot find symbol
Collections.sort(li,collections.reverseOrder());
                    ^
  symbol:   variable collections
  location: class Main
1 error