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

 1 #include<bits/stdc++.h>
 2 using namespace std;
 3 
 6 int main()
 7 {
 8     int a,b,c;
 9     cin>>a>>b>>c;
10     if(b-a==c-b)
11     {
12         cout<<"YES"<<endl;
13     }
14     else
15     {
16         cout<<"NO"<<endl;
17     }
18     return 0;
19 }

Compiler output:
a.cc:1:4: error: stray '#' in program
    1 |  1 #include<bits/stdc++.h>
      |    ^
a.cc:1:2: error: expected unqualified-id before numeric constant
    1 |  1 #include<bits/stdc++.h>
      |  ^
a.cc:3:2: error: expected unqualified-id before numeric constant
    3 |  3
      |  ^
Language: C

#include<stdio.h>
#include<math.h>
void main()
{
int a,b,c;
printf("Enter 3 numbers");
scanf(%d%d%d",&a&b&c);
if((a-b == b-c) || (b-a == c-b))
{printf("Yes");}
else
{printf("No"); }
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected expression before '%' token
    7 | scanf(%d%d%d",&a&b&c);
      |       ^
main.c:7:13: warning: missing terminating " character
    7 | scanf(%d%d%d",&a&b&c);
      |             ^
main.c:7:13: error: missing terminating " character
    7 | scanf(%d%d%d",&a&b&c);
      |             ^~~~~~~~~~
main.c:11:17: error: expected ';' before '}' token
   11 | {printf("No"); }
      |                 ^
      |                 ;
   12 | }
      | ~
Language: C++

#include <iostream>
#include<string>
#include<cmath>
#include<vector>
using std::cin;
using std::cout;
using std::vector;
int main(){
	int a,b,c;
	if(a-b==c-b){
		cout<<"YES";
	else
		cout<<"NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected '}' before 'else'
   12 |         else
      |         ^~~~
a.cc:10:21: note: to match this '{'
   10 |         if(a-b==c-b){
      |                     ^
Language: C++

#include <iostream.h>

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

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

#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>



void main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(abs(a-b)==abs(b-c))
        printf("Yes");
    else
        printf("No");
}



Compiler output:
a.cc:10:1: error: '::main' must return 'int'
   10 | void main()
      | ^~~~
Language: C++


#include <math.h>

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



void main()
{
    int a,b,c;
    scanf("%d",&a);
    scanf("%d",&a);
    scanf("%d",&a);
    if(abs(a-b)==abs(b-c))
        printf("Yes");
    else
        printf("No");
}



Compiler output:
a.cc:10:1: error: '::main' must return 'int'
   10 | void main()
      | ^~~~
Language: C

void main()
{
int a,b,c,d,e;
scanf("%d%d%d",&a&b&c);
d=a-b;
e=b-c;
if(d==e){
printf("yes");
}
else
printf("no");
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d%d%d",&a&b&c);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main()
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d%d",&a&b&c);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:18: error: invalid operands to binary & (have 'int *' and 'int')
    4 | scanf("%d%d%d",&a&b&c);
      |                ~~^
      |                |
      |                int *
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("yes");
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 | printf("no");
      | ^~~~~~
main.c:11:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<iostream.h>
void main()
{
int a,b,c,d,e;
scanf("%d%d%d",&a,&b,&c);
d=a-b;
e=b-c;
if(d==e)
printf("yes");
else
printf("no");
}

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

#include<conio.h>
void main()
{
int a,b,c,d,e;
scanf("%d%d%d",&a,&b,&c);
d=a-b;
e=b-c;
if(d==e)
printf("yes");
else
printf("no");
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
long float a, b, c;
if((b-a)==(c-b))
{
cout<<"YES";
}
else
cout<<"NO";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'long' specified with 'float'
    5 | long float a, b, c;
      | ^~~~
a.cc:5:1: error: 'long' specified with 'float'
a.cc:5:1: error: 'long' specified with 'float'
Language: C++

#include<bits/stdc++.h>
 using namespace std:
int main()
{
long long int a, b, c;
if((b-a)==(c-b))
{
cout<<"YES";
}
else
cout<<"NO";
return 0;
}

Compiler output:
a.cc:2:21: error: expected ';' before ':' token
    2 |  using namespace std:
      |                     ^
      |                     ;
a.cc:2:21: error: expected unqualified-id before ':' token
Language: C

#include<conio.h>
void main()
{
int a,b,c,d,e;
printf("enter the numbers\n");
d=a-b;
e=b-c;
if(d==e)
{
priintf("yes");
}
else{
printf("no");
}
}

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

#include<stdio.h>
#include<conio.h>
void main()
{int a,b,c;
printf("Enter the value of a ,b and c");
scanf("%d %d %d ",&a,&b,&c);
if(a<0 || a>100 || b<0 || b>100||c>100 ||c<0)
{
printf("enter the number between 1-100");
}
else
{
if(b-a==c-b)
{
 printf("arrangement of pole is beautiful");
}
else
 printf("arrangement of pole is not beautiful");

}

}

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

#include<iostream>

using namespace std;

int maint(){
  long long int a,b,c;
  cin>>a>>b>>c;
 if(b-a==c-b)
   cout<<"YES";
 else
   cout<<"NO";
 return 0;
}

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

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

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

   cin>>a>>b>>c;
   if((a-b))==(b-c))
   cout<<"YES";
   else
   cout<<"NO";
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '==' token
    9 |    if((a-b))==(b-c))
      |             ^~
Language: C++

#include<iostream>

using namesapce std;

int maint(){
  long long int a,b,c;
  cin>>a>>b>>c;
 if(b-a==c-b)
   cout<<"YES";
 else
   cout<<"NO";
 return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int maint()':
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:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    cout<<"YES";
      |    ^~~~
      |    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:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |    cout<<"NO";
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>

int main(
{
	int a,b,c;

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

if(b-a==c-b){
printf("YES");
}
else{
printf("NO");
}
return 0;
}

Compiler output:
main.c:4:1: error: expected declaration specifiers or '...' before '{' token
    4 | {
      | ^
Language: C++

#include <iostream>
using name space std ;
int main()
{

int A,B,C; 
cin >>A>>B>>C ;
if (B-A==C-B)
cout << "Yes" ;
else 
cout << "No" ;


return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std ;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:1: 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << "Yes" ;
      | ^~~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout << "No" ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;

public class TriSeqLinear{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
	int a = scanner.nextInt();
	int b = scanner.nextInt();
	int c = scanner.nextInt();
	int n = b-a;
	int m = c-b;	
	
	if(n==m){
	System.out.print("YES");
	}else{
	System.out.print("NO");
	}
    }
}

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

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
using namespace std;
const int INF= 1e9+5;
typedef long long ll;

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


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

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
using namespace std;
const int INF= 1e9+5;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'C' was not declared in this scope
   10 |   cin>>a>>b>>C;
      |              ^
a.cc:11:7: error: lvalue required as left operand of assignment
   11 |   if(2*a=b+c)cout<<"YES"<<endl;
      |      ~^~
Language: C++

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

int main() {
  
  int A=0, B=0, C=0;
  
  cin >> A >> B >> c;
  
  int sub1= abs(A-B);
  int sub2= abs(B-C);
  
  if(sub1==sub2) {
    
    cout << "Yes" << endl;
    
  } else {
    
    cout << "No" << endl;
    
  }
  
  return 0;
  
}

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

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


Compiler output:
a.cc:6:7: error: extended character − is not valid in an identifier
    6 |   if((b−a) == (c−b))
      |       ^
a.cc:6:16: error: extended character − is not valid in an identifier
    6 |   if((b−a) == (c−b))
      |                ^
a.cc: In function 'int main()':
a.cc:6:7: error: 'b\U00002212a' was not declared in this scope
    6 |   if((b−a) == (c−b))
      |       ^~~
a.cc:6:16: error: 'c\U00002212b' was not declared in this scope
    6 |   if((b−a) == (c−b))
      |                ^~~
Language: C++

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


Compiler output:
a.cc:6:6: error: extended character − is not valid in an identifier
    6 |   if(b−a == c−b)
      |      ^
a.cc:6:13: error: extended character − is not valid in an identifier
    6 |   if(b−a == c−b)
      |             ^
a.cc: In function 'int main()':
a.cc:6:6: error: 'b\U00002212a' was not declared in this scope
    6 |   if(b−a == c−b)
      |      ^~~
a.cc:6:13: error: 'c\U00002212b' was not declared in this scope
    6 |   if(b−a == c−b)
      |             ^~~
Language: C++

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

Compiler output:
a.cc:6:6: error: extended character − is not valid in an identifier
    6 |   if(b−a==c−b)
      |      ^
a.cc:6:11: error: extended character − is not valid in an identifier
    6 |   if(b−a==c−b)
      |           ^
a.cc: In function 'int main()':
a.cc:6:6: error: 'b\U00002212a' was not declared in this scope
    6 |   if(b−a==c−b)
      |      ^~~
a.cc:6:11: error: 'c\U00002212b' was not declared in this scope
    6 |   if(b−a==c−b)
      |           ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	if(a-b=c-b)
	{
		printf("YES");
	}
	else
	{
		printf("NO");
	}
	return 0;
}

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

#include<iostream>
using namesace std;
int main()
{
    int A,B,C
    cin>>A>>B>>C
    if(B-A==C-B)
    cout<<"YES"<<endl;
    else
    cout<<"NO"<<endl;
    return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>A>>B>>C
      |     ^~~
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"NO"<<endl;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<"NO"<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

#include<iostream>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(b-a==c-b)
	cout<<"YES";
	else
	cout<<"NO";
	return 0; 


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

#include<iostream>
using namespace std;
int main()
{
	int A,B,C;
	cin>>A>>B>>C;
	if(B-A==C-B)
	cout<<"YES";
	else
	cout<<"NO";
	return 0; 


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

#include <iostream>
#include <vector>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define bg begin()
#define ed end()
#define all(x) x.bg, x.ed
#ifdef LOCAL
#define dmp(x) cerr << __LINE__ << " " << #x << " " << x << endl
#else
#define dmp(x) void(0)
#endif

template <class t, class u>
void chmax(t &a, u b)
{
  if (a < b)
    a = b;
}
template <class t, class u>
void chmin(t &a, u b)
{
  if (b < a)
    a = b;
}
const int mod = 1000000007;
struct mint
{
  ll x; // typedef long long ll;
  mint(ll x = 0) : x((x % mod + mod) % mod) {}
  mint &operator+=(const mint a)
  {
    if ((x += a.x) >= mod)
      x -= mod;
    return *this;
  }
  mint &operator-=(const mint a)
  {
    if ((x += mod - a.x) >= mod)
      x -= mod;
    return *this;
  }
  mint &operator*=(const mint a)
  {
    (x *= a.x) %= mod;
    return *this;
  }
  mint operator+(const mint a) const
  {
    mint res(*this);
    return res += a;
  }
  mint operator-(const mint a) const
  {
    mint res(*this);
    return res -= a;
  }
  mint operator*(const mint a) const
  {
    mint res(*this);
    return res *= a;
  }
  mint pow(ll t) const
  {
    if (!t)
      return 1;
    mint a = pow(t >> 1);
    a *= a;
    if (t & 1)
      a *= *this;
    return a;
  }

  // for prime mod
  mint inv() const
  {
    return pow(mod - 2);
  }
  mint &operator/=(const mint a)
  {
    return (*this) *= a.inv();
  }
  mint operator/(const mint a) const
  {
    mint res(*this);
    return res /= a;
  }
};
struct combination
{
  vector<mint> fact, ifact;
  combination(int n) : fact(n + 1), ifact(n + 1)
  {
    assert(n < mod);
    fact[0] = 1;
    for (int i = 1; i <= n; ++i)
      fact[i] = fact[i - 1] * i;
    ifact[n] = fact[n].inv();
    for (int i = n; i >= 1; --i)
      ifact[i - 1] = ifact[i] * i;
  }
  mint operator()(int n, int k)
  {
    if (k < 0 || k > n)
      return 0;
    return fact[n] * ifact[k] * ifact[n - k];
  }
};

template <class t>
using vc = vector<t>;
template <class t>
using vvc = vc<vc<t>>;

using vi = vc<int>;
int gcd(int a, int b)
{
  if (b == 0)
    return a;
  return gcd(b, a % b);
}
int lcm(int a, int b)
{
  return (a * b) / gcd(a, b);
}
int fact(int n)
{
  if (n == 0)
    return 1;
  return n * fact(n - 1);
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:148:3: error: 'out' was not declared in this scope
  148 |   out<<"NO"<<endl;
      |   ^~~
Language: C++

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

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


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

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

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

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

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

#include <iostream>
using namespace std;
int a, b, c;
int main() {
    cin >> a >> b >> c;
    if (b - a == c - b)
        puts("YES");
    else
        puts("NO);
    return 0;
}

Compiler output:
a.cc:9:14: warning: missing terminating " character
    9 |         puts("NO);
      |              ^
a.cc:9:14: error: missing terminating " character
    9 |         puts("NO);
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'return'
   10 |     return 0;
      |     ^~~~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits / stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "YES";
      |         ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "NO" << endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

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

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

#include<iostream>
#incldue<cstdio>
#incldue<cmath>
#include<string>
#include<algithm>
using namespace std;
long long a,b,c;
int main()
{
	cin>>a>>b>>c;
	if(b-a==c-b) cout<<"YES";
	else cout<<"NO";
	return 0;	
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue<cstdio>
      |  ^~~~~~~
      |  include
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue<cmath>
      |  ^~~~~~~
      |  include
a.cc:5:9: fatal error: algithm: No such file or directory
    5 | #include<algithm>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
#include <ctype.h>
#include <math.h>
#define ll long long
char toupper(char c);
char toupper(char c)
{
    return (c - 0x20);
}

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: unable to find numeric literal operator 'operator""b'
   23 |   if(a==-c+2b)
      |            ^~
Language: Java

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

}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:5: error: not a statement
  cin>>a>>b>>c;
           ^
Main.java:6: error: not a statement
  if(b-a==c-b)cout<<"YES"<<endl;
                         ^
Main.java:7: error: not a statement
  else cout<<"NO"<<endl;
                 ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   cout << (b - a == c - b ? "YES" : "NO") << endl;
      |            ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |   cout << (b - a == c - b ? "YES" : "NO") << endl;
      |                ^
a.cc:8:21: error: 'c' was not declared in this scope
    8 |   cout << (b - a == c - b ? "YES" : "NO") << endl;
      |                     ^
Language: C++

a,b,c = map(int,input().split())
if b-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;
int main()
{
    int a,b,c,d;
    cin>>a>>b>>c;
    if((b-a)==(c-b)))
    {
        cout<<"YES";
    }
    else 
    {
        cout<<"NO";
    }



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before ')' token
    7 |     if((b-a)==(c-b)))
      |                     ^
Language: C

#include<stdio.h>
#include<algorithm>
int compare()
int main()
bool compare(int a,int b)
{
	return a>b;
}
{
	int a,b,c,d,e;
	scanf("%d %d %d",&a,&b,&c);
	compare(int a,int b);
	d=b-a;
	compare(int b,int c);
	e=c-b;
	if(d=e)
		printf("YES");
		else
			printf("NO");

	
}


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

#include<stdio.h>
#include<algorithm>
int main()
bool compare(int a,int b)
{
	return a>b;
}
{
	int a,b,c,d,e;
	scanf("%d %d %d",&a,&b,&c);
	compare(int a,int b);
	d=b-a;
	compare(int b,int c);
	e=c-b;
	if(d=e)
		printf("YES");
		else
			printf("NO");

	
}


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

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

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

#include<stdio.h>
main()
{
    int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if((b-a)==(c-b))
		printf("YES);
	else
		printf("NO");
}

	


Compiler output:
a.cc:7:24: warning: missing terminating " character
    7 |                 printf("YES);
      |                        ^
a.cc:7:24: error: missing terminating " character
    7 |                 printf("YES);
      |                        ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else
      |         ^~~~
Language: C++

nclude <iostream>
 
using namespace std;
 
int main(){
 int a, b, c;
 cin >> a >> b >> c;
 if(b-a == c-b) cout << "YES";
  else cout << "NO";
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope
    7 |  cin >> a >> b >> c;
      |  ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |  if(b-a == c-b) cout << "YES";
      |                 ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << "NO";
      |        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'b' was not declared in this scope
    7 |   if(b -a == c - b){
      |      ^
a.cc:7:9: error: 'a' was not declared in this scope
    7 |   if(b -a == c - b){
      |         ^
a.cc:7:14: error: 'c' was not declared in this scope
    7 |   if(b -a == c - b){
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
    scanf("%d%d%d",&a,&b,&c);
    if(b-a==c-b)printf("YES");
    else printf("NO");
    return 0p;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: unable to find numeric literal operator 'operator""p'
    9 |     return 0p;
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if(c-b==b-a)cout << "YES" << endl;
  else{cout<<"NO"<<endl;

  return 0;
}

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

#include <bits/stdc++.h>
typedef long long ll;
#define REP(i,n) for(int i=0;i<n;i++)
#define ALL(x) (x).begin(),(x).end()
using namespace std;

//素因数分解
vector<pair<ll,int>> factorize(ll n){
    vector<pair<ll,int>>res;
    for(ll i=2;i*i<=n;i++){
        if(n%i)continue;
        res.emplace_back(i,0);
        while (n%i == 0)
        {
        n /= i;
        res.back().second++;
        }
        
    }
    if(n != 1) res.emplace_back(n,1);
    return res;
}

void trace(int A[],int N){
    REP(i,N){
        if(i>0)printf(" ");
        printf("%d",A[i]);
    }
    printf("\n");
}


int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(abs(b-a)==abs(c-b))puts("YES");
    else puts("NO")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: expected ';' before '}' token
   37 |     else puts("NO")
      |                    ^
      |                    ;
   38 | }
      | ~
Language: C++

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

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

f=lambda x:x[0]-2*x[1]+x[2]==0
print('YES' if f(list(map(int,input().split()))) else 'NO')

Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('YES' if f(list(map(int,input().split()))) else 'NO')
      |       ^~~~~
a.cc:2:55: warning: multi-character character constant [-Wmultichar]
    2 | print('YES' if f(list(map(int,input().split()))) else 'NO')
      |                                                       ^~~~
a.cc:1:1: error: 'f' does not name a type
    1 | f=lambda x:x[0]-2*x[1]+x[2]==0
      | ^
Language: C

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



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

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



return 0;

Compiler output:
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | return 0;
      | ^~~~~~
main.c:14:1: error: expected declaration or statement at end of input
Language: C

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



return 0;

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main()
      | ^~~
      | int
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | return 0;
      | ^~~~~~
main.c:14:1: error: expected declaration or statement at end of input
Language: C

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



return 0;

Compiler output:
main.c: In function 'main':
main.c:4:1: error: unknown type name 'Int'; did you mean 'int'?
    4 | Int a,b,c;
      | ^~~
      | int
main.c:14:1: error: expected declaration or statement at end of input
   14 | return 0;
      | ^~~~~~
main.c:14:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
Int main()
{
Int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(b-a==c-b){
printf("YES\n");
}
else{
printf("NO\n");



return 0;

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main()
      | ^~~
      | int
main.c: In function 'main':
main.c:4:1: error: unknown type name 'Int'; did you mean 'int'?
    4 | Int a,b,c;
      | ^~~
      | int
main.c:14:1: error: expected declaration or statement at end of input
   14 | return 0;
      | ^~~~~~
main.c:14:1: error: expected declaration or statement at end of input
Language: Java

import java.util.*;

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

Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
if(2B == A + C){
System.out.println("YES");
}else{
System.out.println("NO");
}

}
}

Compiler output:
Main.java:10: error: ')' expected
if(2B == A + C){
    ^
Main.java:10: error: not a statement
if(2B == A + C){
      ^
Main.java:10: error: ';' expected
if(2B == A + C){
              ^
Main.java:12: error: 'else' without 'if'
}else{
 ^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define LOOP(i,o) for(i=0;i<o;i++)
#define ALL(a)  (a).begin(),(a).end()            
int main() {
  int n;
  cin>>n;
  vector<string> s(n);
  int i=0;
  LOOP(i,n){
    cin>>s[i];
    sort(ALL(s[i]));
  }
  vector<int> a(26,51);
  LOOP(i,n){
    for(int j=0;j<s.at(i).size();j++){
      int hh=1;
      if(s[i][j]==s[i][j+1]){
        hh++;
        continue;
      }
      else{
        a[s[i][j]-'a']=min(a[s[i][j]-'a'],hh);
      }
    }
  }
  for(int i=0;i<26;i++){
    if(a[i]==51) a[i]=0;
  }
  LOOP(i,26){
    for(int j=0;j<a[i];j++){
      ans+=(char)(i+'a');
    }
  }
  cout<<ans<<endl;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:32:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |       ans+=(char)(i+'a');
      |       ^~~
      |       abs
a.cc:35:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   35 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

(print (if (= (+ (- (read) (* 2 (read))) (read)) 0) "YES" "NO"))

Compiler output:
a.cc:1:7: error: expected ')' before '(' token
    1 | (print (if (= (+ (- (read) (* 2 (read))) (read)) 0) "YES" "NO"))
      | ~     ^~
      |       )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: lvalue required as left operand of assignment
    6 |         if(b-a=c-b){
      |            ~^~
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[1]-a[0])==(a[2]-a[1]))
  {
    cout<<"YES"<<endl;
  }
  else
  {
    cout<<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'if'
   10 |   sort(a,a+3)
      |              ^
      |              ;
   11 |   if((a[1]-a[0])==(a[2]-a[1]))
      |   ~~          
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else
      |   ^~~~
Language: C++

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

Compiler output:
a.cc:1:23: error: missing terminating > character
    1 | #include<bits/stdc++.h
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define pb push_back
typedef long long ll;
const int INF = 1000000000;
const long INF64 = 1000000000000000ll;
const ll MOD = 1000000007ll;


int main(){
	int a>>b>>c;
	std::cin >> a>>b>>c;
	if(b-a==c-b)std::cout << "YES" << std::endl;
	else std::cout << "NO" << std::endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected initializer before '>>' token
   13 |         int a>>b>>c;
      |              ^~
a.cc:14:21: error: 'a' was not declared in this scope
   14 |         std::cin >> a>>b>>c;
      |                     ^
a.cc:14:24: error: 'b' was not declared in this scope; did you mean 'pb'?
   14 |         std::cin >> a>>b>>c;
      |                        ^
      |                        pb
a.cc:14:27: error: 'c' was not declared in this scope
   14 |         std::cin >> a>>b>>c;
      |                           ^
Language: C++

<>!~/ .* /;print$`-$&*2+$'?NO:YES

Compiler output:
a.cc:1:18: error: stray '`' in program
    1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES
      |                  ^
a.cc:1:26: warning: missing terminating ' character
    1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES
      |                          ^
a.cc:1:26: error: missing terminating ' character
    1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES
      |                          ^~~~~~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES
      | ^
a.cc:1:12: error: 'print$' does not name a type
    1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES
      |            ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before ':' token
    8 |     cout << "YES" << endl:
      |                          ^
      |                          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |   if(b-a=c-b) {
      |      ~^~
a.cc:8:26: error: expected ';' before ':' token
    8 |     cout << "YES" << endl:
      |                          ^
      |                          ;
Language: C++

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

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

}

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

#include<iostream>

using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'cout'
    8 |   if ((b - a == c - b) cout << "YES";
      |                       ^~~~~
      |                       ;
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else cout << "NO";
      |   ^~~~
a.cc:8:38: error: expected ')' before 'else'
    8 |   if ((b - a == c - b) cout << "YES";
      |      ~                               ^
      |                                      )
    9 |   else cout << "NO";
      |   ~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'cout'
    8 |   if ((abs(a-b) == abs(b-c)) cout << "YES";
      |                             ^~~~~
      |                             ;
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else cout << "NO";
      |   ^~~~
a.cc:8:44: error: expected ')' before 'else'
    8 |   if ((abs(a-b) == abs(b-c)) cout << "YES";
      |      ~                                     ^
      |                                            )
    9 |   else cout << "NO";
      |   ~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'else'
    8 |     cout << "YES"
      |                  ^
      |                  ;
    9 |   else
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'else'
    8 |     cout << "YES"
      |                  ^
      |                  ;
    9 |   else
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0; i<n; i++)
typedef long long ll;
typedef long long unsigned int llu;
ll mod = 1000000007;



void solve(){
    int a,b,c;
    cin >> a >> b >> c;
    if(b-a==c-b) cout << "YES" << endl;
    else cout << "NO" << endll
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:14:26: error: 'endll' was not declared in this scope
   14 |     else cout << "NO" << endll
      |                          ^~~~~
Language: C++

function Main(input){
    input=input.split("\n");
    tmp=input[0].split(" ");
    var a = parseInt(tmp[0], 10);
    var b = parseInt(tmp[1], 10);
    var c = parseInt(tmp[2], 10);
    if(b-a == c-b){
	console.log("YES");
    }else{
	console.log("NO");
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utj8"));


Compiler output:
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function Main(input){
      | ^~~~~~~~
      | union
a.cc:14:5: error: expected constructor, destructor, or type conversion before '(' token
   14 | Main(require("fs").readFileSync("/dev/stdin", "utj8"));
      |     ^
Language: C++

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



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

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

int main() {
  int A; int B; int C;
  cin>>A>>B>>C;
  if(A+C=2*B)
    cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

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

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

int main(){
   int a, b, c;
   cin >> a >> b >> c;
   int k = abs(b-a);
   int l = abs(c-b);
   if (k==l&&K!=0){
     cout << "YES" << endl;
   }
   else {
      cout << "NO" << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'K' was not declared in this scope
   10 |    if (k==l&&K!=0){
      |              ^
Language: C++

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

int main(){
   int a, b, c;
   cin >> a >> b >> c;
   int k = abc(b-a);
   int l = abs(c-b);
   if (k==l){
     cout << "YES" << endl;
   }
   else {
      cout << "NO" << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'abc' was not declared in this scope; did you mean 'abs'?
    8 |    int k = abc(b-a);
      |            ^~~
      |            abs
Language: C++

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

int main(){
   int a, b, c;
   cin >> a >> b >> c;
   int k = abc(b-a), l = abs(c-b);
   if (k==l){
     cout << "YES" << endl;
   }
   else {
      cout << "NO" << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'abc' was not declared in this scope; did you mean 'abs'?
    8 |    int k = abc(b-a), l = abs(c-b);
      |            ^~~
      |            abs
a.cc:9:11: error: 'l' was not declared in this scope
    9 |    if (k==l){
      |           ^
Language: C++

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


int main(){
  int A, B, C; cin >> A >> B >> C;
  cout << (2 * B = A + C ? "YES" : "NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: lvalue required as left operand of assignment
   17 |   cout << (2 * B = A + C ? "YES" : "NO") << endl;
      |            ~~^~~
Language: C++

#include <stdio.h>

int main(){
	scanf("%d %d %d", &a, &b, &c);
	if(b-a == c-b){
		printf("YES\n");
	} else {
		printf("NO\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:28: error: 'a' was not declared in this scope
    4 |         scanf("%d %d %d", &a, &b, &c);
      |                            ^
a.cc:4:32: error: 'b' was not declared in this scope
    4 |         scanf("%d %d %d", &a, &b, &c);
      |                                ^
a.cc:4:36: error: 'c' was not declared in this scope
    4 |         scanf("%d %d %d", &a, &b, &c);
      |                                    ^
Language: C

#include <stdio.h>
int main (){
    int a, b, c;
    scanf ("%d %d %d", &a, &b, &c);
    
    if (b - a == c - b){
        printf ("YES");
    }
    else if (b - a != c - b){
        printd ("NO");
    }
    return 0;
}

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

#include<stdio.h>

int main(){
    char a,b;
    scanf("%c %c",&a,&b);
    if(a=='H'){
        if(b=='H') printf("H\n");
        else printf("D\n")
    }else {
        if(b=='H') printf("D\n");
        else printf("H\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before '}' token
    8 |         else printf("D\n")
      |                           ^
      |                           ;
    9 |     }else {
      |     ~
Language: C++

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

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

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