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

#include<iostream>
#include<algorithm>
int main()
{
  int a,b,c;
  int d[]={a,b,c};
  cin>>a>>b>>c;
  sort(d,d+2);
  if(d[1]+d[0]==d[2])
    {
      cout<<"Yes"<<end;
    }else{
    cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(d,d+2);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout<<"Yes"<<end;
      |       ^~~~
      |       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:20: error: 'end' was not declared in this scope; did you mean 'std::end'?
   11 |       cout<<"Yes"<<end;
      |                    ^~~
      |                    std::end
In file included from /usr/include/c++/14/string:53,
                 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:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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<iostream>
#include<algorithm>
int main()
{
  int a,b,c;
  int d[]={a,b,c};
  cin>>a>>b>>c;
  sort(d,d+3);
  if(d[1]+d[0]==d[2])
    {
      cout<<"Yes"<<end;
    }else{
    cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(d,d+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout<<"Yes"<<end;
      |       ^~~~
      |       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:20: error: 'end' was not declared in this scope; did you mean 'std::end'?
   11 |       cout<<"Yes"<<end;
      |                    ^~~
      |                    std::end
In file included from /usr/include/c++/14/string:53,
                 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:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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<iostream>

using namespace std;

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


Compiler output:
a.cc:9:12: warning: missing terminating " character
    9 | else cout<<"No<<endl;
      |            ^
a.cc:9:12: error: missing terminating " character
    9 | else cout<<"No<<endl;
      |            ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '=' token
    8 | if((a+b+c)%==0) cout<<"Yes"<<endl;
      |             ^
a.cc:10:1: error: expected primary-expression before 'return'
   10 | return 0;
      | ^~~~~~
Language: C++

# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)

x=map(int,input().split())<<ap>>list<<ap>>sorted
print('Yes' if x[0]+x[1]==x[2] else 'No')


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:26:1: error: stray '@' in program
   26 | @infix
      | ^
a.cc:39:2: error: invalid preprocessing directive #d
   39 | #d = {1:2, 3:5, 6:10, 1000043:3814}
      |  ^
a.cc:40:2: error: invalid preprocessing directive #zip
   40 | #zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)
      |  ^~~
a.cc:43:7: warning: multi-character character constant [-Wmultichar]
   43 | print('Yes' if x[0]+x[1]==x[2] else 'No')
      |       ^~~~~
a.cc:43:37: warning: multi-character character constant [-Wmultichar]
   43 | print('Yes' if x[0]+x[1]==x[2] else 'No')
      |                                     ^~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: cannot convert 'bool' to 'const char*'
    7 |         puts(a+b==c||b+c==a||c+a==b)
      |              ~~~~~~~~~~~~~~^~~~~~~~
      |                            |
      |                            bool
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin>>a>>b>>c;
      |     ^~~
a.cc:8:13: error: expected constructor, destructor, or type conversion before '(' token
    8 |         puts(a+b==c||b+c==a||c+a==b)
      |             ^
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	long long W,H,N;
	
	cin >> W >> H >> N;
	
	long long l=0,r=W,b=0,t=H;
	long long x,y,a;
	
	for(int i=0;i<N;i++){
		cin >> x >> y >> a;
		switch(a){
		case 1:
			if(l < x)l = x;
			break;
		case 2:
			if(r > x)r = x;
			break;
		case 3:
			if(b < y)b = y;
			break;
		case 4:
			if(t > y)t = y;
			break;
		}
	}
	
	cout << (r-l)*(t-b) << endl;
	
	return 0;



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

#include <iostream>
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:9:32: error: lvalue required as left operand of assignment
    9 |     if (a = b + c || b = a + c || c = a + b) {
      |                          ~~~~~~^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
using namespace std;

int main(){
	int a, b, c;
	cin >> a >> b >> 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:11:18: error: lvalue required as left operand of assignment
   11 |         if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
      |              ~~~~^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
using namespace std;

int main(){
	int a, b, c
	cin >> a >> b >> 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:9:9: error: expected initializer before 'cin'
    9 |         cin >> a >> b >> c;
      |         ^~~
a.cc:11:16: error: 'c' was not declared in this scope
   11 |         if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
      |                ^
Language: C++

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


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

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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String[] cut = x.split(" ");

		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		int c = Integer.parseInt(cut[2]);

		/*String u = "No";
		if(a==b){
		u="Yes";
		}else if(b==c){
		u="Yes";
		}else if(c==a){
	        u="Yea";
        	}
        	*/
		int y = Math.max(a, Math.max(b, c));
		if (y == a && a == b + c) {
			u = "Yes";
		} else if (y == b && b == a + c) {
			u = "Yes";
		} else if (y == c && c == a + b) {
			u = "Yes";
		}
		System.out.println(u);
	}
}


Compiler output:
Main.java:28: error: cannot find symbol
			u = "Yes";
			^
  symbol:   variable u
  location: class Main
Main.java:30: error: cannot find symbol
			u = "Yes";
			^
  symbol:   variable u
  location: class Main
Main.java:32: error: cannot find symbol
			u = "Yes";
			^
  symbol:   variable u
  location: class Main
Main.java:34: error: cannot find symbol
		System.out.println(u);
		                   ^
  symbol:   variable u
  location: class Main
4 errors
Language: C++

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

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b ,c = map(int, input().split())
      | ^
Language: C++

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

#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false

int main()
{
    vector<int> hoge(3);
    rep(i, 3)
    {
        cin >> hoge[i];
    }
    sort(hoge);
    if (hoge[2] == hoge[1] + hoge[0])
    {
        cout << "YES" << endl;
    }
    else
    {
        cout << "NO" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: no matching function for call to 'sort(std::vector<int>&)'
   18 |     sort(hoge);
      |     ~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>

using namespace std;

int main(){
  int W , H , N;

  cin >> W >> H >> N ;
  
  int WWL = 0 , WWR = W , WHU = 0 , WHO = H;
  for(int i = 0 ; i < N ; i++){
    int x , y , a;
    cin >> x >> y >> a;
    switch(a):
      case(1){
        if(WWL > x)
          WWL = x;
        break;
      }
      case(2){
        if(WWR < x)
          WWR = x;
        break;
      }
      case(3){
        if(WHU > y)
          WHU = y;
        break;
      }
      case(4){
        if(Who < y)
          WHO = y;
        break;
      }
    //cout << "xa=" << WWL << " xb=" << WWR << " ya=" << WHU << " yb =" << WHO << endl; 
  }
  
  int men = (WWR - WWL) *  (WHO - WHU);
  if ((WWR - WWL) < 0 || (WHO - WHU)<0)
    men = 0;
  cout << men << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: expected primary-expression before ':' token
   14 |     switch(a):
      |              ^
a.cc:20:7: error: case label '2' not within a switch statement
   20 |       case(2){
      |       ^~~~
a.cc:20:14: error: expected ':' before '{' token
   20 |       case(2){
      |              ^
      |              :
a.cc:25:7: error: case label '3' not within a switch statement
   25 |       case(3){
      |       ^~~~
a.cc:25:14: error: expected ':' before '{' token
   25 |       case(3){
      |              ^
      |              :
a.cc:30:7: error: case label '4' not within a switch statement
   30 |       case(4){
      |       ^~~~
a.cc:30:14: error: expected ':' before '{' token
   30 |       case(4){
      |              ^
      |              :
a.cc:31:12: error: 'Who' was not declared in this scope; did you mean 'WHO'?
   31 |         if(Who < y)
      |            ^~~
      |            WHO
Language: C++

#include <iostream>

using namespace std;

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

  cin >> a >> b >> c;

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

  return 0;
}

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

#include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
#include<cstdlib>
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;
  }
   return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: expected primary-expression before ')' token
   10 |   if( a + b == c || b + c == a || c + a == b )){
      |                                               ^
Language: Java

import java.net.SecureCacheResponse;
import java.util.Random;
import java.util.Scanner;

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

        int a ,b, c;
        Scanner scan = new Scanner(System.in);
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();

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


    }
}


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

import java.net.SecureCacheResponse;
import java.util.Random;
import java.util.Scanner;

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

        int a ,b, c;
        Scanner scan = new Scanner(System.in);
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();

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


    }
}


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

#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <set>
#include <map>
#include <deque>
#define WMAX 10000
#define HMAX 10000

//コメントアウトするとdebug()を実行しない
#define DEBUG

using namespace std;
template<typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

typedef pair<int ,int > P;
typedef long long ll;

int A,B,C,N,W,H;
string ans;
string S;
static const int dx[8] = {0,1,1,1,0,-1,-1,-1},
					dy[8] = {1,1,0,-1,-1,-1,0,1};

void solve(){

}

void debug(){

}

void answer(){
	cout << ans << "\n";
}

int main(){
	cin >> A >> B >> C;
	if(A+B == C || A+C == B || B+C == A){
		ans = "Yes";
	}else{
		ans = "No"
	}
	solve();
	#ifdef DEBUG
	debug();
	#endif
	answer();

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:27: error: expected ';' before '}' token
   51 |                 ans = "No"
      |                           ^
      |                           ;
   52 |         }
      |         ~
Language: C++

#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <set>
#include <map>
#include <deque>
#define WMAX 10000
#define HMAX 10000

//コメントアウトするとdebug()を実行しない
#define DEBUG

using namespace std;
template<typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

typedef pair<int ,int > P;
typedef long long ll;

int A,B,C,N,W,H
string ans;
string S;
static const int dx[8] = {0,1,1,1,0,-1,-1,-1},
					dy[8] = {1,1,0,-1,-1,-1,0,1};

void solve(){

}

void debug(){

}

void answer(){
	cout << ans << "\n";
}

int main(){
	cin >> A >> B >> C;
	if(A+B == C || A+C == B || B+C == A){
		ans = "Yes";
	}else{
		ans = "No";
	}
	solve();
	#ifdef DEBUG
	debug();
	#endif
	answer();

	return 0;
}

Compiler output:
a.cc:29:1: error: expected initializer before 'string'
   29 | string ans;
      | ^~~~~~
a.cc: In function 'void answer()':
a.cc:43:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   43 |         cout << ans << "\n";
      |                 ^~~
      |                 abs
a.cc: In function 'int main()':
a.cc:49:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |                 ans = "Yes";
      |                 ^~~
      |                 abs
a.cc:51:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   51 |                 ans = "No";
      |                 ^~~
      |                 abs
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		if(a == b + c){
			System.out.println("はい");
		}
		else if(b == a + c){
			System.out.println("はい");
		}
		else if(c == a + b){
			System.out.println("はい");
		}
		else{
			System.out.print("いいえ");
		}
		

	}

Compiler output:
Main.java:24: 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){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
        if(a = b + c){
             ^
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){
	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:17: 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){
	System.out.println("Yes");
	}else if(b==a+c){
	System.out.println("Yes");
	}else if(c==a+b){
	System.out.println("Yes");
	}
	}
	}
	}

Compiler output:
Main.java:17: error: class, interface, enum, or record expected
	}
	^
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){
	System.out.println("Yes");
	}else if(b==a+c){
	System.out.println("Yes");
	}else if(c==a+b){
	System.out.println("Yes");
	}
	}

Compiler output:
Main.java:15: 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)System.out.println("Yes");
	if(b=a+c)System.out.println("Yes");
	if(c=a+b)System.out.println("Yes");
	}
	}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
	if(a=b+c)System.out.println("Yes");
	    ^
Main.java:9: error: incompatible types: int cannot be converted to boolean
	if(b=a+c)System.out.println("Yes");
	    ^
Main.java:10: error: incompatible types: int cannot be converted to boolean
	if(c=a+b)System.out.println("Yes");
	    ^
3 errors
Language: C++

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

int main(void){
 vector<int> n(3);
 cin >> a[0] >> a[1] >> a[2];
 sort(a.begin(), a.end());
 cout << ((a[0]+a[1]==a[2]) ? "Yes" : "No") << endl; 
 return 0;
}

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

#include<iostream>
#include<string>
#include<algorithm>
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\n"; else cout << "No\n";
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
 int w,h,n;
 cin>>w>>h>>n;
 int x,y,a;
 int b[100][100]={};
int minx=100,my=100; 
 while(1){
  if(n==0)break;
  cin>>x>>y>>a;
  if(a==1)
   if(minx>w-x)minx=w-x;
  else if(a==2)
   if(minx>x)minx=x;
  else if(a==3)
   if(miny>h-y)miny=h-y;
  else if(a==4)
   if(miny>y)miny=y;
  n--;
 }
 cout<<minx*miny<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'miny' was not declared in this scope; did you mean 'minx'?
   17 |    if(miny>h-y)miny=h-y;
      |       ^~~~
      |       minx
a.cc:22:13: error: 'miny' was not declared in this scope; did you mean 'minx'?
   22 |  cout<<minx*miny<<endl;
      |             ^~~~
      |             minx
Language: C++

#include <iostream>

using namespace std;

int main(void) {

    int a, b, c;
    int n[3];

    cin >> n[0] >> n[1] >> n[2];
    
    sort(n, n + 3);
    
    if(n[0] + n[1] == n[2]) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;

}

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

package question;

import java.util.Scanner;

public class Test003 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		
		String line = sc.nextLine();
		String[] N = line.split(" ");
		int first = Integer.parseInt(N[0]);
		int second = Integer.parseInt(N[1]);
		int third = Integer.parseInt(N[2]);
		
		
		int a=first;
		int b=second;
		int c=third;
		
	
		
		if((a+b==c)||(a+c==b)||(b+c==a)){
			
			System.out.println("Yes");
			
		}else 
			System.out.println("No");
		}
		
	}


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

#include <iostream>
using namespace std;

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

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

#include <stdio.h>
#include <string.h>
#include <stdbool.h>

#define N_MAX 100
#define M_MAX 1000
#define INF 10000000
#define SMAP(a, b) ((a)!=(b))&&((a)^=((b)^=((a)^= (b))))

typedef unsigned long long ull;

int d[M_MAX];
int n, m;

int i, j, k;

int e[M_MAX][2];

void deb(){
	return;
}

void solve(){
	return;
}

int main (void) {
	scanf("%d %d %d\n", &i, &j, &k);

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

	solve();
	return 0;
}




Compiler output:
main.c: In function 'main':
main.c:30:13: error: 'a' undeclared (first use in this function)
   30 |         if (a == b+c || b == c+a || c == a+b) {
      |             ^
main.c:30:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:18: error: 'b' undeclared (first use in this function)
   30 |         if (a == b+c || b == c+a || c == a+b) {
      |                  ^
main.c:30:20: error: 'c' undeclared (first use in this function)
   30 |         if (a == b+c || b == c+a || c == a+b) {
      |                    ^
Language: C++

a,b,c =  gets.split(" ").map{|s| s.to_i}.sort
if c = a + b then
  puts "Yes"
else
  puts "No"
end


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c =  gets.split(" ").map{|s| s.to_i}.sort
      | ^
a.cc:1:41: error: expected unqualified-id before '.' token
    1 | a,b,c =  gets.split(" ").map{|s| s.to_i}.sort
      |                                         ^
Language: C++

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

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

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

import java.util.Scanner;

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

#include <studio.h>

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

        scanf("%d %d %d", &a, &b, &c);
        sum = (a + b + c) / 2;
        if(sum == a || sum == b || sum == c) {
                printf("YES");
        } else {
                printf("NO");
        }

        return 0;
}

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

#include <stdio.h>
int main(){
    int a,b,c;
	
	printf("３つの数値を入力してください。\n");
	scanf("d% %d %d", &a, &b, &c);
	
	wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
	    printf("a,b,cは１以上１００以下で入力してください\n");
        scanf("d% %d %d", &a, &b, &c);
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'wihle' was not declared in this scope
    8 |         wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
      |         ^~~~~
Language: C++

#include <stdio.h>
int main(){
    int a,b,c;
	
	printf("３つの数値を入力してください。\n");
	scanf("d% %d%d", &a, ,&b, &c);
	
	wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
	    printf("a,b,cは１以上１００以下で入力してください\n");
		scanf("d% %d%d", &a, ,&b, &c);
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected primary-expression before ',' token
    6 |         scanf("d% %d%d", &a, ,&b, &c);
      |                              ^
a.cc:8:9: error: 'wihle' was not declared in this scope
    8 |         wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
      |         ^~~~~
Language: C++

#include <stdoi.h>
int main(){
    int a,b,c;
	
	printf("３つの数値を入力してください。\n");
	scanf("d% %d%d", &a, ,&b, &c);
	
	wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
	    printf("a,b,cは１以上１００以下で入力してください\n");
		scanf("d% %d%d", &a, ,&b, &c);
	}

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


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

#include <stdoi.h>
int main(){
    int a,b,c;
	
	printf("３つの数値を入力してください。\n");
	scanf("d% %d%d", &a, ,&b, &c);
	
	wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
	    printf("a,b,cは１以上１００以下で入力してください\n");
		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:1:10: fatal error: stdoi.h: No such file or directory
    1 | #include <stdoi.h>
      |          ^~~~~~~~~
compilation terminated.
Language: C++


#include <iostream>
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: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:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
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
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: Java

import java.util.Scanner;

/**
 * Created by gumio_inf on 2016/12/02.
 */
public class A1 {
    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 (1 <= a && a <= 100 && 1 <= b && b <= 100 && 1 <= c && c <= 100) {
            int sum = a + b + c;
            String flag = (a + b + c) % 3 == 0 ? "YES" : "NO";
            System.out.println(flag);
        }
    }
}


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

#include <iosteram>

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;

    return 0;
}

Compiler output:
a.cc:1:10: fatal error: iosteram: No such file or directory
    1 | #include <iosteram>
      |          ^~~~~~~~~~
compilation terminated.
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 || c+b==a){
printf("Yes");

else
{ printf("No");
} 
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected '}' before 'else'
   10 | else
      | ^~~~
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>
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";
}
return 0;

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

#include <iostream>
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";
}
return 0;

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

#include<stdio.h>

int main(){
  int W,H,N;

  
    scanf("%d",&W);
    scanf("%d",&H);
    scanf("%d",&N);

    int x1=0,x2=W,y1=0,y2=H;
    
    int x[N],y[N],a[N];
    
    for(int i=0;i<N;i++){
  scanf("%d",&x[i]);
  scanf("%d",&y[i]);
  scanf("%d",&a[i]);
  if(a[i]==1){
    if(x1<x[i])x1=x[i];
    }
    else if(a[i]==2){
       if(x2>x[i])x2=x[i];
    }
      else if(a[i]==3){
	 if(y1<y[i])y1=y[i];
      }
	else if(a[i]==4){
	   if(y2<y[i])y2=y[i];
	}
    }
    if(x1>x2+1)pritnf("0\n");
    else{
      printf("%d\n",(x2-x1+2)*(y2-y1+2));
    }
 
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:32:16: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   32 |     if(x1>x2+1)pritnf("0\n");
      |                ^~~~~~
      |                printf
Language: C

#include<stdio.h>
int main(void)
{
 int a,b,c;
 if(a+b=c,a+c=b,b+c=a){
printf("Yes\n");

}else{
printf("No\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: lvalue required as left operand of assignment
    5 |  if(a+b=c,a+c=b,b+c=a){
      |        ^
main.c:5:14: error: lvalue required as left operand of assignment
    5 |  if(a+b=c,a+c=b,b+c=a){
      |              ^
main.c:5:20: error: lvalue required as left operand of assignment
    5 |  if(a+b=c,a+c=b,b+c=a){
      |                    ^
Language: C++

a = gets.split.map(&:to_i)
s = a.inject(&:+)
if a.any?{|x| s-x ==x }
  puts 'Yes'
else
  puts 'No'
end

Compiler output:
a.cc:4:8: warning: multi-character character constant [-Wmultichar]
    4 |   puts 'Yes'
      |        ^~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
    6 |   puts 'No'
      |        ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = gets.split.map(&:to_i)
      | ^
a.cc:4:3: error: 'puts' does not name a type
    4 |   puts 'Yes'
      |   ^~~~
Language: C++

# include<stdio.h>

int main(){
 
	int a,b,c;
	cin >> a >> b >>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:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b >>c;
      |         ^~~
Language: Java

import java.util.Scanner;

public class atcode {
	public static void main (String[]args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		int c = Integer.parseInt(num[2]);

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

}


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

import java.util.Scanner;

public class atcode {
	public static void main (String[]args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		int c = Integer.parseInt(num[2]);

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

}


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

#include "stdafx.h"
#include<iostream>
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;
	}
    return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: expected ':' before ')' token
    8 |  cout<<(a[2]==a[1]+a[0]?("Yes","No"))<<endl;
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ')' token
Language: C

#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };
 
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;

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

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

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:29: error: expected expression before '%' token
    9 |         scanf("%d %d %d",&a,%b,&c);
      |                             ^
Language: C++

#include <cstdio>
using namespace std;

int main() {
  int a, b, c;
  char s[101];
  scanf("%d %d %d", &a, &b, &c);
  if (a + b == c || b + c == a || c + a == b)
    s = "Yes";
  else
    s = "No";
  printf("%s\n", s);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: incompatible types in assignment of 'const char [4]' to 'char [101]'
    9 |     s = "Yes";
      |     ~~^~~~~~~
a.cc:11:7: error: incompatible types in assignment of 'const char [3]' to 'char [101]'
   11 |     s = "No";
      |     ~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'else'
    7 | cout << "Yes\n"
      |                ^
      |                ;
    8 | else
      | ~~~~
Language: Java

import java.util.Scanner;

public class a_FightingOverCandies {

    static Scanner scanner;
    static int a, b, c;

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

        a = scanner.nextInt();
        b = scanner.nextInt();
        c = scanner.nextInt();

        candy_divide();
    }

    private static void candy_divide() {
        if ( a + b == c || a + c == b || b + c == a){
            System.out.println("Yes");
        }
        else
            System.out.println("No");
    }
}


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

import test.jason.io.LRUCache;
import test.jason.io.Solution;

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) {
            if (a > c ) {
                output(a - b == c);
            } else output(c-a == b);
        } else if (b > c) {
            output(b-c == a);
        } else {
            output(c -b ==a );
        }
    }

    static private void output(boolean b) {
        String r = b ? "Yes" : "No";
        System.out.println(r);
    }
}


Compiler output:
Main.java:1: error: package test.jason.io does not exist
import test.jason.io.LRUCache;
                    ^
Main.java:2: error: package test.jason.io does not exist
import test.jason.io.Solution;
                    ^
2 errors
Language: C++

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) {
            if (a > c ) {
                output(a - b == c);
            } else output(c-a == b);
        } else if (b > c) {
            output(b-c == a);
        } else {
            output(c -b ==a );
        }
    }

    static private void output(boolean b) {
        String r = b ? "Yes" : "No";
        System.out.println(r);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~