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

#include <stdio.h>

int cmp(void *a, void *b){
  return (int*)a - (int*)b;
}

int main(){
  int N, A[200001];
  scanf("%d", &N);
  for(int i=0; i<N; i++){
    scanf("%d", &A[i]);
  }
  
  qsort(A,N,sizeof(int),cmp);

Compiler output:
main.c: In function 'main':
main.c:14:3: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
   14 |   qsort(A,N,sizeof(int),cmp);
      |   ^~~~~
main.c:14:3: error: expected declaration or statement at end of input
Language: C++

#include<bits/stdc++.h>
using namspace std;
int main()
{
  int n;
  cin>>n;
  long long int ar[n];
  for(int i=0;i<n;i++)
     cin>>ar[i];
  sort(ar,ar+n);
  int flag=1;
  for(int i=1;i<n;i++)
  {
     if(ar[i]==ar[i-1])
     {
       flag=0;
       break;
     }
  }
  if(flag)
    cout<<"YES";
  else
    cout<<"NO";
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace 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>>n;
      |   ^~~
      |   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:10:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   10 |   sort(ar,ar+n);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |     cout<<"YES";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     cout<<"NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int n,a[200001];
bool b;

int main(){
	cin >> n;
    
    for (int i=1; i<=n; i++)
      cin >> a[i];
  
  	sort(a+1, a+n+1);
  
  	for (int i=1; i<n; i++)
      if (a[i]==a[i+1])
        b=1;
  	
  	if (b==1)
      	cout << "YES" << endl;
  	else
      	cout << "NO" << endl;

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

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  int* array = new int[N];
  bool result;
  for (int i = 0; i < N; i++) {
    cin >> array[i];
    for (int j = 0; j < i; j++) {
      result = array[j] != array[i];
    }
  }
  cout << "YES" ? result : "NO" << endl;
  delete[] array;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << "YES" ? result : "NO" << endl;
      |                            ~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
using namespace std;
int a[1000000008];
int main() {
    int n;
    cin >> n;
    for (int i=0; i<n; i++) {
        cin >> a[i];
    }
    sort(a, a+n);
    for (int i=1; i<n; i++) {
        if(a[i]==a[i-1]){
            cout << "NO";
            return 0;
        }
    }
    cout << "YES";
    return 0;
}


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

#include <iostream>
#include <cstdio>
using namespace std;
int a[1000000008];
int main() {
    int n;
    cin >> n;
    for (int i=0; i<n; i++) {
        cin >> a[i];
    }
    sort(a, a+n);
    for (int i=1; i<n; i++) {
        if(a[i]==a[i-1]){
            cout << "NO";
            return 0;
        }
    }
    cout << "YES";
    return 0;
}


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

#include <bits/stdc++.h>
//#pragma GCC diagnostic error "-Wconversion"
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(vec) vec.begin(), vec.end()
#define mp(a, b) make_pair(a, b)
typedef long long ll;
const ll INF = 1LL << 60;
const ll MOD = (1e9 + 7);
using namespace std;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
ll dp[100010];
ll gcd(ll x, ll y){
  return y == 0 ? x : gcd(y, x % y);
}
ll lcg(ll x, ll y){
  return x * y / gcd(x, y);
}
ll digits(ll x){
  ll length = 0;
  while (x > 0){
    x /= 10;
    length++;
  }
  return length;
  if (x == 0) return 0;
}
map<ll, ll> factor(ll n){
  map<ll, ll> ans;
  ll a = 2;
  while (n >= a * a){
    if (n % a == 0){
      ans[a]++;
      n /= a;
    }
    else a++;
  }
  ans[n]++;
  return ans;
}
template<class T> inline bool chmin(T& a, T b){
  if (a > b){
    a = b;
    return true;
  }
  return false;
}
template<class T> inline bool chmax(T& a, T b){
  if (a < b){
    a = b;
    return true;
  }
  return false;
}

int main(){
  cout << fixed << setprecision(15);

  int n; cin >> n;
  vector<int> nums(n)
  rep(i, n) cin >> nums[i];

  //ll ans = 0;
  string ans = "";

  map<int, int> numm;
  rep(i, n) numm[nums[i]]++;
  if (numm.size() != n) ans = "NO";
  else ans = "YES";
  
  cout << ans << endl;
  

  return 0;
}
//

Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
      |                   ^~~
a.cc:62:3: note: in expansion of macro 'rep'
   62 |   rep(i, n) cin >> nums[i];
      |   ^~~
a.cc:62:7: error: 'i' was not declared in this scope
   62 |   rep(i, n) cin >> nums[i];
      |       ^
a.cc:3:34: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
      |                                  ^
Language: C++

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

int main(){
  int n;cin>>n;
  map<int,int>a;
  for(int i=0,tmp;i<n;i++){
    cin>>tmp;a[tmp]++;
    if(a[tmp]>1){cout<<"NO"endl;return 0;}
  }
  cout<<"YES"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
   10 |     if(a[tmp]>1){cout<<"NO"endl;return 0;}
      |                        ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,arr[200100];
  cin>>n;
  for(int i=0;i<n;i++)
    cin>>arr[i];
  sort(arr,arr+n);
  for(int i=0;i<n-1;i++){
    if(arr[i]==arr[i+1]){
      cout<<"NO"<<endl;
      return 0;
    }
       cout<<"YES"<<endl;
       return 0;
       }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,arr[200100];
  cin>>n;
  for(int i=0;i<n;i++)
    cin>>arr[i];
  sort(arr,arr+n);
  for(int i=0;i<n-1;i++){
    if(arr[i]==arr[i+1]{
      cout<<"NO"<<endl;
      return 0;
    }
       cout<<"YES"<<endl;
       
       }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before '{' token
   11 |     if(arr[i]==arr[i+1]{
      |                        ^
      |                        ;
a.cc:15:25: error: expected ')' before ';' token
   15 |        cout<<"YES"<<endl;
      |                         ^
      |                         )
a.cc:11:7: note: to match this '('
   11 |     if(arr[i]==arr[i+1]{
      |       ^
a.cc:17:9: error: expected '}' at end of input
   17 |        }
      |         ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,arr[200100];
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>arr[i];
  }
  sort(arr,arr+n);
  for(int i=0;i<n-1;i++){
    
    if(arr[i]==arr[i+1]{
      cout<<"NO"<<endl;
      return 0;
    }
       }
       cout<<"YES"<<endl;
       return 0;
       }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ')' before '{' token
   13 |     if(arr[i]==arr[i+1]{
      |       ~                ^
      |                        )
a.cc:17:8: error: expected primary-expression before '}' token
   17 |        }
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,arr[200100];
  cin>>n;
  for(int i=0;i<n;i++)
    cin>>arr[i];
  sort(arr,arr+n);
  for(int i=0;i<n-1;i++){
    if(arr[i]==arr[i+1]{
      cout<<"NO"<<endl;
      return 0;
    }
       }
       cout<<"YES"<<endl;
       return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ')' before '{' token
   11 |     if(arr[i]==arr[i+1]{
      |       ~                ^
      |                        )
a.cc:15:8: error: expected primary-expression before '}' token
   15 |        }
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,arr[200100];
  cin>>n;
  for(int i=0;i<n;i++)
    cin>>arr[i];
  sort(arr,arr+n);
  for(int i=0;i<n-1;i++){
    if(arr[i]==arr[i+1]{
      cout<<"NO"<<endl;
      return 0;
    }
       cout<<"YES"<<endl;
       return 0;
       }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before '{' token
   11 |     if(arr[i]==arr[i+1]{
      |                        ^
      |                        ;
a.cc:15:25: error: expected ')' before ';' token
   15 |        cout<<"YES"<<endl;
      |                         ^
      |                         )
a.cc:11:7: note: to match this '('
   11 |     if(arr[i]==arr[i+1]{
      |       ^
a.cc:17:9: error: expected '}' at end of input
   17 |        }
      |         ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

using namespace std;

int main() {
  string s;
  int n;
  cin >> n;
  vector<int> a(n);
  for(int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  
  for(int i = 0; i < n-1; i++) {
    if(a[i] == a[i+1]) {
      cout << "NO" << endl;
      return;
    }
  }
  
  cout << "YES" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |       return;
      |       ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll cnt[200020]={0};
int main()
{
  int flag=1;
  ll n,arr[200020];
  cin>>n;
  for(int i=0;i<n;i++)
  {
    cin>>arr[i],cnt[i]++;if(cnt[i]>1) cout<<"NO",flag=0,break;
  }
  if(flag==1)
  {
    cout<<"YES"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:57: error: expected primary-expression before 'break'
   12 |     cin>>arr[i],cnt[i]++;if(cnt[i]>1) cout<<"NO",flag=0,break;
      |                                                         ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll cnt[200020]={0};
int main()
{
  int flag=1;
  ll n,arr[200020];
  cin>>n;
  for(int i=0;i<n;i++)
  {
    cin>>arr[i],cnt[i]++,if(cnt[i]>1) cout<<"NO",flag=0,break;
  }
  if(flag==1)
  {
    cout<<"YES"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected primary-expression before 'if'
   12 |     cin>>arr[i],cnt[i]++,if(cnt[i]>1) cout<<"NO",flag=0,break;
      |                          ^~
Language: C

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

int main(){
    int n;
    cin >> n;
    int A[n];
    for (int i = 0; i < n; i++){
        cin >> A[i];
    }
    sort(A, A+n);

    for (int i = 0; i < n; i++){
        if(A[i] == A[i+1]){
            cout << "NO" << endl;
            return 0;
        }   
    }
    cout << "YES" << endl;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  set<int> s;
  cin>>n;
  while(n--)
  { 
    int a; cin>>a;
    s.insert(a);
  }
  p=s.size();
  if(p==n) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'p' was not declared in this scope
   12 |   p=s.size();
      |   ^
Language: C++

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

typedef long int ll;

int main(){
  int n;
  cin >> n;
  ll arr[n];
  for(int i = 0; i < n; i++){
    cin >> arr[i];
  sort(arr, arr+n);
    int t = 0;
    for(int i = 0; i < (n-1); i++){
      if(arr[i] == arr[i+1])	t = 1;break;
    }
    if(t)	cout << "NO";
    else 	cout << "YES";
  
  return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |    int a[n];
      |          ^
      |          yn
a.cc:10:8: error: 'a' was not declared in this scope
   10 |   cin>>a[i];
      |        ^
a.cc:12:8: error: 'a' was not declared in this scope
   12 |   sort(a,a+n);
      |        ^
Language: C++

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

typedef double du ;
typedef string st ;
typedef long long ll ;
typedef long double ld ;
typedef long long int lli ;

#define vi vector <lli>
#define loop(num) for (lli i = 0 ; i < num ; i ++ )
#define loopcin(num , ar ) for (lli i = 0 ; i < num ; i ++ ) {cin >> ar [i] ;}
#define loopcout(num , ar) for (lli i = 0 ; i < num ; i ++ ) {cout << ar [i] << ' '; }

#define forr(num1 , num2) for (lli i = num1 ; i < num2 ; i ++ )
#define forrcin(num1 , num2 , ar ) for (lli i = num1 ; i < num2 ; i ++ ) {cin >> ar [i] ;}
#define forrcout(num1 , num2 , ar) for (lli i = num1 ; i < num2 ; i ++ ) {cout << ar [i] << ' '; }

#define D2forrcin(num1_1 , num1_2 , num2_1 , num2_2 , A ) for (lli i = num1_1 ; i < num1_2 ; i ++){ for (lli j = num2_1 ; j < num2_2 ; j++){cin >> A[i][j] ;}}
#define D2forrcout(num1_1 , num1_2 , num2_1 , num2_2 , A ) for (lli i = num1_1 ; i < num1_2 ; i ++){ for (lli j = num2_1 ; j < num2_2 ; j++){cout << A[i][j] << ' ' ;}cout << endl ;}

#define YES cout << "YES" << endl
#define Yes cout << "Yes" << endl
#define NO cout << "NO" << endl
#define No cout << "No" << endl

#define F first
#define S second

#define fastio ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);

int main ()
{
    fastio
    lli n , c ;
    bool t = true ;
    cin >> n ;
    lli a[n] ;
    loopcin(n , a) ;
    sort(a , a + n) ;
    c = a[0] ;
    forr(1 , n) ;
        if (c >= a[i])
            t = false ;
    (t ? YES : NO) ;
    
    return 0 ;
}

/*___________________________________________________________________functions___________________________________________________________________________*/



Compiler output:
a.cc: In function 'int main()':
a.cc:44:20: error: 'i' was not declared in this scope
   44 |         if (c >= a[i])
      |                    ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#define rep(i,n) for (int i = 0; i < (n) ; ++i)
using namespace std;

int main(){
  int n;
  cin >> n;
  vector<int> a(n);
  rep(i,n) cin >> a[i];

  sort(a.begin(),a.end());
  a.erase(unique(a.begin(),a.end()),a.end());

  if(a.size() == n) cout << "YES"<<endl;
  else cout << "NO" << endl;;
  return 0;
}


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

#include <iostream>
#include <string>
#include <vector>
#define rep(i,n) for (int i = 0; i < (n) ; ++i);
using namespace std;

int main(){
  int n;
  cin >> n;
  vector<int> a(n);
  //rep(i,n) cin >> a[i];
  for(int i = 0;i<n;++i)cin >> a[i];

  sort(a.begin(),a.end());
  a.erase(unique(a.begin(),a.end()),a.end());

  if(a.size() == n) cout << "YES"<<endl;
  else cout << "NO" << endl;;
  return 0;
}


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

#include<iostream>
#include<vector>
int main () {
  int N;
  cin >> N;
  vector<bool>key(1e9 + 3, false);
  for (int i = 0; i < N; i ++) {
    int a;
    cin >> a;
    if (key[a]) {
      cout << "NO" << endl;
      return 0;
    }
    else key[a] = true;
  }
  cout << "YES" << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N;
      |   ^~~
      |   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:3: error: 'vector' was not declared in this scope
    6 |   vector<bool>key(1e9 + 3, false);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'bool'
    6 |   vector<bool>key(1e9 + 3, false);
      |          ^~~~
a.cc:10:9: error: 'key' was not declared in this scope; did you mean 'key_t'?
   10 |     if (key[a]) {
      |         ^~~
      |         key_t
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       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:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       cout << "NO" << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   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:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << "YES" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(void){
  int N;
  int temp;
  int f,r;
  std::vector <int> v;
  std::cin >> N;
  for(int i=0;i<N;i++){
    std::cin >> temp;
    v.push_back(temp);
  }
  // Sort
  std::sort(v.begin(),v.end());
  for(i=0;i<N-1;i++){
    f=v[i];
    r=v[i+1];
    if(f==r){
      std::cout << "NO" << std::endl;
      return 0;
    }
  }
  std::cout << "YES" << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i=0;i<N-1;i++){
      |       ^
Language: C++

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

int main(void){
  int N;
  int temp;
  int f,r;
  std::vector <int> v;
  std::cin >> N;
  for(int i=0;i<N;i++){
    std::cin >> temp;
    v.push_back(temp);
  }
  // Sort
  std::sort(v.begin(),v.end());
  for(i=0;i<N-1;i++){
    f=v[i];
    r=v[i+1];
    if(f==r){
      std::cout << "YES" << std::endl;
      return 0;
    }
  }
  std::cout << "NO" << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i=0;i<N-1;i++){
      |       ^
Language: C++

#include<iostream>
#include<vector>

int main() {
    long n;
    bool flag = false;
    std::cin >> n;

    std::vector<long> data(n);
    for (int i = 0; i < n; i++)
    {
        std::cin >> data[i];
    }

    std::sort(data.begin(), data.end());
    for (int i = 0; i < n - 1; i++) {
        flag = std::binary_search(data.begin(), data.end(), data[i]);
        if (flag) break;
    }

    if(!flag) std::cout << "YES" << std::endl;
    else std::cout << "NO" << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   15 |     std::sort(data.begin(), data.end());
      |          ^~~~
      |          qsort
a.cc:17:21: error: 'binary_search' is not a member of 'std'
   17 |         flag = std::binary_search(data.begin(), data.end(), data[i]);
      |                     ^~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int t,n;
map<int,int> mm;
int main(){
	cin>>n;
	int a, no = 0;
	for(int i = 0;i<n;i++) cin>>a, mm[a]++;
	for(auto e : mm){
		if(e.second > 1) {
			no = 1;
			cout<<"NO\n";break;
		}
	}
	if(!no) cout<<"YES\n";
	return 0;
}


Compiler output:
a.cc:4:1: error: 'map' does not name a type
    4 | map<int,int> mm;
      | ^~~
a.cc: In function 'int main()':
a.cc:8:40: error: 'mm' was not declared in this scope; did you mean 'tm'?
    8 |         for(int i = 0;i<n;i++) cin>>a, mm[a]++;
      |                                        ^~
      |                                        tm
a.cc:9:22: error: 'mm' was not declared in this scope; did you mean 'tm'?
    9 |         for(auto e : mm){
      |                      ^~
      |                      tm
Language: Java

class Main{
  
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    
    int length = scan.nextInt();
    int[] arr = new int[length-1];
    while(length>0){
      arr[length] = scan.nextInt();
      length--;
    }
    
    
  }
  
  
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner scan = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    Scanner scan = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

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

sort(_num1, _num2)
const void* _num1;
const void* _num2;
{
	long long num1 = *(const long long*)_num1;
	long long num2 = *(const long long*)_num2;
	if (num1 < num2)
		return -1;
	if (num1 > num2)
		return 1;
	if (num1 == num2)
		return 0;
}

main(void) {
	unsigned N = 0;
	scanf_s("%u", &N);
	long long* llarray = malloc(sizeof(long long) * N);
	for (int i = 0; i < N; i++) {
		scanf_s("%lld", &llarray[i]);
	}
	qsort((void*)llarray, N, sizeof(long long), sort);
	for (int i = 0; i < N; i++) {
		if (llarray[i] == llarray[i + 1]) {
			printf("NO");
			return 0;
		}
	}
	printf("YES");
	return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | sort(_num1, _num2)
      | ^~~~
main.c:18:1: error: return type defaults to 'int' [-Wimplicit-int]
   18 | main(void) {
      | ^~~~
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   20 |         scanf_s("%u", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>
#include <malloc.h>

int main()
{
	int* A = 0;
	int N = 0;
	int c = 0;
	scanf_s("%d",&N);
	A = (int*)malloc(sizeof(int) * N);
for (int i=0 ; i < N; i++)
	{
		scanf_s("%d", &A[i]);
	}
for (int j=0 ; j < N-1; j++)
{
		if (A[j] == A[j+1]) 
		{ 
			c++; break; 
		}
}

if(c>0)printf("NO");
else printf("YES");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d",&N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>
#include<stdlib.h>
 
int main()
{
	int* A = 0;
	int N = 0;
	int c = 0;
	scanf_s("%d",&N);
	A = (int*)malloc(sizeof(int) * N);
for (int i=0 ; i < N; i++)
	{
		scanf_s("%d", &A[i]);
	}
for (int j=0 ; j < N-1; j++)
{
	for (int k = j+1; k < N; k++)
	{
		if (A[j] == A[k]) c++;
	}
}
 
if(c>0)printf("YES");
else printf("NO");
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d",&N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>
#include <malloc.h>

int main()
{
	int* A = 0;
	int N = 0;
	int c = 0;
	scanf_s("%d",&N);
	A = (int*)malloc(sizeof(int) * N);
for (int i=0 ; i < N; i++)
	{
		scanf_s("%d", &A[i]);
	}
for (int j=0 ; j < N-1; j++)
{
	for (int k = j+1; k < N; k++)
	{
		if (A[j] == A[k]) c++;
	}
}

if(c>0)printf("YES");
else printf("NO");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d",&N);
      |         ^~~~~~~
      |         scanf
Language: C++

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
#define ff first
#define ss second
using namespace std;
using ll = long long; using ld = long double;
using pii = pair<int,int>; using pil = pair<int,ll>;
using pli = pair<ll,int>; using pll = pair<ll,ll>;
const int MOD = 1000000007, MOD2 = 998244353;
const int INF = 0x3f3f3f3f, INF2 = 0x3f3f3f37;
const ll LINF = 0x3f3f3f3f3f3f3f3f, LINF2 = 0x3f3f3f3f3f3f3f3d;



int main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    int n; cin >> n;
    map<int, int> m;
    for (int i = 0; i < n; ++i) {
        cin >> a[i];
        if (m[a[i]]) return cout << "NO\n", 0;
        ++m[a[i]];
    }
    cout << "YES\n";
}

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

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

int main(void){
  int N,i=0,a=0;
  int A[256];
  
  scanf("%d",&N);
  for(i=0;i<N;i++){
   scanf("%d ",&A[i]); 
  }
  
  for(i=0;i<N-2;i++){
    for(a=1;a<=N-1;a++){
    if(A[i]==A[i+a]){
      printf("NO");
      break;
    }else{
      printf("YES");
      break;
    
    }
  }
  
  return 0;
}

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

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

int main() {
  int n;
  vector<int> num(n);
  
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> num.at(i); 
  }
  
  int r=0;
  for(int i=0;i<n;i++){
    for(int j=1;j<n-i+1;j++){
      if(num.at(i)==num.at(i+J)){
        r=1;
        break;
      }
    }
  }
      
  if(r=1){
    cout << "NO" << endl;
  }
  else{
    cout << "YES" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: 'J' was not declared in this scope
   16 |       if(num.at(i)==num.at(i+J)){
      |                              ^
Language: C

#include<stdio.h>
long long n,a[1000000000]={0},p,i,j;
int main(void)
{
	int f=0;
	scanf("%lld",&n);
	for(i=0;i<n;i++){
		scanf("%lld",&p);
		a[p]++;
		if(a[p]>1){
			f=1;
			break;
		}
	}
	if(f==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
	return 0;
}

Compiler output:
/tmp/ccJux4tZ.o: in function `main':
main.c:(.text+0x30): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0x40): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0x5e): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0x8f): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0xb8): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0xc3): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccJux4tZ.o
main.c:(.text+0xca): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccJux4tZ.o
collect2: error: ld returned 1 exit status
Language: C

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

long long n,a[],p,i,j;
int main(void)
{
	int f=0;
	
	memset(a,0,sizeof(a));
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&p);
		a[p]++;
		if(a[p]>1){
			f=1;
			break;
		}
	}
	if(f==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:26: error: invalid application of 'sizeof' to incomplete type 'long long int[]'
    9 |         memset(a,0,sizeof(a));
      |                          ^
main.c: At top level:
main.c:4:13: warning: array 'a' assumed to have one element
    4 | long long n,a[],p,i,j;
      |             ^
Language: C

#include<stdio.h>
long long n,a[1000000001]={0},p,i,j;
int main(void)
{
	int f=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&p);
		a[p]++;
		if(a[p]>1){
			f=1;
		}
	}
	if(f==1){
		printf("NO\n");
	}
	else{
		printf("YES\n");
	}
	return 0;
}

Compiler output:
/tmp/ccESrO5k.o: in function `main':
main.c:(.text+0x30): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0x40): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0x5e): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0x8f): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0xb6): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0xc1): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccESrO5k.o
main.c:(.text+0xc8): relocation truncated to fit: R_X86_64_PC32 against symbol `i' defined in .bss section in /tmp/ccESrO5k.o
collect2: error: ld returned 1 exit status
Language: C++

//ABC154C.cpp

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

int main(){
	int N;
	vector<int> A;
	cin>>N;
	for(int i=0;i<N;i++){
		int a;
		cin>>a;
		A.push_back(a);
	}
	sort(A.begin(),A.end());
	bool judge=false;
	for(int i=1;i<N;i++){
		if(A[i-1]==A[i]){
			judge=true;
			break;
		}
	}
	if(judge){
		cout<<"NO"<<endl;
	}else{
		cout<<"YES"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'vector' was not declared in this scope
   10 |         vector<int> A;
      |         ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | #include <string>
a.cc:10:16: error: expected primary-expression before 'int'
   10 |         vector<int> A;
      |                ^~~
a.cc:15:17: error: 'A' was not declared in this scope
   15 |                 A.push_back(a);
      |                 ^
a.cc:17:14: error: 'A' was not declared in this scope
   17 |         sort(A.begin(),A.end());
      |              ^
Language: C++

# -*- coding: utf-8 -*-
"""
Created on Wed Feb 12 16:01:34 2020

@author: matsui
"""

N=int(input())
A=input().split()

ans='YES'
for i in range(1,N):
    if A[i] in A[:i]:
        ans='NO'
        break
    
print(ans)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: warning: missing terminating " character
    2 | """
      |   ^
a.cc:2:3: error: missing terminating " character
a.cc:5:1: error: stray '@' in program
    5 | @author: matsui
      | ^
a.cc:6:3: warning: missing terminating " character
    6 | """
      |   ^
a.cc:6:3: error: missing terminating " character
a.cc:11:5: warning: multi-character character constant [-Wmultichar]
   11 | ans='YES'
      |     ^~~~~
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |         ans='NO'
      |             ^~~~
a.cc:2:1: error: expected unqualified-id before string constant
    2 | """
      | ^~
Language: C++

#include <iostream>
#include <cstring>

//My Answer；
using namespace std;

//Problem C
int main()
{
    map<int, int> mp;
    int n, a;
    scanf("%d", &n);
    
    for (register int i = 1; i <= n; i++)
    {
        scanf("%d", &a);
        if (mp[a] == 0)
        {
            mp[a] = 1;
        }
        else
        {
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'map' was not declared in this scope
   10 |     map<int, int> mp;
      |     ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <cstring>
  +++ |+#include <map>
    3 | 
a.cc:10:9: error: expected primary-expression before 'int'
   10 |     map<int, int> mp;
      |         ^~~
a.cc:14:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   14 |     for (register int i = 1; i <= n; i++)
      |                       ^
a.cc:17:13: error: 'mp' was not declared in this scope
   17 |         if (mp[a] == 0)
      |             ^~
Language: C++

#include <iostream>
#include <cstring>

using namespace std;

//Problem C
int main()
{
    map<int, int> mp;
    int n, a;
    scanf("%d", &n);
    
    for (register int i = 1; i <= n; i++)
    {
        scanf("%d", &a);
        if (mp[a] == 0)
        {
            mp[a] = 1;
        }
        else
        {
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'map' was not declared in this scope
    9 |     map<int, int> mp;
      |     ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <cstring>
  +++ |+#include <map>
    3 | 
a.cc:9:9: error: expected primary-expression before 'int'
    9 |     map<int, int> mp;
      |         ^~~
a.cc:13:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   13 |     for (register int i = 1; i <= n; i++)
      |                       ^
a.cc:16:13: error: 'mp' was not declared in this scope
   16 |         if (mp[a] == 0)
      |             ^~
Language: C++

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

int main(){
  map<int,int> m;
  int n;cin >> n;
  int a[n];rep(i,n)cin >> a[i]:
  rep(i,n){
    if(m[a[i]] == 100){cout << "NO" << endl;return 0;}
    else m[a[i]] = 100;
  }
  cout << "YES" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ':' token
    8 |   int a[n];rep(i,n)cin >> a[i]:
      |                               ^
      |                               ;
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,n){
      |       ^
a.cc:2:30: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i=0;i<(n);++i)
      |                              ^
Language: C++

//
//  main.cpp
//  ABC154C
#include <iostream>
#include<vector>
using namespace std;
int main(int argc, const char * argv[]) {
    int N;
    cin>>N;
    vector<int>A(N);
    for (int i=0; i<N; i++) {
        cin>>A.at(i);
    }
    sort(A.begin(),A.end());
    int tmp=0;
    for (int i=0; i<N-1; i++) {
        tmp=A.at(i);
        if (tmp==A.at(i+1)) {
            cout<<"NO"<<endl;
            return 0;
        }
    }
    cout<<"YES"<<endl;
    return 0;
}


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

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

void print(array, size)
long long* array;
{
	for (int i = 0; i < size; i++) {
		printf("%lld ", array[i]);
	}
	printf("\n");
}

void sort(array, size)
long long* array;
{
	for (int i = 0; i < size; i++) {
		for (int j = 0; j < size-i-1; j++) {
			if (array[j] > array[j + 1]) {
				int temp = array[j];
				array[j] = array[j + 1];
				array[j + 1] = temp;
			}
			print(array, size);
		}
	}
}

main(void) {
	unsigned N = 0;
	scanf_s("%u", &N);
	long long* llarray = malloc(sizeof(long long) * N);
	for (int i = 0; i < N; i++) {
		scanf_s("%lld", &llarray[i]);
	}
	sort(llarray, N);
	for (int i = 0; i < N; i++) {
		if (llarray[i] == llarray[i + 1]) {
			printf_s("No");
			return 0;
		}
	}
	printf_s("Yes");
	return 0;
}

Compiler output:
main.c: In function 'print':
main.c:4:6: error: type of 'size' defaults to 'int' [-Wimplicit-int]
    4 | void print(array, size)
      |      ^~~~~
main.c: In function 'sort':
main.c:13:6: error: type of 'size' defaults to 'int' [-Wimplicit-int]
   13 | void sort(array, size)
      |      ^~~~
main.c: At top level:
main.c:28:1: error: return type defaults to 'int' [-Wimplicit-int]
   28 | main(void) {
      | ^~~~
main.c: In function 'main':
main.c:30:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   30 |         scanf_s("%u", &N);
      |         ^~~~~~~
      |         scanf
main.c:38:25: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   38 |                         printf_s("No");
      |                         ^~~~~~~~
      |                         printf
Language: C++

#include<iostream>
#include<set>
using namespace std;
int main(){
  int n;
  set<int>s;
  cin>>n;
  for(int i=0;i<n;i++){
    int te;
    cin>>te;
    s.insert(te);
  }
  int len = s.size();
  if(l==n)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'l' was not declared in this scope
   14 |   if(l==n)
      |      ^
Language: C++

#include<iostrem>
#include<set>
using namespace std;
int main(){
  int n;
  set<int>s;
  cin>>n;
  for(int i=0;i<n;i++){
    int te;
    cin>>te;
    s.insert(te);
  }
  int len = s.size();
  if(l==n)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}

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

#include<stdio.h>


int main(){

int A[200000],N,i=0,i2=0;

scanf("%d", &N);
for(i=0;i<N;i++)scanf("%d",A+i);
/**バブルソートで昇順にし、同数があればNO表示で終了*/
for(i=0;i<N-1;i++){
	for(i2=N-1;i2>i;i2--){
		if(A[i2]<A[i2-1]){
			t=A[i2]; A[i2]=A[i2-1]; A[i2-1]=t;
		}else if(A[i2]==A[i2-1]){
			printf("NO\n"); return 0;
		}
	}
}
	printf("YES\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:25: error: 't' undeclared (first use in this function)
   14 |                         t=A[i2]; A[i2]=A[i2-1]; A[i2-1]=t;
      |                         ^
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

/*package whatever //do not write package name here */

// Working program with FastReader 
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.io.*;
public class Main 
{ 
	static class FastReader 
	{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	} 

	public static void main(String[] args) 
	{ 
		FastReader ob=new FastReader(); 
		int n = ob.nextInt();
		HashMap<Long,Long> map = new HashMap<Long,Long>();
		boolean flag=true;
		for (int i=0;i<n ;i++) {
		    long k = ob.nextLong();
		    if(map.containsKey(k)){
		        flag=false;
		    }
		}
		if(flag){
		    System.out.println("YES");
		}
		else{
		    System.out.println("NO");
		}
	
	
	} 
} 


Compiler output:
Main.java:9: error: package java.util.io does not exist
import java.util.io.*;
^
Main.java:73: error: cannot find symbol
		HashMap<Long,Long> map = new HashMap<Long,Long>();
		^
  symbol:   class HashMap
  location: class Main
Main.java:73: error: cannot find symbol
		HashMap<Long,Long> map = new HashMap<Long,Long>();
		                             ^
  symbol:   class HashMap
  location: class Main
3 errors
Language: C++

#include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, a, b) for(int i = a; i < b; i++)
#define rep(i, n) REP(i, 0, n)



int main()
{
	int N, input;
	vector<int> A;
	scanf("%d", &N);

	rep(i, N) {
		scanf("%d", &input);
		A.push_back(input);
	}

	sort(A.begin(), A.end());

	bool isDistinct = true;
	REP(i, 1, N) {
		if (A[i] == A[i - 1]) {
			isDistinct = false;
			break;
		}
	}

	printf("%s\n", isDistinct ? "YES" : "NO");
	return 0;	
}

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

#include <algorithm>
#include <vector>
#include <queue>
#include <string>
using namespace std;

int main(void) {
	int N;
	int A[200000];
	cin >> N;
	for (int i = 0; i < N; i++) {
		cin >> A[i];
	}
	sort(A,A+N-1);
	for (int i = 1; i < N; i++) {
		if (A[i] == A[i - 1]) {
			cout << "NO";
			break;
		}
		if (i == N - 1) cout << "YES";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> N;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <string>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << "NO";
      |                         ^~~~
a.cc:17:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:33: error: 'cout' was not declared in this scope
   20 |                 if (i == N - 1) cout << "YES";
      |                                 ^~~~
a.cc:20:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <vector>
#include <queue>
#include <string>
using namespace std;

int main(void) {
	int N;
	int A[200000];
	cin >> N;
	for (int i = 0; i < N; i++) {
		cin >> A[i];
	}
	sort(A,A+N);
	for (int i = 1; i < N; i++) {
		if (A[i] == A[i - 1]) {
			cout << "NO";
			break;
		}
		if (i == N - 1) cout << "YES";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <string>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:13:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |         sort(A,A+N);
      |         ^~~~
      |         short
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |                         cout << "NO";
      |                         ^~~~
a.cc:16:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:33: error: 'cout' was not declared in this scope
   19 |                 if (i == N - 1) cout << "YES";
      |                                 ^~~~
a.cc:19:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <stdio.h>

int main()
{
    int index, pivot, comparison;
    /*データ入力部分.開始*/
    long n;
    scanf("%ld",&n);
    long a[n];
    for(index=0; index<n; index++)   scanf("%ld",&a[index]);
    /*データ入力部分.終了*/
    
    for(pivot=0; pivot<n; puvot++)
    {
        if(pivot == n-1)  printf("YES \n");
        for(comparison = pivot+1; comparison<n; comparison++)
        {
            if(a[pivot] == a[comparison]) /*比較結果が同じだった場合*/   printf("NO \n");
        }
    }
    return 0;
}

/*
case1 -> 0m13.657s
*/

Compiler output:
main.c: In function 'main':
main.c:13:27: error: 'puvot' undeclared (first use in this function); did you mean 'pivot'?
   13 |     for(pivot=0; pivot<n; puvot++)
      |                           ^~~~~
      |                           pivot
main.c:13:27: note: each undeclared identifier is reported only once for each function it appears in