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

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

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(a+b==c ||　b+c==a || a+c==b){
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000b' was not declared in this scope
    8 |         if(a+b==c ||　b+c==a || a+c==b){
      |                     ^~~
a.cc:9:32: error: expected ';' before '}' token
    9 |                 printf("Yes\n")
      |                                ^
      |                                ;
   10 |         }
      |         ~                       
a.cc:12:31: error: expected ';' before '{' token
   12 |                 printf("No\n")
      |                               ^
      |                               ;
   13 |                 {
      |                 ~              
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:11:13: note: to match this '{'
   11 |         else{
      |             ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if((a==s||b==s||c==s)&&s%2==0)
      |     ^~
a.cc:10:5: 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;
    s = (a+b+c)/2;
    if(a==s||b==s||c==s)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 's' was not declared in this scope
    7 |     s = (a+b+c)/2;
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: assignment of read-only location 'std::max<int>((* & std::max<int>(a, c)), b)'
    6 |   if(max(max(a,c),b)=a+b+c){cout<<"Yes";}
      |      ~~~~~~~~~~~~~~~^~~~~~
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] abc = new int[3];
        int sum = 0;
        for(int i = 0;i < 3;i++){
            abc[i] = sc.nextInt();
            sum += abc[i];
        }
        Arrays.sort(abc);
        

        if(abc[2] == abc[1]+abc[0] || sum%2 == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

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

#include "pch.h"
#include <iostream>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
using namespace std;



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

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

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

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


Compiler output:
a.cc:7:16: warning: missing terminating " character
    7 |   if((a+b+c)%2="0)
      |                ^
a.cc:7:16: error: missing terminating " character
    7 |   if((a+b+c)%2="0)
      |                ^~~
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |   if((a+b+c)%2="0)
      |      ~~~~~~~^~
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else
      |   ^~~~
a.cc:8:23: error: expected ')' before 'else'
    8 |     cout<<"Yes"<<endl;
      |                       ^
      |                       )
    9 |   else
      |   ~~~~                 
a.cc:7:5: note: to match this '('
    7 |   if((a+b+c)%2="0)
      |     ^
Language: C++

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

int main(){
  int a,b,c; 
  cin>>a>>b>>c;
  if((a+b+c)%2)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}

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

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

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

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

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

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

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   int maxc = max({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<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:5:1: error: 'include' does not name a type
    5 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: 'cin' was not declared in this scope
   10 | cin>>a>>b>>c;
      | ^~~
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<"Yes"<<endl;
      | ^~~~
a.cc:13:14: error: 'endl' was not declared in this scope
   13 | cout<<"Yes"<<endl;
      |              ^~~~
a.cc:15:1: error: 'cout' was not declared in this scope
   15 | cout<<"No"<<endl;
      | ^~~~
a.cc:15:13: error: 'endl' was not declared in this scope
   15 | cout<<"No"<<endl;
      |             ^~~~
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:3:1: error: 'include' does not name a type
    3 | include<iostream>
      | ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
    6 |   cin >> C[0] >> C[1] >> C[2];
      |   ^~~
a.cc:8:14: error: overloaded function with no contextual type information
    8 |   sort(begin.C(), end.C());
      |              ^
a.cc:8:23: error: overloaded function with no contextual type information
    8 |   sort(begin.C(), end.C());
      |                       ^
Language: C++

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


int main()
{
    int a[3];
    for(int i=0;i<n;i++)
        cin>>a[i];
    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:8:19: error: 'n' was not declared in this scope
    8 |     for(int i=0;i<n;i++)
      |                   ^
Language: C++

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


int main()
{
   int a[3];
   for(int i=0;i<3;i++)
    cin>>a[i];

   sort(a,a+3);
   if(a[2]-a[1]==0 || a[0]-a[1]==0 || a[2]-a[0]==0)
   {
      cout<<"Yes";
      return 0;
    }
    if(a[2]-a[1]>0)
   {
       if(a[0]+a[1]==a[2])
        {
            cout<<"YES";
            return 0;
        }
        else break;
   }
   cout<<"NO";
   return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: break statement not within loop or switch
   24 |         else break;
      |              ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

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


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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: lvalue required as left operand of assignment
   20 |    if(a+b=c || b+c=a || c+a=b) { cout << "Yes" << endl;}
      |                    ~~^~~~~~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:17:12: note: to match this '{'
   17 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

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


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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

int main() {
  ll A, B, C, D ;
  cin >> A >> B >> C ;
  D = A + B + C ;
  if((D%2)==0) cout << yes << endl;
  if((D%2)==1) cout << no << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: 'yes' was not declared in this scope
   21 |   if((D%2)==0) cout << yes << endl;
      |                        ^~~
a.cc:22:24: error: 'no' was not declared in this scope
   22 |   if((D%2)==1) cout << no << endl;
      |                        ^~
Language: C++

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

int main() {
    int W,H,N;
    cin >> W>>H>>N;
    vector<vector<int>> data(N, vector<int>(3));
 
  // 入力 (2重ループを用いる)
    for (int i = 0; i < N; i++) {
      for (int j = 0; j < 3; j++) {
        cin >> data.at(i).at(j);
      }
    }
    int lx=0,hx=W,ly=0,hy=H;
    for(int i=0;i<N;i++){
      if(data[i][2]==1)
        lx=max(lx,data[i][0]);
      if(data[i][2]==2)
        hx=min(ly,data[i][0]);
      if(data[i][2]==3)
        ly=max(ly,data[i][1]);
      if(data[i][2]==4)
        hy=min(hy,data[i][1]);
    }
    if(hx-lx>=0&&hy-ly>=0)
       cout<<W*H-(hx-lx)*(hy-ly)<<endl;
    else
      cout<<0<<endl;
    
  
         
}


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

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

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

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

int main(void){
    int a,b,c;
    bool flag=fasle;
    cin>>a>>b>>c;

    if(a+b==c||b+c==a||a+c==b)
        flag=true;

    cout<<((flag)?"Yes":"No")<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'fasle' was not declared in this scope
    6 |     bool flag=fasle;
      |               ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout<<((a+b+c%2==0)?"Yes":"No"<<endl;
      |                               ~~~~^~~~~~
a.cc:7:41: error: expected ')' before ';' token
    7 |     cout<<((a+b+c%2==0)?"Yes":"No"<<endl;
      |           ~                             ^
      |                                         )
Language: C++

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


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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before 'if'
   10 |         sort(ame.begin() ,ame.end())
      |                                     ^
      |                                     ;
   11 |         if(ame.at(0) + ame.at(1) == ame.at(2)){
      |         ~~                           
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else{
      |          ^~~~
Language: Java

import java.util.Scanner;
 public class Main{
   public static void main(String[] args){
     	Scaner sc = new Scaner(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 + C){
          		System.out.prinln("Yes");
          	}else{
				System.out.println("No");
        	 }
   }
 }

   		

Compiler output:
Main.java:4: error: ')' or ',' expected
     	Scaner sc = new Scaner(System in);
     	                             ^
Main.java:4: error: not a statement
     	Scaner sc = new Scaner(System in);
     	                              ^
Main.java:4: error: ';' expected
     	Scaner sc = new Scaner(System in);
     	                                ^
3 errors
Language: C++

#include <iostream>
#include <algorithm>

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int sum = min(a, b);
  sum += min(max(a, b), c);
  cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:13: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   int sum = min(a, b);
      |             ^~~
      |             std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   sum += min(max(a, b), c);
      |              ^~~
      |              std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ((max(max(a, b), c) == sum) ? "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:9:58: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ((max(max(a, b), c) == sum) ? "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: C++

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int sum = min(a, b);
  sum += min(max(a, b), c);
  cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> c;
      |   ^~~
a.cc:4:13: error: 'min' was not declared in this scope; did you mean 'main'?
    4 |   int sum = min(a, b);
      |             ^~~
      |             main
a.cc:5:14: error: 'max' was not declared in this scope
    5 |   sum += min(max(a, b), c);
      |              ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
      |   ^~~~
a.cc:6:58: error: 'endl' was not declared in this scope
    6 |   cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
      |                                                          ^~~~
Language: C++

#include <iostream>
#include <algorithm>
 
using namespace std;
 
int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int sum = min(a, b);
  sum += min(max(a, b), c);
  cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:52: error: expected ';' before ')' token
   11 |   cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
      |                                                    ^
      |                                                    ;
Language: C++

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

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

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

#include<iostream>
using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected expression before ')' token
    5 | if(a==b+c||b==a+c||c==a+b||){printf("Yes");}
      |                            ^
Language: C++

#include <iosteam>
using namespace std;

int main() {
    int a,b,c;
    cin >> a >> b >> c;
    cout << (a+b==c || b+c==a || c+a-b? "YES" : "NO") << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = a, b, c;
      |       ^
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'max' cannot be used as a function
    8 |   if(max(a,max(b,c))*2 =a+b+c){
      |            ~~~^~~~~
a.cc:8:20: error: 'max' cannot be used as a function
    8 |   if(max(a,max(b,c))*2 =a+b+c){
      |                    ^
Language: C

#include<stdio.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:6:36: error: lvalue required as left operand of assignment
    6 |   if(a == b + c || b == c + a || c = a + b){
      |                                    ^
Language: C++

#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#include <math.h>
#include <bits/stdc++.h>
#define ull unsigned long long
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:62:13: error: lvalue required as left operand of assignment
   62 |         if(a+b=c){
      |            ~^~
a.cc:64:19: error: lvalue required as left operand of assignment
   64 |         }else if(a+c=b){
      |                  ~^~
a.cc:66:19: error: lvalue required as left operand of assignment
   66 |         }else if(b+c=a){
      |                  ~^~
Language: C++

// https://atcoder.jp/contests/abc047/tasks/abc047_a

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

int main()
{
  /* Magic word */
  cin.tie(0);
  ios::sync_with_stdio(false);
  /* ---------- */

  int a, b, c;

  cin >> a >> b >> c;

  int maximum = max(a, b, c);
  string result = maximum == a + b + c - maximum ? "Yes" : "No";

  cout << result << "\n";

  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:3:
/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:18:20:   required from here
   18 |   int maximum = 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 <iostream>
#include <algorithm>
#include <string> 
#include <vector>
#include <iomanip>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	if (a + b + c - max(a, b, c) * 2 == 0) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	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:12:21:   required from here
   12 |         if (a + b + c - max(a, b, c) * 2 == 0) {
      |                         ~~~^~~~~~~~~
/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 <iostream>
#include <algorithm>
#include <string> 
#include <vector>
#include <iomanip>
using namespace std;

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

	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:12:21:   required from here
   12 |         if (a + b + c - max(a, b, c) * 2 == 0) {
      |                         ~~~^~~~~~~~~
/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++

a, b, c = [ int(x) for x in input().split() ]

m = max(max(a, b), c)
s = a + b + c
ans = m * 2 == s

print("Yes" if ans else "No")
print()


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = [ int(x) for x 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";
  else cout<<"No";
}

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

#include <iostream>
#include <vector>

int main(){

    int totalPack = 3;
    std::vector<int> pack(totalPack);

    for (int i=0; i<totalPack; i++) {
        std::cin >> pack[i];
    }

    std::sort(pack.begin(), pack.end());
    int maxPackNumber = pack[2];
    if (maxPackNumber == (pack[0] + pack[1])) {
        std::cout << "Yes" << std::endl;
    } else {
        std::cout << "No" << std::endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   13 |     std::sort(pack.begin(), pack.end());
      |          ^~~~
      |          qsort
Language: C++

#include <iostream>
#include <vector>

int main(){

    int totalPack = 3;
    std::vector<int> pack(totalPack);

    for (int i=0; i<totalPack; i++) {
        std::cin >> pack[i];
    }

    sort(pack.begin(), pack.end());
    int maxPackNumber = pack[2];
    if (maxPackNumber == (pack[0] + pack[1])) {
        std::cout << "Yes" << std::endl;
    } else {
        std::cout << "No" << std::endl;
    }

    return 0;
}

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

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

int main(void)
{
  vector<int> a[3];
  int Nmax = 0;
  cin >> a[0]>> a[1] >> a[2];
  sort(a.begin().a.end());
  
  if(a[2] == a[1] + a[0]){cout << "YES";}
  else{cout << "NO";}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> a[3];
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a[3];
      |          ^~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |   cin >> a[0]>> a[1] >> a[2];
      |          ^
Language: C++

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

int main(void)
{
  int a[3],Nmax = 0;
  cin >> a[0]>> a[1] >> a[2];
  sort(a.begin().a.end());
  
  if(a[2] == a[1] + a[0]){cout << "YES";}
  else{cout << "NO";}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    9 |   sort(a.begin().a.end());
      |          ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

public class Main {
 
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);
 
		int w = scan.nextInt();
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] xn = new int[n];
		int[] yn = new int[n];
		int[] an = new int[n];
 
		for (int i = 0; i < n; i++) {
			xn[i] = scan.nextInt();
			yn[i] = scan.nextInt();
			an[i] = scan.nextInt();
		}
 
		int wl = 0;
		int wr = w;
		int hl = 0;
		int ht = h;
		for (int i = 0; i < n; i++) {
			switch (an[i]) {
			case 1:
				if (wl < xn[i]) {
					wl = xn[i];
				}
				break;
			case 2:
				if (wr > xn[i]) {
					wr = xn[i];
				}
				break;
			case 3:
				if (hl < yn[i]) {
					hl = yn[i];
				}
				break;
			case 4:
				if (ht > yn[i]) {
					ht = yn[i];
				}
				break;
			}
		}
		int ans = (wr - wl) * (ht - hl);
		if (ans < 0) {
			System.out.println(0);
		} else {
			System.out.println(ans);
		}
	}
 
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
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"
    }
  cout <<endl;
  
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before '}' token
    7 |     cout << "Yes"
      |                  ^
      |                  ;
    8 |     }else {
      |     ~             
a.cc:9:17: error: expected ';' before '}' token
    9 |     cout << "No"
      |                 ^
      |                 ;
   10 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: invalid operands of types 'const char [7]' and 'int' to binary 'operator&'
    4 |         scanf("%d%d%d"&a,&b,&c);
      |               ~~~~~~~~^~
      |               |        |
      |               |        int
      |               const char [7]
Language: C++

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


using namespace std;

int main(){
  vector<int> aa(3);
  
  for(auto &x:aa){
    cin>>x;
  }
  
  
  sort(aa.begin().aa.end());
  
  if(aa[0]+aa[1]==aa[2]){
    cout<<"Yes"<<endl;
  }
  else{
	cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'std::vector<int>::iterator' has no member named 'aa'
   16 |   sort(aa.begin().aa.end());
      |                   ^~
Language: C++

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


int main(int argc, char const *argv[])
{
    int a;
    int b;
    int c;
    cin>>a>>b>>c;

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:13:18: error: expected primary-expression before '=' token
   13 |     if ((a+b+c)%==0) {
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);

int main(void){
  vector<int> a;
  int temp;
  for(int i = 0; i < 3; i++){
    cin >> temp;
    a.push_back(temp);
  }
  sort(a.begin(), a.end(), greater<int>);

  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:24:40: error: expected primary-expression before ')' token
   24 |   sort(a.begin(), a.end(), greater<int>);
      |                                        ^
Language: C

#include<stdio.h>

int main(void)
{
  int W,H,N,x,y,a;
  int ansx = 0,ansy = 0;
  scanf("%d%d%d",&W,&H,&N);
  
  for(int i = 0;i < N;i++)
  {
    scanf("%d%d%d",&x,&y,&a);
    switch(a)
    {
      case 1:
        if(ansx < x){ansx = x;}
        break;
      case 2:
        if(x < W){W = x;}
        break;
      case 3:
        if(ansy < y){ansy = y;}
        break;
      case 4:
        if(y < H){H = y;}
        break;
    }
  }
  
  if(w <= x || h <= y){printf("0");}
  else{printf("%d",(W - ansx) * (H - ansy));}
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:6: error: 'w' undeclared (first use in this function)
   29 |   if(w <= x || h <= y){printf("0");}
      |      ^
main.c:29:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:16: error: 'h' undeclared (first use in this function)
   29 |   if(w <= x || h <= y){printf("0");}
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'maxabc' was not declared in this scope; did you mean 'imaxabs'?
    7 |   maxabc = max(max(a,b),c);
      |   ^~~~~~
      |   imaxabs
Language: C++

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

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

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

#include <iostream>
using namespace std;
int a,b,c;
int main(){
  cin >> a >> b >> c;
  cout << ((a+b=c || b+c==a || c+a==b)? "Yes":"No") << endl;
}


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

#include<iostream>
using namespace std;

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(max({a,b,c}) == a+b+c-max({a,b,c})){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     if(max({a,b,c}) == a+b+c-max({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
a.cc:7:33: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     if(max({a,b,c}) == a+b+c-max({a,b,c})){
      |                              ~~~^~~~~~~~~
/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 <iostream>
using namespace std;

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


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

#include <iostream>
#include <algorithm>
using namespace std;
 
int main() {
  int a[3];
  for (int i = 0; i < 3; ++i) cin >> a[i];
  sort(a[3].begin(), a[3].end());
  if (a[0]+a[1] == a[2]) { cout << "YES"; }
  else { cout << "NO"; }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: request for member 'begin' in 'a[3]', which is of non-class type 'int'
    8 |   sort(a[3].begin(), a[3].end());
      |             ^~~~~
a.cc:8:27: error: request for member 'end' in 'a[3]', which is of non-class type 'int'
    8 |   sort(a[3].begin(), a[3].end());
      |                           ^~~
Language: C++

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

int main() {
  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 << "YES"; }
  else { cout << "NO"; }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    8 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:8:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    8 |   sort(a.begin(), a.end());
      |                     ^~~