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

//#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const long long INF= 1e+18+1;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(){
  vector<ll>vec(4);
  rep(i,4)cin>>vec[i];
  sort(vec.begin(),vec.end());
  if(vec=={1,4,7,9})cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: expected primary-expression before '{' token
   19 |   if(vec=={1,4,7,9})cout<<"YES"<<endl;
      |           ^
a.cc:19:11: error: expected ')' before '{' token
   19 |   if(vec=={1,4,7,9})cout<<"YES"<<endl;
      |     ~     ^
      |           )
Language: C++

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

int main(){
  vector<int> A(4);
  rep(i,4) cin >> A[i];
  sort(A.begin(),A.end());
  if(A[0] == 1 && A[1] == 4 && A[2] == 7 && A[3] == 9){
    puts("YES");
  }
  else putd("NO");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'putd' was not declared in this scope; did you mean 'putw'?
   14 |   else putd("NO");
      |        ^~~~
      |        putw
Language: C++

#include<iostream>
#include<stdio.h>//printf("%.*f\n",*********);
#include<vector>//s.erase(n),vector
#include<algorithm>//next_permutation
#include<set>
#include<string>//char('a'=32+'A')
                //to_string,string,substr
#include<sstream>
#include<complex>
#include<time.h>
#include<random>
#include<cmath>//min,max
#include<math.h>
#include<queue>
#include<time.h>
#include<iomanip>
#include<locale>
#include<utility>//swap
#define rt "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)//start==1
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define drop(i,n) for(int i=n;0<i;i--)//end==1
#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;
#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;
#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;
#define Yay(ans) if(ans)cout<<"Yay!"<<rt;else cout<<":("<<rt;
#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;
#define vcin(a,n) rep(i,n)cin>>a[i];//vcin(配列名),(繰り返し回数)
#define sort(s) sort(s.begin(),s.end())//昇順
#define reve(s) reverse(s.begin(),s.end())//反転
#define please return
#define AC 0
#define rapid_pleaseAC_fast cin.tie(0);ios::sync_with_stdio(false)
#define pi 3.1415926535897932384626//pi
#define nine 1000000000//10^9

using namespace std;
typedef vector<int> vint;
typedef long double ldouble;
typedef vector<string> vstr;
typedef vector<char> vchar;
typedef vector<double> vdou;
typedef vector<double> vdouble;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<char>> vvchar;
typedef vector<vector<double>> vvdouble;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<string>> vvstr;
typedef vector<vector<bool>> vvbool;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;

long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

long long LCM(long long a, long long b) {
	return a * b / GCD(a, b);
}

unsigned GetDigit(unsigned num) {
	return std::to_string(num).length();
}

int tow(int n) {//2のn乗
	if (n == 0)return 1;
	int x = tow(n / 2);
	x *= x;
	if (n % 2 == 1)x *= 2;
	return x;//@domino
}

int KETA(int n) { //Sum of Each Digit
	int sum = 0;
	while (n > 0) {
		sum += n % 10; n /= 10;
	}
	return sum;
}

unsigned ND(unsigned num) {//Number of Digits
	return std::to_string(num).length();//outmax=10
}

bool KIBN(string s) {
	rep(i, s.size() / 2) {
		if (s[i] != s[s.size() - 1 - i])return false;
	}
	return true;
}

/*

 (char)toupper(a[n])=文字列のn文字目を大文字で出力

  pow(a,b)=aのb乗

  */


int main(void) {
	rapid_pleaseAC_fast;

	vchar s(4);
	vcin(s, 4);
	sort(s);
	string ans = s[0] + s[1] + s[2] + s[3];
	YES(ans == "1479");

	please AC;
}
//参考：---

Compiler output:
a.cc: In function 'int main()':
a.cc:115:41: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
  115 |         string ans = s[0] + s[1] + s[2] + s[3];
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[4];
int main()
{
    for(int i=0;i<4;i++){
        cin>>a[i];
    }
    sort(a,a+4);
    if(a[0]==1&&a[1]==4&&a[2]==7&&a[3]==){
        cout<<"YES";
    }
    else{
        cout<<"NO";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: expected primary-expression before ')' token
   10 |     if(a[0]==1&&a[1]==4&&a[2]==7&&a[3]==){
      |                                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A<B<C<D;cin>>A>>B>>C>>D;
  cout<<(A+B+C+D==21&&A*B*C*D==252?"YES":"NO")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '<' token
    5 |   int A<B<C<D;cin>>A>>B>>C>>D;
      |        ^
a.cc:5:20: error: 'A' was not declared in this scope
    5 |   int A<B<C<D;cin>>A>>B>>C>>D;
      |                    ^
a.cc:5:23: error: 'B' was not declared in this scope
    5 |   int A<B<C<D;cin>>A>>B>>C>>D;
      |                       ^
a.cc:5:26: error: 'C' was not declared in this scope
    5 |   int A<B<C<D;cin>>A>>B>>C>>D;
      |                          ^
a.cc:5:29: error: 'D' was not declared in this scope
    5 |   int A<B<C<D;cin>>A>>B>>C>>D;
      |                             ^
Language: C++

#include<bits/stdc++.h>
#define endl '\n';
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("Ofast")
constexpr ll INF = 1e18;
constexpr int inf = 1e9;
constexpr double INFD = 1e100;
constexpr ll mod = 1000000007;
constexpr ll mod2 = 998244353;
const double PI = 3.1415926535897932384626433832795028841971;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
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; }
// ios::sync_with_stdio(false);
// cin.tie(nullptr);
// ---------------------------------------------------------------------------

int main(){
  vector<int> cnt(11,0)
  for(int i=0; i<4; i++){
    int a;
    cin >> a;
    cnt[a]++;
  }
  if(cnt[1] and cnt[4] and cnt[9] and cnt[7]){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:3: error: expected ',' or ';' before 'for'
   25 |   for(int i=0; i<4; i++){
      |   ^~~
a.cc:25:16: error: 'i' was not declared in this scope
   25 |   for(int i=0; i<4; i++){
      |                ^
Language: C++

#include <bits/stdc++.h>

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

using namespace std;

int main(){
	int a[4];
	rep(i,4) scanf("%d",&a[i]);
	sort(a,a+4)
	puts(a[0]==1&&a[1]==9&&a[2]==7&&a[3]==4?"YES":"NO");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'puts'
   10 |         sort(a,a+4)
      |                    ^
      |                    ;
   11 |         puts(a[0]==1&&a[1]==9&&a[2]==7&&a[3]==4?"YES":"NO");
      |         ~~~~
Language: C++

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

int main() {
	vector<int> n(4);
    for(int i=0;i<4,i++){
      cin >> n.at(i);
    }
    sort(n.begin(),n.end());
    if(n.at(0)==1 && n.at(1)==4 && n.at(2)==7 && n.at(3)==9){
      cout << "YES" << endl;
    }
    else{
      cout << "NO" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before ')' token
    6 |     for(int i=0;i<4,i++){
      |                        ^
      |                        ;
Language: C++

# import math
# import decimal
# import queue
# import bisect
# import heapq
# import time
# import itertools

mod = int(1e9+7)

def main():
    n = list(map(int,input().split()))
    n.sort()
    if n[0] == 1 and n[1] == 4 and n[2] == 7 and n[3] == 9:
        print('YES')
    else:
        print('NO')
    return

if __name__=='__main__':
    main()


Compiler output:
a.cc:1:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | # import math
      |   ^~~~~~
a.cc:1:10: error: #import expects "FILENAME" or <FILENAME>
    1 | # import math
      |          ^~~~
a.cc:2:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | # import decimal
      |   ^~~~~~
a.cc:2:10: error: #import expects "FILENAME" or <FILENAME>
    2 | # import decimal
      |          ^~~~~~~
a.cc:3:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    3 | # import queue
      |   ^~~~~~
a.cc:3:10: error: #import expects "FILENAME" or <FILENAME>
    3 | # import queue
      |          ^~~~~
a.cc:4:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    4 | # import bisect
      |   ^~~~~~
a.cc:4:10: error: #import expects "FILENAME" or <FILENAME>
    4 | # import bisect
      |          ^~~~~~
a.cc:5:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    5 | # import heapq
      |   ^~~~~~
a.cc:5:10: error: #import expects "FILENAME" or <FILENAME>
    5 | # import heapq
      |          ^~~~~
a.cc:6:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    6 | # import time
      |   ^~~~~~
a.cc:6:10: error: #import expects "FILENAME" or <FILENAME>
    6 | # import time
      |          ^~~~
a.cc:7:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    7 | # import itertools
      |   ^~~~~~
a.cc:7:10: error: #import expects "FILENAME" or <FILENAME>
    7 | # import itertools
      |          ^~~~~~~~~
a.cc:15:15: warning: multi-character character constant [-Wmultichar]
   15 |         print('YES')
      |               ^~~~~
a.cc:17:15: warning: multi-character character constant [-Wmultichar]
   17 |         print('NO')
      |               ^~~~
a.cc:20:14: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   20 | if __name__=='__main__':
      |              ^~~~~~~~~~
a.cc:9:1: error: 'mod' does not name a type
    9 | mod = int(1e9+7)
      | ^~~
Language: C++

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

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

int main() [
  vector <int> v(4);
  rep(i, 4) {cin >> v.at(i);}
  sort(v.begin(), v.end())
  vector <int> ans = {1, 4, 7, 9}
  if (v == ans) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc:7:16: error: expected primary-expression before 'v'
    7 |   vector <int> v(4);
      |                ^
a.cc:7:15: error: expected ']' before 'v'
    7 |   vector <int> v(4);
      |               ^~
      |               ]
a.cc:4:19: error: expected unqualified-id before 'for'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:8:3: note: in expansion of macro 'rep'
    8 |   rep(i, 4) {cin >> v.at(i);}
      |   ^~~
a.cc:8:7: error: 'i' does not name a type
    8 |   rep(i, 4) {cin >> v.at(i);}
      |       ^
a.cc:4:35: note: in definition of macro 'rep'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:8:7: error: 'i' does not name a type
    8 |   rep(i, 4) {cin >> v.at(i);}
      |       ^
a.cc:4:49: note: in definition of macro 'rep'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 |   sort(v.begin(), v.end())
      |       ^
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (v == ans) {
      |   ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |   } else {
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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

int main() [
  vector <int> v(4);
  rep(i, 4) {cin >> v.at(i);}
  sort(v.begin(), v.end())
  vector <int> ans = {1, 4, 7, 9}
  if (v = ans) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc:7:16: error: expected primary-expression before 'v'
    7 |   vector <int> v(4);
      |                ^
a.cc:7:15: error: expected ']' before 'v'
    7 |   vector <int> v(4);
      |               ^~
      |               ]
a.cc:4:19: error: expected unqualified-id before 'for'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:8:3: note: in expansion of macro 'rep'
    8 |   rep(i, 4) {cin >> v.at(i);}
      |   ^~~
a.cc:8:7: error: 'i' does not name a type
    8 |   rep(i, 4) {cin >> v.at(i);}
      |       ^
a.cc:4:35: note: in definition of macro 'rep'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:8:7: error: 'i' does not name a type
    8 |   rep(i, 4) {cin >> v.at(i);}
      |       ^
a.cc:4:49: note: in definition of macro 'rep'
    4 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 |   sort(v.begin(), v.end())
      |       ^
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (v = ans) {
      |   ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |   } else {
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  vector<int> data(N);
  for(int i = 0; i < 4; i++)cin >> data.at(i);
  sort(data.begin(), data.end());
  int[4] A = {1, 4, 7, 9};
  for(int i = 0; i < 4; i++){
    if(A[i] != data.at(i)){
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: 'N' was not declared in this scope
    4 |   vector<int> data(N);
      |                    ^
a.cc:7:7: error: expected identifier before numeric constant
    7 |   int[4] A = {1, 4, 7, 9};
      |       ^
a.cc:7:7: error: expected ']' before numeric constant
    7 |   int[4] A = {1, 4, 7, 9};
      |       ^
      |       ]
a.cc:7:6: error: structured binding declaration cannot have type 'int'
    7 |   int[4] A = {1, 4, 7, 9};
      |      ^
a.cc:7:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:6: error: empty structured binding declaration
a.cc:7:10: error: expected initializer before 'A'
    7 |   int[4] A = {1, 4, 7, 9};
      |          ^
a.cc:9:8: error: 'A' was not declared in this scope
    9 |     if(A[i] != data.at(i)){
      |        ^
Language: C++

#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>

#define F first
#define S second
//#define int long long
#define ll long long
//#define int  unsigned long long
#define pb push_back
#define double long double

using namespace std;
using namespace __gnu_pbds;
typedef  tree< int , null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
const int N = 300000;
const int K = 19;
int used[N], c[N], d[N], ans[N], u[N], v[N], in[N], deg[N];
vector < pair < int, pair < int, int > > > g[N];

main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    //freopen("input.txt", "r", stdin);
    cin >> a[0] >> a[1] >> a[2] >> a[3];
    sort(a, a + 3);
    if (a[0] == 1 && a[1] == 9 && a[2] == 7 && a[3] == 4){
        cout << "YES";
        return 0;
    }
    cout << "NO";
    
}


Compiler output:
a.cc:21:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   21 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:25:12: error: 'a' was not declared in this scope
   25 |     cin >> a[0] >> a[1] >> a[2] >> a[3];
      |            ^
Language: C++

print("YES"if sorted(map(int,input().split()))==[1,4,7,9]else"NO")

Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print("YES"if sorted(map(int,input().split()))==[1,4,7,9]else"NO")
      |      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:25: error: 'a' undeclared (first use in this function)
    4 |   scanf("%d %d %d %d", &a, &b, &c, &d);
      |                         ^
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: 'b' undeclared (first use in this function)
    4 |   scanf("%d %d %d %d", &a, &b, &c, &d);
      |                             ^
main.c:4:33: error: 'c' undeclared (first use in this function)
    4 |   scanf("%d %d %d %d", &a, &b, &c, &d);
      |                                 ^
main.c:4:37: error: 'd' undeclared (first use in this function)
    4 |   scanf("%d %d %d %d", &a, &b, &c, &d);
      |                                     ^
Language: C

#include <stdio.h>

int main(int a, b, c, d) {
  if((a+b+c+d) == 21 && (a*b*c*d) == 252) {
    printf("YES");
  }else{
    printf("NO");
  }
  return 0;
}

Compiler output:
main.c:3:17: error: unknown type name 'b'
    3 | int main(int a, b, c, d) {
      |                 ^
main.c:3:20: error: unknown type name 'c'
    3 | int main(int a, b, c, d) {
      |                    ^
main.c:3:23: error: unknown type name 'd'
    3 | int main(int a, b, c, d) {
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> vec(4);
  for(int i=0;i<4;i++){
    cin>>vec.at(i);
  }
  vec.sort();
  int k =1000*vec.at(0)+vec.at(1)+10*vec.at(2)+100*vec.at(3);
  if(k==1974){
    cout<<"YES";
  }
  else{
    cout<<"NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'class std::vector<int>' has no member named 'sort'
    8 |   vec.sort();
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setprecision(15);
  set<int> st;
  rep(i,4){
    int x;cin >> x;
    st.insert(x);
  }
  YESNO(st.count(1) && st.count(9) && st.count(7) && st.count(4))
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:66: error: expected ';' before 'return'
   40 |   YESNO(st.count(1) && st.count(9) && st.count(7) && st.count(4))
      |                                                                  ^
      |                                                                  ;
   41 |   return 0;
      |   ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int a;
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> a;
    s.at(i) = '0' + a;
  }
  s.sort();
  if(s == "1479"){
    cout << "YES";
  }else{
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
   10 |   s.sort();
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int a;
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> a;
    s.at(i) = '0' + a;
  }
  s.sort();
  if(s == "1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
   10 |   s.sort();
      |     ^~~~
a.cc:14:17: error: expected ';' before '}' token
   14 |     cout << "NO"
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int a;
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> a;
    s.at(i) = '0' + a;
  }
  s.sort();
  if(s="1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
   10 |   s.sort();
      |     ^~~~
a.cc:11:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"1479"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(s="1479"){
      |      ~^~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:14:17: error: expected ';' before '}' token
   14 |     cout << "NO"
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int a;
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> a;
    s.at(i) = to_string(a);
  }
  s.sort();
  if(s="1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
    8 |     s.at(i) = to_string(a);
      |               ~~~~~~~~~^~~
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
a.cc:10:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
   10 |   s.sort();
      |     ^~~~
a.cc:11:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"1479"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(s="1479"){
      |      ~^~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:14:17: error: expected ';' before '}' token
   14 |     cout << "NO"
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> s.at(i);
  }
  s.sort();
  if(s="1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
    8 |   s.sort();
      |     ^~~~
a.cc:9:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"1479"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(s="1479"){
      |      ~^~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:12:17: error: expected ';' before '}' token
   12 |     cout << "NO"
      |                 ^
      |                 ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  string s = "";
  for(int i = 0;i < 4;i++){
    cin >> s.at(i);
  }
  s.sort();
  if(s="1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
    8 |   s.sort();
      |     ^~~~
a.cc:9:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"1479"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(s="1479"){
      |      ~^~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:12:17: error: expected ';' before '}' token
   12 |     cout << "NO"
      |                 ^
      |                 ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  string s;
  for(int i = 0;i < 4;i++){
    cin >> s.at(i);
  }
  s.sort();
  if(s="1479"){
    cout << "YES";
  }else{
    cout << "NO"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
    8 |   s.sort();
      |     ^~~~
a.cc:9:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"1479"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(s="1479"){
      |      ~^~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:12:17: error: expected ';' before '}' token
   12 |     cout << "NO"
      |                 ^
      |                 ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    for(int i=0;i<4;i++){
        int x;
        cin>>x;
        int a[114514];
        a[x]++;
    }
    if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'a' was not declared in this scope
   11 |     if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    for(int i=0;i<4;i++){
        int x;
        cin>>x;
      　int a[114514];
        a[x]++;
    }
    if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
    return 0;
}


Compiler output:
a.cc:8:7: error: extended character 　 is not valid in an identifier
    8 |       　int a[114514];
      |       ^
a.cc: In function 'int main()':
a.cc:8:7: error: '\U00003000int' was not declared in this scope
    8 |       　int a[114514];
      |       ^~~~~
a.cc:9:9: error: 'a' was not declared in this scope
    9 |         a[x]++;
      |         ^
a.cc:11:8: error: 'a' was not declared in this scope
   11 |     if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    for(int i=0;i<4;i++){
        int x;
        cin>>x;
        a[x]++;
    }
    if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |         a[x]++;
      |         ^
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    for(int i=0;i<4;i++){
        int x;
        cin>>x;
        a[x]++;
    }
    if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'a' was not declared in this scope
    8 |         a[x]++;
      |         ^
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a[1]==1&&a[9]==1&&a[7]==1&&a[4]==1){
      |        ^
Language: C++

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

int main()
{
    vector<int> A(4);
    cin >> A[0];
    cin >> A[1];
    cin >> A[2];
    cin >> A[3];
    sort(A.begin(), A.end());
    int temp = A[0] * 1000 + A[1] * 100 + A[2] * 10 + A[3];
    if (temp == 1974)
    {
        cout << "YES":
    }
    else
    {
        cout << "NO";
    }
}

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

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

int main() {
  vector<int> A(4);
  for(int i=0,i<4;i++){
    cin >>A.at(i);
  }
  sort(A.begin(),A.end());
  if(A.at(0)!=1){
    cout <<"NO" <<endl;
    return 0;
  }
  if(A.at(1)!=4){
    cout <<"NO" <<endl;
    return 0;
  }
  if(A.at(2)!=7){
    cout <<"NO" <<endl;
    return 0;
  }
  if(A.at(3)!=9){
    cout <<"NO" <<endl;
    return 0;
  }
  cout <<"YES" <<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before '<' token
    6 |   for(int i=0,i<4;i++){
      |                ^
      |                ;
a.cc:6:16: error: expected primary-expression before '<' token
Language: C++

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

int main() {
  vecrtor<int> v(4);
  rep(i,4) cin>>v[i];
  sort(v.begin(),v.end());
  if(v[0]==1 && v[1]==4 && v[2]==7 && v[3]==9) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'vecrtor' was not declared in this scope
   26 |   vecrtor<int> v(4);
      |   ^~~~~~~
a.cc:26:11: error: expected primary-expression before 'int'
   26 |   vecrtor<int> v(4);
      |           ^~~
a.cc:27:17: error: 'v' was not declared in this scope
   27 |   rep(i,4) cin>>v[i];
      |                 ^
a.cc:28:8: error: 'v' was not declared in this scope
   28 |   sort(v.begin(),v.end());
      |        ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;}
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}


int main()
{
  vector<char> cha(4) ;
  REP(i,4){
    cin >> cha.at(i) ;
  }
  sort(ALL(cha)) ;
  
  if(cha.substr(0,4)=="1479"){
    cout <<"YES"<<endl ;
  }
  else{
    cout <<"NO"<<endl ;
  }


  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'class std::vector<char>' has no member named 'substr'
   37 |   if(cha.substr(0,4)=="1479"){
      |          ^~~~~~
Language: C++

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

int main() {
  vector<int> vec(4);
	for (int i = 0; i < 4; i++) {
  	cin >> vec.at(i);
	}
  if(
  (count(vec.start(),vec.end(),1) == 1) &&
  (count(vec.start(),vec.end(),9) == 1) &&
  (count(vec.start(),vec.end(),7) == 1) &&
  (count(vec.start(),vec.end(),4) == 1)
    ){
    cout << 'YES' << endl;
  }else{
    cout << 'NO' << endl;
  }
}


Compiler output:
a.cc:15:13: warning: multi-character character constant [-Wmultichar]
   15 |     cout << 'YES' << endl;
      |             ^~~~~
a.cc:17:13: warning: multi-character character constant [-Wmultichar]
   17 |     cout << 'NO' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:14: error: 'class std::vector<int>' has no member named 'start'
   10 |   (count(vec.start(),vec.end(),1) == 1) &&
      |              ^~~~~
a.cc:11:14: error: 'class std::vector<int>' has no member named 'start'
   11 |   (count(vec.start(),vec.end(),9) == 1) &&
      |              ^~~~~
a.cc:12:14: error: 'class std::vector<int>' has no member named 'start'
   12 |   (count(vec.start(),vec.end(),7) == 1) &&
      |              ^~~~~
a.cc:13:14: error: 'class std::vector<int>' has no member named 'start'
   13 |   (count(vec.start(),vec.end(),4) == 1)
      |              ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
    int S[4];
    int count = 0;

    for (int i = 0; i < 4; i++){
        cin >> S[i];
    }
    for (int i = 0; i < 4; i++){
        for (int j = 0; j < 4; j++){
            for (int k = 0; k < 4; k++){
                for (int l = 0; l < 4; l++){
                    if (S[i] == 1 && S[j] == 9 && S[k] == 7 && S[l] == 4){
                        count++
                    }
                }
            }
        }
    }
    
    if (count > 0){
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:32: error: expected ';' before '}' token
   16 |                         count++
      |                                ^
      |                                ;
   17 |                     }
      |                     ~
Language: C++

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

int main() {
  vector<int> v(4);
  for(int i = 0; i < 4; i++)
    cin >> v.at(i);
  sort(v.begin(), v.end());
  if(v == {1, 4, 7, 9})
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '{' token
    9 |   if(v == {1, 4, 7, 9})
      |           ^
a.cc:9:10: error: expected ')' before '{' token
    9 |   if(v == {1, 4, 7, 9})
      |     ~    ^~
      |          )
Language: C++

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

int main(){
  vector<int> a(4);
  for(int i=0;i<4;i++) cin>>a[i];
  sort(a.begin(),a.end());
  bool x=s[0]==1&&s[1]==4&&s[2]==7&&s[3]==9;
  if(x) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 's' was not declared in this scope
    8 |   bool x=s[0]==1&&s[1]==4&&s[2]==7&&s[3]==9;
      |          ^
Language: C++

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

class Main{
  private:
  	
  public:
int n;
};
int main()
{
  //cout << n <<endl;
  vector<int> list(4);
  for(int i =0 ; i < 4; i++){
    cin >> list.at(i);
  }
  bool b;
  b = (count(list.begin(), list.end(), 1) == 1 && count(list.begin(), list.end(), 7) == 1
       && count(list.begin(), list.end(), 9) == 1 && count(list.begin(), list.end(), 2) == 1)
  string s;
  s = b? "YES" : "NO";
  cout << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:94: error: expected ';' before 'string'
   19 |        && count(list.begin(), list.end(), 9) == 1 && count(list.begin(), list.end(), 2) == 1)
      |                                                                                              ^
      |                                                                                              ;
   20 |   string s;
      |   ~~~~~~                                                                                      
a.cc:21:3: error: 's' was not declared in this scope
   21 |   s = b? "YES" : "NO";
      |   ^
Language: C++

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

class Main{
  private:
  	
  public:
int n;
};
int main()
{
  //cout << n <<endl;
  vector<int> list(4);
  for(int i =0 ; i < 4; i++){
    cin >> list.at(i);
  }
  bool b;
  b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
       && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
  string s;
  s = b? "YES" : "NO";
  cout << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   18 |   b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
      |                   ^~~~~
      |                   begin
a.cc:18:62: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   18 |   b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
      |                                                              ^~~~~
      |                                                              begin
a.cc:19:22: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   19 |        && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
      |                      ^~~~~
      |                      begin
a.cc:19:65: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   19 |        && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
      |                                                                 ^~~~~
      |                                                                 begin
a.cc:21:3: error: 's' was not declared in this scope
   21 |   s = b? "YES" : "NO";
      |   ^
Language: C++

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

class Main{
  private:
  	
  public:
int n;
};
int main()
{
  //cout << n <<endl;
  vector<int> list(4);
  for(int i =0 ; i < n; i++){
    cin >> list.at(i);
  }
  bool b;
  b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
       && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
  string s;
  s = b? "YES" : "NO";
  cout << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'n' was not declared in this scope
   14 |   for(int i =0 ; i < n; i++){
      |                      ^
a.cc:18:19: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   18 |   b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
      |                   ^~~~~
      |                   begin
a.cc:18:62: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   18 |   b = (count(list.bigin(), list.end(), 1) == 1 && count(list.bigin(), list.end(), 7) == 1
      |                                                              ^~~~~
      |                                                              begin
a.cc:19:22: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   19 |        && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
      |                      ^~~~~
      |                      begin
a.cc:19:65: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   19 |        && count(list.bigin(), list.end(), 9) == 1 && count(list.bigin(), list.end(), 2) == 1)
      |                                                                 ^~~~~
      |                                                                 begin
a.cc:21:3: error: 's' was not declared in this scope
   21 |   s = b? "YES" : "NO";
      |   ^
Language: Java

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

class Main{
  private:
  	
  public:
int n;
};
int main()
{
  int n;
  cin >> n;
  //cout << n <<endl;
  vector<int> list(n);
  for(int i =0 ; i < n; i++){
    cin >> list.at(i);
  }
  vector<string> str(n);
  for(int i = 0; i < n ; i++){
    stringstream ss;
    ss << bitset<100>(list.at(i));
    //cout << ss.str() << endl;
  	str.at(i) = ss.str() ;
  }
  vector<int> m(100);
  for(int j = 0; j < 100; j++){

    if(str.at(0).at(j) != str.at(1).at(j)){
      m.at(j) += 1;
    }
  }
  
  for(int i = 2; i < n ; i++){
    for(int j = 0; j < 100; j++){

      if(str.at(i).at(j) == '1'){
        m.at(j) += 1;
      }
    }
  }

  for(int i = 0; i < 100; i++){
    m.at(i) = m.at(i)%2;

    
  }
  string s;
  s = (accumulate(m.begin(), m.end(), 0) == 0)? "YES" : "NO";
  cout << s;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:5: error: illegal start of type
  private:
         ^
Main.java:7: error: illegal start of type
  public:
        ^
Main.java:13: error: not a statement
  cin >> n;
      ^
Main.java:15: error: not a statement
  vector<int> list(n);
                   ^
Main.java:17: error: not a statement
    cin >> list.at(i);
        ^
Main.java:19: error: not a statement
  vector<string> str(n);
                     ^
Main.java:22: error: not a statement
    ss << bitset<100>(list.at(i));
                    ^
Main.java:50: error: not a statement
  cout << s;
       ^
Main.java:10: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:15: error: ';' expected
  vector<int> list(n);
                  ^
Main.java:15: error: ';' expected
  vector<int> list(n);
                    ^
Main.java:19: error: ';' expected
  vector<string> str(n);
                    ^
Main.java:19: error: ';' expected
  vector<string> str(n);
                      ^
Main.java:26: error: ';' expected
  vector<int> m(100);
               ^
16 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
 int a,b,c,d; 
  cin >> a >> b >> c >> d;
 
  int cnt[10]={0};
  
  cnt[a]++;
  cnt[b]++;
  cnt[c]++;
  cnt[d]++;
  
  ii(cnt[1]==1&&cnt[9]==1&&cnt[7]==1&&cnt[4]==1) cout << "YES" << endl;
  else cout << "NO" << endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'ii' was not declared in this scope
   16 |   ii(cnt[1]==1&&cnt[9]==1&&cnt[7]==1&&cnt[4]==1) cout << "YES" << endl;
      |   ^~
a.cc:17:3: error: 'else' without a previous 'if'
   17 |   else cout << "NO" << endl;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(4);
  for(int i=0;i<4;i++)cin>>a.at(i);
  sort(a.begin(),a.end());
  if(a=={1,4,7,9})cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '{' token
    7 |   if(a=={1,4,7,9})cout<<"YES"<<endl;
      |         ^
a.cc:7:9: error: expected ')' before '{' token
    7 |   if(a=={1,4,7,9})cout<<"YES"<<endl;
      |     ~   ^
      |         )
Language: C++

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

int main(void)
{
  int a[4];
  for(int i=0;i<4;i++){
    cin>>a[i];
  }
  sort(a.begin(),a.end());
  if((a[0]*1000+a[1]*100+a[2]*10+a[3])==1479){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
}

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

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

int main() {
    set<int> s;
    int n;
    for (int i = 0; i < 4; i++) {
        cin >> n;
        s.insert(n);
    }
    if (s.size() != 4) {
        cout << "NO" << endl;
        return 0;
    }
    if (s[0] == 1 && s[1] == 9 && s[2] == 7 && s[3] == 4) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   15 |     if (s[0] == 1 && s[1] == 9 && s[2] == 7 && s[3] == 4) {
      |          ^
a.cc:15:23: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   15 |     if (s[0] == 1 && s[1] == 9 && s[2] == 7 && s[3] == 4) {
      |                       ^
a.cc:15:36: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   15 |     if (s[0] == 1 && s[1] == 9 && s[2] == 7 && s[3] == 4) {
      |                                    ^
a.cc:15:49: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   15 |     if (s[0] == 1 && s[1] == 9 && s[2] == 7 && s[3] == 4) {
      |                                                 ^
Language: C++

if __name__=="__main__":
    A = [int(i) for i in input().split(' ')]
    A = sorted(A)
    if A[0] == 1 and A[1] == 4 and A[2] == 7 and A[3] == 9:
        print('YES')
    else:
        print('NO')

Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('YES')
      |               ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('NO')
      |               ^~~~
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if __name__=="__main__":
      | ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int A[4];
  cin >> A[0] >> A[1] >> A[2] >> A[3];
  sort(A,A+4)
  if (A[0]==1 and A[0]==4 and A[0]==7 and A[0]==9){
    cout << "YES";
  }
  else{
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'if'
    7 |   sort(A,A+4)
      |              ^
      |              ;
    8 |   if (A[0]==1 and A[0]==4 and A[0]==7 and A[0]==9){
      |   ~~          
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
Language: C

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

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long 

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// combination(n,r)
int combination(int n, int r){
	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}

// gcd(a,b)
int gcd(int a,int b){
	return (b == 0) ? a : gcd(b, a % b);
}

// lcm(a.b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

// qsort(array, size, sizeof(int),comp);
int comp(const int *a,const int *b){
	return (*a - *b);
}

// append(array,*size,addNum)
void append(int *array,int *size,int num){
	realloc(array, sizeof(int) * (*size + 1));
	array[(*size)] = num;
	++(*size);
}

// pop(array,*size) & nongetpop(array,*size)
int pop(int *array,int *size){
	int temp = array[(*size - 1)];
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
	return temp;
}

void nongetpop(int *array,int *size){
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
}

int main(int argc, char const *argv[]){
	int N[10],temp;
	for (int i = 0; i < 10; ++i)	N[i] = 0;
	for (int i = 0; i < 4; ++i){
		scanf("%d",&temp);
		++N[temp];
	}
	if(a[1] == 1 && a[9] == 1 && a[7] == 1 && a[4] == 1)	puts("YES");
	else puts("NO");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:65:12: error: 'a' undeclared (first use in this function)
   65 |         if(a[1] == 1 && a[9] == 1 && a[7] == 1 && a[4] == 1)    puts("YES");
      |            ^
main.c:65:12: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'append':
main.c:40:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   40 |         realloc(array, sizeof(int) * (*size + 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'pop':
main.c:48:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'nongetpop':
main.c:54:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   54 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~