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

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

int main() {
  int x, y, z, k;
  cin >> x >> y >> z >> k;
  
  vector<long> A(x);
  vector<long> B(y);
  vector<long> C(z);
  
  int i, j, h;
  long l = 0;
  for(i = 0, i < x; i++){
    cin >> A.at(i);
  }
  
  for(i = 0, i < y; i++){
    cin >> B.at(i);
  }
  
  for(i = 0, i < z; i++){
    cin >> C.at(i);
  }
  
  for(i = 0; i < x; i++){
    for(j = 0, j < y; j++){
      for(h = 0, h < z; h++){
        D.at(l) = A.at(i) * B.at(j) * C.at(h);
        l++;
      }
    }
  }
  
  vector<long> D(x * y * z);
  sort(D.begin(), D.end());
  reverse(D.begin(), D.end());
  
  for(l = 0, l < k; l++){
  cout << D.at(l) << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: expected ';' before ')' token
   14 |   for(i = 0, i < x; i++){
      |                        ^
      |                        ;
a.cc:18:24: error: expected ';' before ')' token
   18 |   for(i = 0, i < y; i++){
      |                        ^
      |                        ;
a.cc:22:24: error: expected ';' before ')' token
   22 |   for(i = 0, i < z; i++){
      |                        ^
      |                        ;
a.cc:27:26: error: expected ';' before ')' token
   27 |     for(j = 0, j < y; j++){
      |                          ^
      |                          ;
a.cc:28:28: error: expected ';' before ')' token
   28 |       for(h = 0, h < z; h++){
      |                            ^
      |                            ;
a.cc:29:9: error: 'D' was not declared in this scope
   29 |         D.at(l) = A.at(i) * B.at(j) * C.at(h);
      |         ^
a.cc:39:24: error: expected ';' before ')' token
   39 |   for(l = 0, l < k; l++){
      |                        ^
      |                        ;
Language: C++

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

int main() {
  int x, y, z, k;
  cin >> x >> y >> z >> k;
  
  vector<long> A(x);
  vector<long> B(y);
  vector<long> C(z);
  
  int i, j, k;
  long l = 0;
  for(i = 0, i < x; i++){
    cin >> A.at(i);
  }
  
  for(i = 0, i < y; i++){
    cin >> B.at(i);
  }
  
  for(i = 0, i < z; i++){
    cin >> C.at(i);
  }
  
  for(i = 0; i < x; i++){
    for(j = 0, j < y; j++){
      for(k = 0, k < z; k++){
        D.at(l) = A.at(i) * B.at(j) * C.at(k);
        l++;
      }
    }
  }
  
  sort(D.begin(), D.end());
  reverse(D.begin(), D.end());
  
  for(l = 0, l < k; l++){
  cout << D.at(l) << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: redeclaration of 'int k'
   12 |   int i, j, k;
      |             ^
a.cc:5:16: note: 'int k' previously declared here
    5 |   int x, y, z, k;
      |                ^
a.cc:14:24: error: expected ';' before ')' token
   14 |   for(i = 0, i < x; i++){
      |                        ^
      |                        ;
a.cc:18:24: error: expected ';' before ')' token
   18 |   for(i = 0, i < y; i++){
      |                        ^
      |                        ;
a.cc:22:24: error: expected ';' before ')' token
   22 |   for(i = 0, i < z; i++){
      |                        ^
      |                        ;
a.cc:27:26: error: expected ';' before ')' token
   27 |     for(j = 0, j < y; j++){
      |                          ^
      |                          ;
a.cc:28:28: error: expected ';' before ')' token
   28 |       for(k = 0, k < z; k++){
      |                            ^
      |                            ;
a.cc:29:9: error: 'D' was not declared in this scope
   29 |         D.at(l) = A.at(i) * B.at(j) * C.at(k);
      |         ^
a.cc:35:8: error: 'D' was not declared in this scope
   35 |   sort(D.begin(), D.end());
      |        ^
a.cc:38:24: error: expected ';' before ')' token
   38 |   for(l = 0, l < k; l++){
      |                        ^
      |                        ;
Language: C++

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

int main(){
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    
    int x, y, z;
    ll k;
    cin >> x >> y >> z >> k;
    vector<ll> a, b, c;
    for(int i = 0; i < x; i++){
        ll ai;
        cin >> ai;
        a.push_back(ai);
    }
    for(int i = 0; i < y; i++){
        ll bi;
        cin >> bi;
        b.push_back(bi);
    }
    for(int i = 0; i < z; i++){
        ll ci;
        cin >> ci;
        c.push_back(ci);
    }
    sort(a.begin(), a.end(), std::greater<ll>());
    sort(b.begin(), b.end(), std::greater<ll>());
    sort(c.begin(), c.end(), std::greater<ll>());
    int limit = 0;
    vector<ll> ans;
    int ai = 0, bi = 0, ci = 0;
    //ans.push_back(a[0] + b[0] + c[0]);
    while(limit <= (k/3){
        ll sec = max(a[ai+1], max(b[bi+1], c[ci+1]));
        if(sec == a[ai+1]){  
            ai++;
        }else if(sec == b[bi+1]){
            
            bi++;
        }else{
            
            ci++;
        }
        limit++;
    }
    
    for(int i = 0; i < min(x, ai); i++){
        for(int j = 0; j < min(y, bi); j++){
            for(int f = 0; f < min(z, ci); f++){
                ans.push_back(a[i] + b[j] + c[f]);
            }
        }
    }
    sort(ans.begin(), ans.end(), std::greater<ll>());

    for(int i = 0; i < k; i++){
        cout << ans[i] << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:25: error: expected ')' before '{' token
   36 |     while(limit <= (k/3){
      |          ~              ^
      |                         )
Language: C++

int hout(){
  int rt=H[1],i,j=2,k=H[--C];
  for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
  H[j/2]=k;
  return rt;
}
int main(){
  long long n[3],m,i,j,k,d[3][1010],t[4010];
  for(i=0;i<3;i++)scanf("%lld",&n[i]);
  scanf("%lld",&m);
  for(i=0;i<3;i++){
    for(j=0;j<n[i];j++)scanf("%lld",&d[i][j]);
  }
  for(i=0;i<n[0];i++){
    for(j=0;j<n[1];j++)hin(d[0][i]+d[1][j]);
  }
  k=m<(n[0]*n[1])?m:(n[0]*n[1]);

  for(i=0;i<k;i++)t[i]=N[hout()];
  R=C=1;
  for(i=0;i<k;i++){
    for(j=0;j<n[2];j++)hin(t[i]+d[2][j]);
  }
  for(i=0;i<m;i++)printf("%lld\n",N[hout()]);
  return 0;
}


Compiler output:
a.cc: In function 'int hout()':
a.cc:2:10: error: 'H' was not declared in this scope
    2 |   int rt=H[1],i,j=2,k=H[--C];
      |          ^
a.cc:3:7: error: 'i' was not declared in this scope
    3 |   for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
      |       ^
a.cc:3:20: error: 'C' was not declared in this scope
    3 |   for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
      |                    ^
a.cc:3:11: error: 'hyouka' was not declared in this scope
    3 |   for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
      |           ^~~~~~
a.cc:3:25: error: 'j' was not declared in this scope
    3 |   for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
      |                         ^
a.cc:4:5: error: 'j' was not declared in this scope
    4 |   H[j/2]=k;
      |     ^
a.cc:4:10: error: 'k' was not declared in this scope
    4 |   H[j/2]=k;
      |          ^
a.cc: In function 'int main()':
a.cc:9:19: error: 'scanf' was not declared in this scope
    9 |   for(i=0;i<3;i++)scanf("%lld",&n[i]);
      |                   ^~~~~
a.cc:10:3: error: 'scanf' was not declared in this scope
   10 |   scanf("%lld",&m);
      |   ^~~~~
a.cc:15:24: error: 'hin' was not declared in this scope
   15 |     for(j=0;j<n[1];j++)hin(d[0][i]+d[1][j]);
      |                        ^~~
a.cc:19:24: error: 'N' was not declared in this scope
   19 |   for(i=0;i<k;i++)t[i]=N[hout()];
      |                        ^
a.cc:20:3: error: 'R' was not declared in this scope
   20 |   R=C=1;
      |   ^
a.cc:20:5: error: 'C' was not declared in this scope
   20 |   R=C=1;
      |     ^
a.cc:22:24: error: 'hin' was not declared in this scope
   22 |     for(j=0;j<n[2];j++)hin(t[i]+d[2][j]);
      |                        ^~~
a.cc:24:35: error: 'N' was not declared in this scope
   24 |   for(i=0;i<m;i++)printf("%lld\n",N[hout()]);
      |                                   ^
a.cc:24:19: error: 'printf' was not declared in this scope
   24 |   for(i=0;i<m;i++)printf("%lld\n",N[hout()]);
      |                   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int hout(){
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <utility>
#include <queue>
typedef long long ll;
using namespace std;

struct node{
  ll x,y,z;

  bool operator<(const node& r) const{
    return(x < r.x);
  }
};

int mp[1001][1001][1001];

int main(){
  ll i,j,h;
  priority_queue<ll> p_q;
  vector<ll> a,b,c;
  ll cnt,k,x,y,z;
  cin >> px >> py >> pz >> k;
  a.resize(x),b.resize(y),c.resize(z);
  for(i=0;i<x;i++)cin >> a[i];
  for(i=0;i<y;i++)cin >> b[i];
  for(i=0;i<z;i++)cin >> c[i];
  sort(a.begin(),a.end());
  reverse(a.begin(),a.end());
  sort(b.begin(),b.end());
  reverse(b.begin(),b.end());
  sort(c.begin(),c.end());
  reverse(c.begin(),c.end());
  ll p=0,q=0,r=0;
  priority_queue<pair<ll,node> > que;
  node t;
  t.x = t.y = t.z = 0;
  que.push(make_pair(a[0]+b[0]+c[0],t));
  while(cnt<k){
    cnt++;
    pair<ll,node> pr = que.top();
    que.pop();
    cout << pr.first << endl;
    t = pr.second;
    t.x++;
    if(t.x<x && mp[t.x][t.y][t.z]==0){
      que.push(make_pair(a[t.x]+b[t.y]+c[t.z],t));
      mp[t.x][t.y][t.z]=1;
    }
    t.x--;
    t.y++;
    if(t.y<y&&mp[t.x][t.y][t.z]==0){
      que.push(make_pair(a[t.x]+b[t.y]+c[t.z],t));
      mp[t.x][t.y][t.z]=1;
    }
    t.y--;
    t.z++;
    if(t.z<z&&mp[t.x][t.y][t.z]==0){
      que.push(make_pair(a[t.x]+b[t.y]+c[t.z],t));
      mp[t.x][t.y][t.z]=1;
    }
    t.z--;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: 'px' was not declared in this scope; did you mean 'x'?
   26 |   cin >> px >> py >> pz >> k;
      |          ^~
      |          x
a.cc:26:16: error: 'py' was not declared in this scope; did you mean 'y'?
   26 |   cin >> px >> py >> pz >> k;
      |                ^~
      |                y
a.cc:26:22: error: 'pz' was not declared in this scope; did you mean 'z'?
   26 |   cin >> px >> py >> pz >> k;
      |                      ^~
      |                      z
Language: C

#include<stdio.h>
long long R=1,C=1,H[3000010],N[3000010];
//評価関数（いまはMIN）
int hyouka(int a,int b){
  if(C<b)return 1;
  if(C<a||b==0)return 0;
  return N[H[a]]>N[H[b]]?1:0;
}
//挿入関数
void hin(long long a){
  int i=C++;
  for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2];
  H[i]=R++;
}
//取り出す関数
int hout(){
  int rt=H[1],i,j=2,k=H[--C];
  for(i=1;hyouka(i,C);i=j)H[i]=H[j=i*2+1-hyouka(i*2,i*2+1)];
  H[j/2]=k;
  return rt;
}
int main(){
  long long n[3],m,i,j,k,d[3][1010],t[4010];
  for(i=0;i<3;i++)scanf("%lld",&n[i]);
  scanf("%lld",&m);
  for(i=0;i<3;i++){
    for(j=0;j<n[i];j++)scanf("%lld",&d[i][j]);
  }
  for(i=0;i<n[0];i++){
    for(j=0;j<n[1];j++)hin(d[0][i]+d[1][j]);
  }
  k=m<n[0]*n[1]?m:n[0]*n[1];
  
  for(i=0;i<k;i++)t[i]=N[hout()];
  R=C=1;h
  for(i=0;i<k;i++){
    for(j=0;j<n[2];j++)hin(t[i]+d[2][j]);
  }
  for(i=0;i<m;i++)printf("%lld\n",N[hout()]);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:35:9: error: 'h' undeclared (first use in this function)
   35 |   R=C=1;h
      |         ^
main.c:35:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:35:10: error: expected ';' before 'for'
   35 |   R=C=1;h
      |          ^
      |          ;
   36 |   for(i=0;i<k;i++){
      |   ~~~
Language: C++

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

int main()
{
    int X, Y, Z, K;
    cin>>X>>Y>>Z>>K;
    vector<long long> A(X);
    for (long long &a: A)
        cin>>a;
    vector<long long> B(Y);
    for (long long &b: B)
        cin>>b;
    vector<long long> C(Z);
    for (long long &c: C)
        cin>>c;
    
    sort(A.begin(), A.end());
    reverse(A.begin(), A.end());
    sort(B.begin(), B.end());
    reverse(B.begin(), B.end());
    sort(C.begin(), C.end());
    reverse(C.begin(), C.end());

    priority_queue<pair<long long, pair<int, pair<int,int>>>> Q;
    for (int x=0; x<X; x++)
        for (int y=0; y<Y; y++)
            Q.push(make_pair(A[x]+B[y]+C[0], make_pair(x, make_pair(y, 0))));

    for (int k=0; k<K; k++)
    {
        auto t = Q.top();
        Q.pop();
        cout<<t.first<<endl;

        int x = t.second.first;
        int y = t.second.second.first;
        int z = t.second.second.second;
        if (z<Z-1)
            Q.push(make_pair(A[x]+B[y]+C[z+1], make_pair(x, make_pair(y, z+1))));
    }
}


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

//{{{
#include <bits/stdc++.h>
using namespace std;
#define repX(a,b,c,x,...) x
#define repN(a) repX a
#define rep(...) repN((__VA_ARGS__,rep3,rep2,loop))(__VA_ARGS__)
#define rrep(...) repN((__VA_ARGS__,rrep3,rrep2))(__VA_ARGS__)
#define loop(n) rep2(i_,n)
#define rep2(i,n) rep3(i,0,n)
#define rep3(i,begin,end) for(int i=(int)(begin),i##_end=(int)(end);i<i##_end;++i)
#define rrep2(i,n) rrep3(i,n,0)
#define rrep3(i,begin,end) for(int i=(int)(begin-1),i##_end=(int)(end);i>=i##_end;--i)
#define foreach(x,a) for(auto&x:a)
using ll=long long;
const ll mod=(ll)1e9+7;
//}}}

ll dp[];

int main()
{
  ll X, Y, Z, K;
  cin >> X >> Y >> Z >> K;
  vector<ll> A(X);
  vector<ll> B(Y);
  vector<ll> C(Z);
  rep(i, X) cin >> A[i];
  rep(i, Y) cin >> B[i];
  rep(i, Z) cin >> C[i];
  sort(A.begin(), A.end());
  sort(B.begin(), B.end());
  sort(C.begin(), C.end());
  vector<ll> v(X * Y);
  int i = 0;
  foreach(a, A){
    foreach(b, B){
      v[i++] = a + b;
    }
  }
  sort(v.rbegin(), v.rend());
  ll v_size = min((int)v.size(), (int)K);
  vector<ll> ans(v_size * Z);
  int ii = 0;
  rep(i, v_size){
    foreach(c, C){
      ans[ii++] = v[i] + c;
    }
  }
  sort(ans.rbegin(), ans.rend());
  rep(i, K){
    cout << ans[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc:18:4: error: storage size of 'dp' isn't known
   18 | ll dp[];
      |    ^~
Language: C++

#include<iostream>
#include<stdint>
#include<vector>
#include<algorithm>
using namespace std; // 575

const int MAX = 1000;
int main() {
	int X, Y, Z, K;
	int64_t A[MAX], B[MAX], C[MAX];
	cin >> X >> Y >> Z >> K;
	for (int i = 0;i < X;++ i) cin >> A[i];
	for (int i = 0;i < Y;++ i) cin >> B[i];
	for (int i = 0;i < Z;++ i) cin >> C[i];
	vector<int64_t> v, v2;
	for (int i = 0;i < X;++ i) for (int j = 0;j < Y;++ j) v.push_back(A[i] + B[j]);
	sort(v.rbegin(), v.rend());
	for (int i = 0;i < min(X*Y, K);++ i) for (int j = 0;j < Z;++ j) v2.push_back(v[i] + C[j]);
	sort(v2.rbegin(), v2.rend());
	for (int i = 0;i < K;++ i) cout << v2[i] << endl;
	return 0;
}
/*
31536000のコメント解説欄
ここテンプレで用意してるから、A問題とかだとこの先空欄の危険あり
また、コンテスト後に https://31536000.hatenablog.com/ で解説していると思うので、良かったら読んでねー

まずはソートしておく、どうせやっても損はない

さて、3個は面倒だからちょっと減らして2個で考えよう
x+yとzで分けるんだ
さて、この時高速に判定ができないか考える
まず、x+yのK番目以降は全部無視できる、それより大きいx+yを使えばいい
……お、個数がO(KZ)に減ったやん
よっしゃ全探索だ終わり
*/

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

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

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

  // 1.の出力
if (a==b && b==c)
{cout << "Yes" << endl;}
  // ここにプログラムを追記
}
else {cout << "No" << endl;}


Compiler output:
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {cout << "No" << endl;}
      | ^~~~
Language: C++

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

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

  // 1.の出力
if (a==b&&b==c)
{cout << 'Yes' << endl;}
  // ここにプログラムを追記
}
else {cout << 'No' << endl;}


Compiler output:
a.cc:10:10: warning: multi-character character constant [-Wmultichar]
   10 | {cout << 'Yes' << endl;}
      |          ^~~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 | else {cout << 'No' << endl;}
      |               ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {cout << 'No' << endl;}
      | ^~~~
Language: C++

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

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

  // 1.の出力
if (a==b,b==c)
{cout << "Yes" << endl;}
  // ここにプログラムを追記
}
else {cout << "No" << endl;}


Compiler output:
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {cout << "No" << endl;}
      | ^~~~
Language: C++

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

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

  // 1.の出力
if (a==b,b==c)
{cout << 'Yes' << endl;}
  // ここにプログラムを追記
}
else {cout << 'No' << endl;}


Compiler output:
a.cc:10:10: warning: multi-character character constant [-Wmultichar]
   10 | {cout << 'Yes' << endl;}
      |          ^~~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 | else {cout << 'No' << endl;}
      |               ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {cout << 'No' << endl;}
      | ^~~~
Language: C++

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

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

  // 1.の出力
if (a==b==c)
{cout << 'Yes' << endl;}
  // ここにプログラムを追記
}
else {cout << 'No' << endl;}

Compiler output:
a.cc:10:10: warning: multi-character character constant [-Wmultichar]
   10 | {cout << 'Yes' << endl;}
      |          ^~~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 | else {cout << 'No' << endl;}
      |               ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {cout << 'No' << endl;}
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(),x.end()
#define rep(i,j,n) for (long long i = j; i < (long long)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//(a+b-1)/b

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

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(),x.end()
#define rep(i,j,n) for (long long i = j; i < (long long)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//(a+b-1)/b

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

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

#include<iostream>
int main(void){
  int A,B,C;
  cin >> A >> B >> C;
  if((A==B)&&(A==C))
    cout >> "Yes" >> endl;
  else
    cout >> "No" >> endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> A >> B >> C;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout >> "Yes" >> endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout >> "Yes" >> endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout >> "No" >> endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout >> "No" >> endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>
int main(void){
  int A,B,C;
  cin >> A >> B >> C;
  if((A==B)&&(A==C))
    cout >> "Yes" >> endl;
  else
    cout >> "No" >> endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> A >> B >> C;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout >> "Yes" >> endl;
      |     ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |     cout >> "Yes" >> endl;
      |                      ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout >> "No" >> endl;
      |     ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |     cout >> "No" >> endl;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:5:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(a==b&&b==c)cout<<"Yes"<<endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(a==b&&b==c)cout<<"Yes"<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout<<"No"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout<<"No"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef vector<char> vc;
typedef queue<ll> ql;
typedef deque<ll> dql;
typedef priority_queue<ll/*, vl, greater<ll>*/> pql; //降順(/*昇順*/)
typedef set<ll> sl;
typedef pair<ll, ll> pl;
typedef vector<vl> vvl;
typedef vector<pl> vpl;
#define rep(i, n) for(ll i = 0; i < ll(n); i++)
#define rep2(i, n) for(ll i = 1; i <= ll(n); i++)
//#define rep(i, k, n) for(ll i = k-1; i < ll(n); i++)
//#define rep2(i, k, n) for(ll i = k; i <= ll(n); i++)
#define all(v) (v).begin(), (v).end()
bool chmin(ll &a, ll b) {if(b < a) {a = b; return 1;} return 0;}
bool chmax(ll &a, ll b) {if(b > a) {a = b; return 1;} return 0;}
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
//const ll MOD = 998244353;
const ll MAX = 1e9;
const char newl = '\n';

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

  ll a, b, c;
  cin >> a >> b >> c;
  cout (a==b and b==c ? "Yes" : "No") << newl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char*)'
   34 |   cout (a==b and b==c ? "Yes" : "No") << newl;
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){

  long long D,G,c;

cin>>D>>G>>c;

if(D == G && G == c && c == D)
cout<<"Yes"<<endl;
else
cout<<"  No "<<endl;


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: redeclaration of 'long int ll'
    4 | #define long long ll;
      |                   ^~
a.cc:8:8: note: in expansion of macro 'long'
    8 |   long long D,G,c;
      |        ^~~~
a.cc:4:19: note: 'long int ll' previously declared here
    4 | #define long long ll;
      |                   ^~
a.cc:8:3: note: in expansion of macro 'long'
    8 |   long long D,G,c;
      |   ^~~~
a.cc:8:13: error: 'D' was not declared in this scope
    8 |   long long D,G,c;
      |             ^
a.cc:8:15: error: 'G' was not declared in this scope
    8 |   long long D,G,c;
      |               ^
a.cc:8:17: error: 'c' was not declared in this scope
    8 |   long long D,G,c;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
void YesNo(bool x) {
    if (x) cout << "Yes" << endl;
    else cout << "No" << endl;
}
int main() {
  int A, B, C; cin >> A >> B >> C;
  YesNo(A+B+C-max({A,B,C}) >= max(A,B,C));
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:34:   required from here
    9 |   YesNo(A+B+C-max({A,B,C}) >= max(A,B,C));
      |                               ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
void YesNo(bool x) {
    if (x) cout << "Yes" << endl;
    else cout << "No" << endl;
}
int main() {
  int A, B, C; cin >> A >> B >> C;
  YesNo(A+B+C-max({A,B,C}) > max(A,B,C));

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected '}' at end of input
    9 |   YesNo(A+B+C-max({A,B,C}) > max(A,B,C));
      |                                          ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:33:   required from here
    9 |   YesNo(A+B+C-max({A,B,C}) > 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++

//#define _GLIBCXX_DEBUG
#include <iostream>
using namespace std;
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl

int main(){
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cout << fixed << setprecision(10);
    int a,b,c;
    cin>>a>>b>>c;
    (a==b&&b==c)?Yes:No;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'setprecision' was not declared in this scope
    9 | cout << fixed << setprecision(10);
      |                  ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <iostream>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'strong' was not declared in this scope
    7 |   strong ans ="No";
      |   ^~~~~~
a.cc:8:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(a ==b && b == c) ans = "Yes";
      |                       ^~~
      |                       abs
a.cc:9:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:3: error: 'strong' was not declared in this scope
    7 |   strong ans ="No";
      |   ^~~~~~
a.cc:8:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(a ==b && b == c) ans = "Yes";
      |                       ^~~
      |                       abs
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << 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:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout << ans << endl;
      |           ^~~
      |           abs
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,C;cin>>A>>B>>C;
  cout<<(A==B&&B==C)?"Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:32: error: expected ';' before ')' token
    6 |   cout<<(A==B&&B==C)?"Yes":"No")<<endl;
      |                                ^
      |                                ;
Language: C++

a=gets.split.map(&:to_i)
if a[0] == a[1] && a[1] == a[2]
    puts "Yes"
else
    puts "No"
end



Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=gets.split.map(&:to_i)
      | ^
Language: C++

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

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

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

int main() {
  int x,y,z;
  cin >> x>>y>>z;

  if (x==y&&y==z) {
    if
    cout << "Yes" << endl;
  }
else
  cout << "No" << endl;
}


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

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:41: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |   cout<<(t[2]>=t[1]+t[0]) ? "No" : "Yes"<<endl;
      |                                    ~~~~~^~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rrep(i, n) for (ll i = n - 1; i >= 0; i--)
#define Rep(i, r, n) for (ll i = r; i < n; i++)
#define RRep(i, r, n) for (ll i = n - 1; i <= r; i--)
#define debug(x) cout << #x << ' ' << '=' << ' ' << (x) << endl;
#define fs first
#define sc second
#define int long long
#define pb push_back
const int dx[] = {0, -1, 0, 1};
const int dy[] = {1, 0, -1, 0};
const int MOD = (1000000007);
//const int MOD = (998244353);
//const int INF = (1 << 30)-1;
const int INF = (1LL << 60)-1;
const double EPS = (1 >> 30);

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return 1;} return 0;}

using Graph = vector<vector<pair<int, int>>>;

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(10);
    //---------------------------------------------
    
    vector<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    sort(all(a));
    if(a[0]==a[1]%%a[1]==a[2]){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:19: error: expected primary-expression before '%' token
   42 |     if(a[0]==a[1]%%a[1]==a[2]){
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long ;
using P = pair<ll, ll>;
using Vec = vector<ll>;
using VecP = vector<P>;
#define FOR(i, m, n) for(ll (i) = (m); (i) < (n); ++(i))
#define FORN(i, m, n) for(ll (i) = (m); (i) <= (n); ++(i))
#define FORR(i, m, n) for(ll (i) = (m); (i) >= (n); --(i))
#define rep(i, n) FOR(i, 0, n)
#define repn(i, n) FORN(i, 1, n)
#define repr(i, n) FORR(i, n, 0)
#define repnr(i, n) FORR(i, n, 1)
#define co(n) cout << (n) << endl
#define cosp(n) cout << (n) << ' '
#define setp(n) cout << fixed << setprecision(n);
#define all(s) (s).begin(), (s).end()
#define pb push_back
#define mp make_pair
#define fs first
#define sc second

const ll INF = 1e9+1;
const ll LINF = 1e18+1;
const ll MOD = 1e9+7;
//const ll MOD = 998244353;
const double PI = acos(-1);
const double EPS = 1e-9;

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

	if(a == b && b == c) ptus("Yes");
	else puts("No");

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:30: error: 'ptus' was not declared in this scope; did you mean 'puts'?
   34 |         if(a == b && b == c) ptus("Yes");
      |                              ^~~~
      |                              puts
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" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before 'c'
    5 |   int 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 <iostream>
#include <fstream>
#include <bits/stdc++.h>
using namespace std;
ifstream fin("radacina.in");
ofstream fout("radacina.out");
int N,Q,s,minimal=1e18;
const int zecimala=1e5;
vector<pair<char,char > > v;
bool Golems[20010];
map <char,int> Letters;
int cntGolems;
bool comparator(double firstTerm,double secondTerm)
{
    return (abs(firstTerm-secondTerm)<(1e-5));
}

double cautare(double st,double dr)
{
    double mij;
    while(st<=dr)
    {
        mij=(st+dr)/2;
        double x,y;
    }
}

int main()
{
    cin>>N>>Q;
    cin>>s;
    for(i=0;i<s.size();i++)
    {
        Letters[s[i]]=i;
    }
    cntGolems=n;
    for(i=1;i<=Q;i++)
    {
        char x,y;
        cin>>x>>y;
        v.push_back({x,y});
        Golems[i-1]=1;
    }
    for(i=0;i<=Q-1;i++)
    {
        char dir=v[i].second;
        if(dir=='R')
        {
            if(i==Q-1)
            {
                cntGolems--;
                Golems[i]=0;
            }
        }
        else//dir=='L'
        {
            if(i==0)
            {
                cntGolems--;
                Golems[i]=0;
            }
        }
    }
    cout<<cntGolems;
    fin.close();
    fout.close();
    return 0;
}


Compiler output:
a.cc:7:19: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
    7 | int N,Q,s,minimal=1e18;
      |                   ^~~~
a.cc: In function 'double cautare(double, double)':
a.cc:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^
a.cc: In function 'int main()':
a.cc:32:9: error: 'i' was not declared in this scope
   32 |     for(i=0;i<s.size();i++)
      |         ^
a.cc:32:17: error: request for member 'size' in 's', which is of non-class type 'int'
   32 |     for(i=0;i<s.size();i++)
      |                 ^~~~
a.cc:36:15: error: 'n' was not declared in this scope
   36 |     cntGolems=n;
      |               ^
a.cc:37:9: error: 'i' was not declared in this scope
   37 |     for(i=1;i<=Q;i++)
      |         ^
a.cc:44:9: error: 'i' was not declared in this scope
   44 |     for(i=0;i<=Q-1;i++)
      |         ^
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <cmath>
#include <queue>
#include <tuple>
//#include <bits/stdc++.h>
#define maxs(x,y) x = max(x,y)
#define mins(x,y) x = min(x,y)
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define repr(i, n) for (int i = (n) - 1; i >= 0; i--)
#define FOR(i,i0,n) for(int (i)=(i0);(i)<(n);(i)++)
#define FORR(i,i0,n) for(int (i)=(n)-1; (i)>=(i0);(i)--)
#define SORT(x) sort(x.begin(),x.end())
#define rn return
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
typedef std::pair<int,int> P;
using namespace std;
using ll = long long;

const int mod = 1000000007;
struct mint{
    ll x;
    mint(ll x=0):x(x%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 ans(*this);
        return ans+= a;
    }
    mint operator-(const mint a) const{
        mint ans(*this);
        return ans-= a;
    }
    mint operator*(const mint a) const{
        mint ans(*this);
        return ans*= a;
    }
};



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

Compiler output:
a.cc: In function 'int main()':
a.cc:64:53: error: expected ';' before '}' token
   64 |     if (A==B && B == C && A==C) {cout << "Yes"; rn 0};
      |                                                     ^
      |                                                     ;
a.cc:66:9: error: expected ';' before '}' token
   66 |     rn 0
      |         ^
      |         ;
   67 | }
      | ~
Language: Java

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

Compiler output:
Main.java:9: error: package SYstem does not exist
    else SYstem.out.println("No");
               ^
1 error
Language: C

#include <stdio.h>
2.int main (void){
3.  int A,B,C;
4.  scanf("%d %d %d ",&A,&B,&C);
5.  if(A==B==C){
6.    printf("Yes");
7.  }
8.  else {
9.    printf("No");
10.  }
11.  return 0;
12.}


Compiler output:
main.c:2:1: error: invalid suffix "int" on floating constant
    2 | 2.int main (void){
      | ^~~~~
main.c:2:1: error: expected identifier or '(' before numeric constant
Language: C

#include <stdio.h>
2.int main (vpid){
3.  int A,B,C;
4.  scanf("%d %d %d ",&A,&B,&C);
5.  if(A==B==C){
6.    printf("Yes");
7.  }
8.  else {
9.    printf("No");
10.  }
11.  return 0;
12.}


Compiler output:
main.c:2:1: error: invalid suffix "int" on floating constant
    2 | 2.int main (vpid){
      | ^~~~~
main.c:2:1: error: expected identifier or '(' before numeric constant
Language: C

#include <stdio.h>
2.int main (void){
3.  int A,B,C;
4.  scanf("%d %d %d ",&A,&B,&C);
5.  if(A=B=C){
6.    printf("Yes");
7.  }
8.  else {
9.    printf("No");
10.  }
11.  return 0;
12.}


Compiler output:
main.c:2:1: error: invalid suffix "int" on floating constant
    2 | 2.int main (void){
      | ^~~~~
main.c:2:1: error: expected identifier or '(' before numeric constant
Language: C++

int x, y, z;
cin >> x >> y >> z;
if (x == y && y == z){
	cout << "Yes";
}
else {
	cout << "No";
}

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> x >> y >> z;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if (x == y && y == z){
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else {
      | ^~~~
Language: C++

//
//  main.cpp
//  A-regular_triangle
//
//  Created by david chong on 8/21/19.
//  Copyright © 2019 david chong. All rights reserved.
//

#include <iostream>
#include <string>

using namespace std;


string solve(int a, int b, int c) {
    
    string result = "NO";
    if(a > 0 && a == b && b == c) {
        result = "YES";
    }
    
    return result;
}


int main(int argc, const char * argv[]) {
    
//    freopen("input.in", "r", stdin);
    
    int a, b, c;
    
    cin.ignore(std::numeric_limits<std::streamsize>::max());
    
    cin >> a >> b >> c;
    
    cout << solve(a, b, c) << endl;
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:32:21: error: 'numeric_limits' is not a member of 'std'
   32 |     cin.ignore(std::numeric_limits<std::streamsize>::max());
      |                     ^~~~~~~~~~~~~~
a.cc:32:51: error: expected primary-expression before '>' token
   32 |     cin.ignore(std::numeric_limits<std::streamsize>::max());
      |                                                   ^
a.cc:32:57: error: no matching function for call to 'max()'
   32 |     cin.ignore(std::numeric_limits<std::streamsize>::max());
      |                                                    ~~~~~^~
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:9:
/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, 0 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, 0 provided
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <iomanip>
#include <bitset>
#include <string>
#include <stdlib.h>
using namespace std;
//cout <<  << endl;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
int main() {
    ll  a,b,c;
    cin >> a >> b >> c;
    sort(a.begin(),a.end());
    if (a==b && b==c){
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: request for member 'begin' in 'a', which is of non-class type 'll' {aka 'long long int'}
   18 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:18:22: error: request for member 'end' in 'a', which is of non-class type 'll' {aka 'long long int'}
   18 |     sort(a.begin(),a.end());
      |                      ^~~