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

#include<bits/stdc++.h>
using namespace std;
int main(){
long N;
  cin>>N;
  set<ll> d;
  vector<ll> a(N);
  int i;
  for(i=0;i<N;i++){
  cin>>a.at(i);
    d.insert(a.at(i));
  }
  if(N==d.size()){
  cout<<"YES"<<endl;
  }
  else{
  cout<<"NO"<<endl;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'll' was not declared in this scope
    6 |   set<ll> d;
      |       ^~
a.cc:6:9: error: template argument 1 is invalid
    6 |   set<ll> d;
      |         ^
a.cc:6:9: error: template argument 2 is invalid
a.cc:6:9: error: template argument 3 is invalid
a.cc:7:12: error: template argument 2 is invalid
    7 |   vector<ll> a(N);
      |            ^
a.cc:10:10: error: request for member 'at' in 'a', which is of non-class type 'int'
   10 |   cin>>a.at(i);
      |          ^~
a.cc:11:7: error: request for member 'insert' in 'd', which is of non-class type 'int'
   11 |     d.insert(a.at(i));
      |       ^~~~~~
a.cc:11:16: error: request for member 'at' in 'a', which is of non-class type 'int'
   11 |     d.insert(a.at(i));
      |                ^~
a.cc:13:11: error: request for member 'size' in 'd', which is of non-class type 'int'
   13 |   if(N==d.size()){
      |           ^~~~
Language: C++

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

int main(){
  long long N;
int i,j;
cin>>N;
vector<int> d(N);
for(i=0;i<N;i++){
  cin>>d.at(i);
}
for(i=0;i<N;i++){
  for(j=0;j<N;j++){

  if(d.at(i)==d.at(j)&&i!=j){
    cout<<"NO"<<endl;
  
  }
  if(s.at(i)==d.at(j)&&i!=j){
    cout<<"YES"<<endl;
   
  }
   
}
}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 's' was not declared in this scope
   19 |   if(s.at(i)==d.at(j)&&i!=j){
      |      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    int n;
    cin >> n;
    vector<ll> a(n);
    rep(i,n) cin >> a.at(i);
    sort(a.begin(),a.end());
    bool flag=true;
    for(int i=0;i<n-1;i++){
        for(int j=i+1;j<n;j++){
            if(a.at(j)%a.at(i)==0){
                falg=false;
                break;
            }
        }
    }
    if(flag) cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'falg' was not declared in this scope; did you mean 'flag'?
   18 |                 falg=false;
      |                 ^~~~
      |                 flag
Language: C

#include<stdio.h>
#include <stdlib.h>
int asc(const void *a, const void *b) {
  return *(int *)a - *(int *)b;
int main(){
    int n;
    scanf("%d", &n);
    int i,j,tmp;
    int a[n];
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    qsort(a,n,sizeof(a[0]),asc);
    /*for(i=0;i<n;i++){
        for(j=i+1;j<n;j++){
            if(a[i]>a[j]){
                tmp=a[i];
                a[i]=a[j];
                a[j]=tmp;
            }
        }
    }*/
    for(i=0;i<n-1;i++){
        if(a[i]==a[i+1]){
            printf("NO\n");
            return 0;
        }
    }
    printf("YES\n");
    return 0;
}

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

#include<stdio.h>
#include <stdlib.h>
int asc(const void *a, const void *b) {
  return *(int *)a - *(int *)b;
int main(){
    int n;
    scanf("%d", &n);
    int i,j,tmp;
    int a[n];
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    qsort(a,n,sizeof(int),asc);
    /*for(i=0;i<n;i++){
        for(j=i+1;j<n;j++){
            if(a[i]>a[j]){
                tmp=a[i];
                a[i]=a[j];
                a[j]=tmp;
            }
        }
    }*/
    for(i=0;i<n-1;i++){
        if(a[i]==a[i+1]){
            printf("NO\n");
            return 0;
        }
    }
    printf("YES\n");
    return 0;
}

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

n=int(input())
li = list(map(int, input().split()))

def dup(seq):
    return len(seq) != len(set(seq))

if(dup(li)): 
    print("No")
else:
     print("Yes")




Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

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


int main () {
    int n;
    std::cin >> n;

    std::vector<int> a(n);
    for (int i = 0; i < n; i++) {
        std::cin >> a[i];
    }
        std::sort(a.begin(), a.end());
    bool f = true;
    for (int i = 0; i < n - 1; i++)
    {
        if(a[i] == a[i - 1]) {
            f = false;
        }
    }

    std::string ans = f ? "YES" : "NO";

Compiler output:
a.cc: In function 'int main()':
a.cc:23:40: error: expected '}' at end of input
   23 |     std::string ans = f ? "YES" : "NO";
      |                                        ^
a.cc:6:13: note: to match this '{'
    6 | int main () {
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int n;
  cin >> n;
  
  vector<int> a(n);
  for(int i=0; i<n; i++){
  cin >> a[i];
  }
  
  set<int> s;
  
  for(int j=0; j<n; j++){
    s.insert(a[j]);
  }
  
  if(s.size==n){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: invalid use of member function 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   19 |   if(s.size==n){
      |      ~~^~~~
      |            ()
Language: C++

#include <iostream>
#include <queue>
#include <assert.h>   
#include <vector>
#include <algorithm>
#include <time.h>
#include <numeric>
#include <string>
#include <cstring>
#include <stack>
#include <unordered_set>
#include <unordered_map>
#include <set>
#include <map>
#include <numeric>
#include <deque>
#include <iomanip>
#include <cstdlib>
#include <climits>
#include <cmath>
#include <cstdio>
using namespace std;


//#define double long double
//#define int long long
//#define int unsigned long long

#define ll long long
#define ld long double 
#define pi pair<int, int> 
#define pl pair<ll,ll>  
#define pd pair<ld,ld> 
#define str string  
#define mp make_pair
#define vi vector<int> 
#define vl vector<ll> 
#define vd vector<ld> 
#define vs vector<str> 
#define vpi vector<pi> 
#define vpl vector<pl> 
#define vpd vector<pd> 
#define si set<int> 
#define FF(i,j,n) for(signed i=j;i<=n;i++)  
#define DD(i,j,n) for(signed i=j;i>=n;i--) 
#define F(i,j,n) for(signed i=j;i<n;i++)   
#define D(i,j,n) for(signed i=j;i>n;i--) 
#define mem(a,b) memset(a,b,sizeof(a))
#define ndl cout << endl
#define ull unsigned long long 

const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3fLL;


#define sz(x) (signed)x.size()
#define all(x) begin(x), end(x)
#define rall(x) (x).rbegin(), (x).rend() 
#define rsz resize
#define ins insert 
#define ft front() 
#define bk back() 
#define fi first
#define se second
#define pf push_front 
#define pb push_back
#define eb emplace_back 
#define lb lower_bound 
#define ub upper_bound 
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

//math


const int mod = 1e9 + 7;

ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
int pct(int x) { return __builtin_popcount(x); } 
int bit(int x) { return 31-__builtin_clz(x); } // floor(log2(x)) 
int cdiv(int a, int b) { return a/b+!(a<0||a%b == 0); } // division of a by b rounded up, assumes b > 0 


//DEBUG, compile with -DLOCAL
void DBG() { cerr << "]" << endl; }
template<class H, class... T> void DBG(H h, T... t) {
  cerr << to_string(h); if (sizeof...(t)) cerr << ", ";
  DBG(t...); }
#ifdef LOCAL 
#define dbg(...) cerr << "[" << #__VA_ARGS__ << "]: [", DBG(__VA_ARGS__)
#define HERE cout << "===GOTHERE===" << endl
#else
#define dbg(...) 42
#define HERE 42
#endif


 /* ============== END OF HEADER ============== */





const int maxn = 1e5*3+20;

int n,_,q,k;

void solve(){
	cin >> n;
	si st;
	FF(i,1,n){
		cin >> t;
		st.ins(t);
	}
	if(st.size() == n){
		cout << "YES" << endl;
	}else{
		cout << "NO" << endl;
	}
}

signed main(){
  //clock_t t1 = clock();  
	IOS
	solve();
  
  //cout << "THE ALGORITHM TOOK: " << (clock() - t1) * 1.0 / CLOCKS_PER_SEC * 1000 << "ms"<< endl;
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:112:24: error: 't' was not declared in this scope
  112 |                 cin >> t;
      |                        ^
Language: Java

import java.util.*;
import org.apache.commons.lang3.StringUtils;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int n=sc.nextInt(),f=0;
    long[] a=new long[n];
    
  	
    for(int i=0;i<n;i++){
      a[i]=sc.nextLong();
    }
  	Arrays.sort(a);
  	for(int i=0;i<n;i++){
  		if(a[i]==a[i+1]){
  			System.out.println("NO");
  			f++;
  			break;
  		}
  	}
  	if(f==0){
  		System.out.println("YES");
  	}
  }
}

Compiler output:
Main.java:2: error: package org.apache.commons.lang3 does not exist
import org.apache.commons.lang3.StringUtils;
                               ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
    int n;  cin>>n;
  
    map<ll,int>ma;
    bool ok = true;
    for(int i=0;i<n;i++)
    {
         ll a =0;
         cin>>a;
    
         if(!ma.coust(a))
         {
              ma[a] = 1;
         }
         else
         {
             ok = false;
             break;
         }
      
    }

       if(ok)
         cout<<"YES"<<endl;
       else
          cout<<"NO"<<endl;

    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'class std::map<long long int, int>' has no member named 'coust'; did you mean 'count'?
   15 |          if(!ma.coust(a))
      |                 ^~~~~
      |                 count
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
    int n;  cin>>n;
  
    map<ll,int>ma;
    bool ok = true;
    for(int i=0;i<n;i++)
    {
         ll a =0;
         cin>>a;
    
         if(!ma.const(a))
         {
              ma[a] = 1;
         }
         else
         {
             ok = false;
             break;
         }
      
    }

       if(ok)
         cout<<"YES"<<endl;
       else
          cout<<"NO"<<endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected unqualified-id before 'const'
   15 |          if(!ma.const(a))
      |                 ^~~~~
a.cc:15:17: error: expected ')' before 'const'
   15 |          if(!ma.const(a))
      |            ~    ^~~~~
      |                 )
Language: C++

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

int main(){
  bool ad=false;
  int n;
  cin>>n;
  vector<int>d(n);
  for(int i=0;i<n;i++){
    cin>>d[i];
  }
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      if(d[i]==d[j]){
        ad=true;
        break;
      }
    }
    if(ad) break;
  }
  if(ad) cout<<"NO"<<endl;
  else cout<<"YES"<<endl;
  


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

#include <bits/stdc++.h>
using namespace std;
#define MOD 10e9 + 7;
typedef long long ll;
vector<ll> a(1000000010);

int main() {
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		int value %= MOD;
		cin >> value;
		++a[value - 1];
	}

	int ans = *max_element(a.begin(), a.end()); 

	if (ans <= 1) {
		cout << "Yes" << "\n";
	}
	else {
		cout << "No" << "\n";
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected initializer before '%=' token
   11 |                 int value %= MOD;
      |                           ^~
a.cc:12:24: error: 'value' was not declared in this scope
   12 |                 cin >> value;
      |                        ^~~~~
Language: C++

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

int main() {
  ll n;cin >> n;
  ll a=0;
  bool ans=true
  rep(i, n-1) {
    ll b; cin >> b;
    if(a!=b) {
      ans=false;
      break;
    }
    a=b;
  }
  if(ans==true) cout << "YES";
  else cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:10:3: note: in expansion of macro 'rep'
   10 |   rep(i, n-1) {
      |   ^~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   rep(i, n-1) {
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
Language: C++

#include <bits/stdc++.h> 
string namespace std; 
int a[100000][100000];
int main() {
  int n,b,c;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> b;
    c%=100000;
    b/=100000;
    if(a[b][c]!=0){
      cout << "NO" << endl;
      exit(0);
    }
    a[b][c]=1;
  }
  cout << "YES" << endl;
}

Compiler output:
a.cc:2:1: error: 'string' does not name a type; did you mean 'stdin'?
    2 | string namespace std;
      | ^~~~~~
      | stdin
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:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |       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:12:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |       cout << "NO" << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   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:17:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   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<bits/stdc++.h>
using namespace std;
int main()
{
   /* int n,i,j,k;
    cin>>n;
    vector<int>a,b;
    for(i=0;i<n;i++)
        {
           cin>>k;
            if(i%2==0){a.push_back(k);}
            else b.push_back(k);
        }
    sort(a.begin(),a.end());
    sort(b.begin(),b.end());
        if(a[0]==b[0])
        {
            cout<<"NO\n";
            return 0;
        }

    for(i=0;i<a.size()-1;i++)
    {
        if(a[i]==a[i+1]){
            cout<<"NO\n";
            return 0;
        }
    }
    for(i=0;i<b.size()-1;i++)
    {
        if(b[i]==b[i+1]){
            cout<<"NO\n";
            return 0;
        }
    }

    cout<<"YES\n";
    return 0;*/
    set<int>s;
    int n,i,x;
    cin>>n;
    for(i=0;i<n;i++)
    {
        cin>>x;
        s.insert(x);
    }
    if(s.size()==n) cout<<"YES\n"
        else cout<<"NO\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:34: error: expected ';' before 'else'
   47 |     if(s.size()==n) cout<<"YES\n"
      |                                  ^
      |                                  ;
   48 |         else cout<<"NO\n";
      |         ~~~~
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.begin(), A.end());
  
  for (int i = 0; i < N-1; i++) {
    if (A[i] == A[i+1]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long n;
  cin>>n;
  vector<long long> a(n);
  for(int i=0;i<n;i++){
    cin>>a[i];
  }
  sort(a.begin(),s.end());
  int abs=0;
  for(int i=0;i<n-1;i++){
    if(a[i]==a[i+1]){
      abs++;
    }
  }
  if(abs=0){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 's' was not declared in this scope
   10 |   sort(a.begin(),s.end());
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
#define rrep(i,n) for(int i=1; i<=(n); ++i)
#define drep(i,n) for(int i=(n)-1; i>=0; --i)
#define srep(i,s,t) for (int i=s; i<t; ++i)
#define pb push_back
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
const int INF = 1001001001;
using P = pair<int,int>;

int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  rep(i,n) cin >> a[i];
  a[i].sort();
  bool found = false;
  for(int i=0; i<n; i++){
    if(a[i] != a[i+1]) found=true;
  }
  cout << (found ? "YES":"NO") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'i' was not declared in this scope
   22 |   a[i].sort();
      |     ^
Language: C++

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
typedef long long ll;
const int INF = 1001001001;

int main() {
    ll N, A;

    cin >> N;

    vector<int> A(N);
    map<int, int> memo;

    rep(i,N) {
        cin >> A;
        memo[A]++;
    }

    bool ok = true;

    for(auto i=memo.begin(); i!=memo.end(); i++) {
        if(i->second > 1) {
            ok = false;
        }
    }

    if(ok) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: conflicting declaration 'std::vector<int> A'
   13 |     vector<int> A(N);
      |                 ^
a.cc:9:11: note: previous declaration as 'll A'
    9 |     ll N, A;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'j' was not declared in this scope
   12 |     for(int i=0; j<N; i++){
      |                  ^
a.cc: At global scope:
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(a==true){
      |     ^~
a.cc:22:5: error: expected unqualified-id before 'else'
   22 |     else
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin>>N;
    bool a=true;
    vector<int>wtf(N);
    for(int i=0; i<N; i++){
    cin>>wtf.at(i);
    }
    sort(wtf.begin()<wtf.end());
    for(int i=0; j<N; i++){
    if(wtf.at(i)==wtf.at(i+1)){
    a=false;
    break;
    }
    }
    }
    if(a==true){
    cout<<"YES"<<endl;
    }
    else
    cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: no matching function for call to 'sort(bool)'
   11 |     sort(wtf.begin()<wtf.end());
      |     ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
a.cc:12:18: error: 'j' was not declared in this scope
   12 |     for(int i=0; j<N; i++){
      |                  ^
a.cc: At global scope:
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(a==true){
      |     ^~
a.cc:22:5: error: expected unqualified-id before 'else'
   22 |     else
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin>>N;
    bool a=true;
    vector<int>wtf(N);
    for(int i=0; i<N; i++){
    cin>>wtf.at(i);
    }
    sort(wtf);
    for(int i=0; j<N; i++){
    if(wtf.at(i)==wtf.at(i+1)){
    a=false;
    break;
    }
    }
    }
    if(a==true){
    cout<<"YES"<<endl;
    }
    else
    cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: no matching function for call to 'sort(std::vector<int>&)'
   11 |     sort(wtf);
      |     ~~~~^~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
a.cc:12:18: error: 'j' was not declared in this scope
   12 |     for(int i=0; j<N; i++){
      |                  ^
a.cc: At global scope:
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(a==true){
      |     ^~
a.cc:22:5: error: expected unqualified-id before 'else'
   22 |     else
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin>>N;
    bool a=true;
    vector<int>wtf(N);
    for(int i=0; i<N; i++){
    cin>>wtf.at(i);
    }
    for(int i=0; i<N; i++){
    for(int j=0; j<i: j++){
    if(wtf.at(i)==wtf.at(j)){
    a=false;
    break;
    }
    }
    }
    if(a==true){
    cout<<"YES"<<endl;
    }
    else
    cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   12 |     for(int j=0; j<i: j++){
      |                  ^
a.cc:12:21: error: found ':' in nested-name-specifier, expected '::'
   12 |     for(int j=0; j<i: j++){
      |                     ^
      |                     ::
a.cc:12:20: error: 'i' is not a class, namespace, or enumeration
   12 |     for(int j=0; j<i: j++){
      |                    ^
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
a.cc:17:6: error: expected ';' before '}' token
   17 |     }
      |      ^
      |      ;
   18 |     }
      |     ~ 
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
a.cc:17:6: error: expected ')' before '}' token
   17 |     }
      |      ^
      |      )
   18 |     }
      |     ~ 
a.cc:12:8: note: to match this '('
   12 |     for(int j=0; j<i: j++){
      |        ^
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin>>N;
    bool a=true;
    vector<int>wtf(N);
    for(int i=0; i<N; i;;){
    cin>>wtf.at(i);
    }
    for(int i=0; i<N; i++){
    for(int j=0; j<i: j;;){
    if(wtf.at(i)==wtf.at(j)){
    a=false;
    break;
    }
    }
    }
    if(a==true){
    cout<<"YES"<<endl;
    }
    else
    cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before ';' token
    8 |     for(int i=0; i<N; i;;){
      |        ~               ^
      |                        )
a.cc:8:26: error: expected primary-expression before ')' token
    8 |     for(int i=0; i<N; i;;){
      |                          ^
a.cc:12:18: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   12 |     for(int j=0; j<i: j;;){
      |                  ^
a.cc:12:21: error: found ':' in nested-name-specifier, expected '::'
   12 |     for(int j=0; j<i: j;;){
      |                     ^
      |                     ::
a.cc:12:20: error: 'i' is not a class, namespace, or enumeration
   12 |     for(int j=0; j<i: j;;){
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define pii pair<int,int>
const long long MOD=1e9+7;

int main() {
  int n;
  cin>>n;
  map<int,int> A;
  bool ans=true;
  rep(i,n){
    int a;
    cin>>a;
    A[a]++;
    if(A[a]>1){
      ans=fasle;
      break;
    }
  }
  if(ans) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  return 0;
}

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

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

int N;
long long A[200000];

int main(){
    cin>>N;
    for(int i=0;i<N;i++){
        cin>>A[i];
    }
    for(int i=0;i<N-1;i++){
        for(int j=i+1;j<N;j++){
            if(A[i]==A[j]){
                printf("NO");return;
            }
        }
    }
    printf("YES");
}

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

#include<stdio.h>
#include<stdlib.h>
int mycomp(const void* pt, const void* pt1);
int main()
{
	long int ar[200001] = { 0 };
	long int n;
	scanf("%ld", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%ld", &ar[i]);
	}
	qsort(ar + 1, n, sizeof(long int), mycomp);
	for (int i = 1; i < n; i++) {
		if (ar[i] == ar[i + 1]) {
			printf("NO"); return;
		}
	}
	printf("YES");
}
int mycomp(const void* pt, const void* pt1)
{
	const long int* st = (const long int*)pt;
	const long int* st1 = (const long int*)pt1;
	return *st - *st1;
}

Compiler output:
main.c: In function 'main':
main.c:15:39: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   15 |                         printf("NO"); return;
      |                                       ^~~~~~
main.c:4:5: note: declared here
    4 | int main()
      |     ^~~~
Language: C++

#include<stdio.h>
#include<stdlib.h>
int mycomp(const void* pt, const void* pt1);
int main()
{
	long int ar[200001] = { 0 };
	long int n;
	scanf("%ld", &n);
	for (int i = 1; i <= n; i++) {
		scanf("%ld", &ar[i]);
	}
	qsort(ar + 1, n, sizeof(long int), mycomp);
	for (int i = 1; i < n; i++) {
		if (ar[i] == ar[i + 1]) {
			printf("NO"); return;
		}
	}
	printf("YES");
}
int mycomp(const void* pt, const void* pt1)
{
	const long int* st = (const long int*)pt;
	const long int* st1 = (const long int*)pt1;
	return *st - *st1;
}

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

#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int N,flag=0;cin>>N;
    vector<int> A;
    for(int i=0;i<N;i++){
        int a;cin>>a;
        A.push_back(a);
    }
    sort(A.begin(),A.end());

    for(int i=0;i<N-1;i++){
        if(A[i]==A[i+1]){
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
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<bits/stdc++.h>
using namespace std;
set<int> kk;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        int k;
        cin>>k;
        kk.insert(k);
    }

    if(kk.size()==n)
        cout<<"YES";
    else
        cout<<"NO;
}


Compiler output:
a.cc:20:15: warning: missing terminating " character
   20 |         cout<<"NO;
      |               ^
a.cc:20:15: error: missing terminating " character
   20 |         cout<<"NO;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class D {

    public static void main(String[] args) {
        int a = 0;
        Scanner scanner = new Scanner(System.in);
        if (scanner.hasNextInt()) {
            a = scanner.nextInt();
        }
        BufferedReader br = null;
        String str = null;
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
            str = br.readLine();
        } catch (IOException e) {
            // IO 异常处理
            // 打印异常
            e.printStackTrace();
        } finally {
            try {
                if (br != null) {
                    br.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        String[] s = str.split(" ");
        int sSize  = s.length;
        Set<String> strings = new HashSet<>(Arrays.asList(s));
        if (sSize != strings.size()) {
            System.out.println("NO");
        } else {
            System.out.println("YES");
        }

    }
}


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


#include<stdio.h>
#include<stdlib.h>
int main()
{
	int x[i],y[i] ;
	int i = 0,j=0,k=0;

		scanf("%d",&x[i]);
	}

	for(i=0;i<sizeof(y)/sizeof(y[0]);i++)
	{
		scanf("%d",&y[i]);
	}
 
	for(j = 0; j<sizeof(x)/sizeof(x[0]); j++)
	{
		for(k = 0;k<sizeof(y)/sizeof(y[0]);k++)
		{
			if(x[j] == y[k])
			{
				printf("yes\n");
				return 0;
			}
		}
	}
	printf("no\n");
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'i' was not declared in this scope
    6 |         int x[i],y[i] ;
      |               ^
a.cc:9:29: error: 'x' was not declared in this scope
    9 |                 scanf("%d",&x[i]);
      |                             ^
a.cc: At global scope:
a.cc:12:9: error: expected unqualified-id before 'for'
   12 |         for(i=0;i<sizeof(y)/sizeof(y[0]);i++)
      |         ^~~
a.cc:12:17: error: 'i' does not name a type
   12 |         for(i=0;i<sizeof(y)/sizeof(y[0]);i++)
      |                 ^
a.cc:12:42: error: 'i' does not name a type
   12 |         for(i=0;i<sizeof(y)/sizeof(y[0]);i++)
      |                                          ^
a.cc:17:9: error: expected unqualified-id before 'for'
   17 |         for(j = 0; j<sizeof(x)/sizeof(x[0]); j++)
      |         ^~~
a.cc:17:20: error: 'j' does not name a type
   17 |         for(j = 0; j<sizeof(x)/sizeof(x[0]); j++)
      |                    ^
a.cc:17:46: error: 'j' does not name a type
   17 |         for(j = 0; j<sizeof(x)/sizeof(x[0]); j++)
      |                                              ^
a.cc:28:15: error: expected constructor, destructor, or type conversion before '(' token
   28 |         printf("no\n");
      |               ^
a.cc:29:9: error: expected unqualified-id before 'return'
   29 |         return 0;
      |         ^~~~~~
Language: C

#include <iostream>
#include <fstream>
#include <memory.h>
using namespace std;
int main()
{
    int n,k,i,j;
    ifstream cin("input.txt");
    while(cin>>n)
    {
        int k=0,sum=0;
        int flag=0;  //flag=1 E

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

#include<stdio.h>
	int main(void)
	{  
	  int N,a[200000]; 
      scanf("%d",&N);
      for(i=0;i<N;i++)
	  scanf("%d ",&a[i]);
	  for(i=0;i<N;i++)
	  {
		  if(a[i]!=a[i+1])
		  {printf("YES");}
		  else
		  {printf("NO");}
	  }
      return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'i' was not declared in this scope
    6 |       for(i=0;i<N;i++)
      |           ^
a.cc:8:15: error: 'i' was not declared in this scope
    8 |           for(i=0;i<N;i++)
      |               ^
Language: C++

#include <stdio.h>
int main(){
    long int n,a=0;
    scanf("%d", &n);
    int b[9e6];
    for(int i=0;i<n;i++){
        scanf("%d", &b[i]);
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(b[i]!=b[j])
            a++;
        }
    }
    if(a==0){printf("YES");}
    else{printf("NO");}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    5 |     int b[9e6];
      |           ^~~
a.cc:5:11: error: could not convert '9.0e+6' from 'double' to 'long unsigned int'
    5 |     int b[9e6];
      |           ^~~
      |           |
      |           double
a.cc:5:11: error: size of array 'b' has non-integral type 'double'
Language: C++

#include<stdio.h>
	int main(void)
	{  
	  int N,a[200000],i; 
      scanf("%d",&N);
      for(i=0;i<N;i++)
	  scanf("%d ",&a[i]);
	  for(i=0;i<N;i++)
	  {
		  if(a[i]!=a[i+1])
		  {printf("YES");}
		  else
		  {printf("NO")}
	  }
      return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected ';' before '}' token
   13 |                   {printf("NO")}
      |                                ^
      |                                ;
Language: C++

#include <stdio.h>
int main(){
    long int n,a=0;
    scanf("%d", &n);;
    int b[9e6];
    for(int i=0;i<n;i++){
        scanf("%d", &b[i]);
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(b[i]!=b[j])
            a++;
        }
    }
    if(a==0){printf("YES");}
    else{printf("NO");}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    5 |     int b[9e6];
      |           ^~~
a.cc:5:11: error: could not convert '9.0e+6' from 'double' to 'long unsigned int'
    5 |     int b[9e6];
      |           ^~~
      |           |
      |           double
a.cc:5:11: error: size of array 'b' has non-integral type 'double'
Language: C++

#include<stdio.h>
	int main(void)
	{  
	  int N,a[200000]; 
          scanf("%d",&N);
          for(i=0;i<N;i++)
	  scanf("%d ",&a[i]);
	  for(i=0;i<N;i++)
	  {
		  if(a[i]!=a[i+1])
		  {printf("YES");}
		  else
		  {printf("NO")}
	   }
           return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'i' was not declared in this scope
    6 |           for(i=0;i<N;i++)
      |               ^
a.cc:8:15: error: 'i' was not declared in this scope
    8 |           for(i=0;i<N;i++)
      |               ^
a.cc:13:32: error: expected ';' before '}' token
   13 |                   {printf("NO")}
      |                                ^
      |                                ;
Language: C++

#include <stdio.h>
int main(){
    int n,a=0;
    scanf("%d", &n);
    int a[];
    for(int i=0;i<n;i++){
        scanf("%d", &a[i]);
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(a[i]!=a[j])
            a++;
        }
    }
    if(a==0){printf("YES");}
    else{printf("NO");}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: conflicting declaration 'int a []'
    5 |     int a[];
      |         ^
a.cc:3:11: note: previous declaration as 'int a'
    3 |     int n,a=0;
      |           ^
a.cc:7:23: error: invalid types 'int[int]' for array subscript
    7 |         scanf("%d", &a[i]);
      |                       ^
a.cc:11:17: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                 ^
a.cc:11:23: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                       ^
Language: C++

#include <stdio.h>
int main(){
    int n,a=0;
    scanf("%d", &n);
    int a[99];
    for(int i=0;i<n;i++){
        scanf("%d", &a[i]);
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(a[i]!=a[j])
            a++;
        }
    }
    if(a==0){printf("YES");}
    else{printf("NO")}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: conflicting declaration 'int a [99]'
    5 |     int a[99];
      |         ^
a.cc:3:11: note: previous declaration as 'int a'
    3 |     int n,a=0;
      |           ^
a.cc:7:23: error: invalid types 'int[int]' for array subscript
    7 |         scanf("%d", &a[i]);
      |                       ^
a.cc:11:17: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                 ^
a.cc:11:23: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                       ^
a.cc:16:22: error: expected ';' before '}' token
   16 |     else{printf("NO")}
      |                      ^
      |                      ;
Language: C++

#include <stdio.h>
int main(){
    int n,a=0;
    scanf("%d", &n);
    int a[n];
    for(int i=0;i<n;i++){
        scanf("%d", &a[i]);
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(a[i]!=a[j])
            a++;
        }
    }
    if(a==0){printf("YES");}
    else{printf("NO")}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: conflicting declaration 'int a [n]'
    5 |     int a[n];
      |         ^
a.cc:3:11: note: previous declaration as 'int a'
    3 |     int n,a=0;
      |           ^
a.cc:7:23: error: invalid types 'int[int]' for array subscript
    7 |         scanf("%d", &a[i]);
      |                       ^
a.cc:11:17: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                 ^
a.cc:11:23: error: invalid types 'int[int]' for array subscript
   11 |             if(a[i]!=a[j])
      |                       ^
a.cc:16:22: error: expected ';' before '}' token
   16 |     else{printf("NO")}
      |                      ^
      |                      ;
Language: C

#include<iostream>
using namespace std;
int a[200000];
int main(){
	int n,i,j;
	int count=0;
	cin>>n;
 	for(i=0;i<n;i++){
 		cin>>a[i];
	 }
	
	for(i=0;i<n;i++){
	for(j=i;j<n;j++){
		if(a[i]!=a[j]){
			count=0;
		}
		else
		count=1;
	}
		
	}
	if(count==0){
		printf("YES\n");
	}
	if(count==1)
	printf("NO\n");

		
	
	
	
	return 0;
}

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

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    cout.precision(10);
    cout<<fixed;

    #ifdef _DEBUG
    //freopen("input.txt", "r", stdin);
    #endif // _DEBUG

    int n
    cin>>n;
    set<int> s;
    while (n--) {
        int x;
        cin>>x;
        s.insert(x);
    }
    if (s.size() == n) cout<<"YES\n";
    else cout<<"NO\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected initializer before 'cin'
   16 |     cin>>n;
      |     ^~~
a.cc:18:12: error: 'n' was not declared in this scope
   18 |     while (n--) {
      |            ^
a.cc:23:21: error: 'n' was not declared in this scope
   23 |     if (s.size() == n) cout<<"YES\n";
      |                     ^
Language: C

#include<stdio.h>
int main(void){
  int N, i, c = 0;
  scanf("%d", &N);
  int A[N];
  for(i = 0; i < N; i++){
    scanf("%d", &A[i]);
  }
  for(i = 0; i < N; i++){
    for(int j = i + 1; j < N){
      if(A[i] == A[j]) c += 1;
    }
  }

  if(c != 0) printf("NO\n");
  else printf("YES\n");


  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected ';' before ')' token
   10 |     for(int j = i + 1; j < N){
      |                             ^
      |                             ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int N;
    cin >> N;
    long int n = 1000000000;
    long int A[N], B[n];
    for (int i = 0; i < N; i++){
        cin >> A[i];
    }
    for (long int j = 0; j < n; j++){
        B[j] = 0;
    }
    for (int i = 0; i < N; i++){
        B[A[i]] += 1;
    }
    for (long int j = 0; j < n; j++){
        if (B[j] > 1){
            cout << "NO";
            goto Exit;
    }
    cout << "YES";
    Exit: ;
}

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

#include <iostream>

using namespace std;

int main()
{
    int N;
    cin >> N;
    int A[N], B[1000000000];
    for (int i = 0; i < N; i++){
        cin >> A[i];
    }
    for (int j = 0; j < 1000000000; j++){
        B[j] = 0;
    }
    for (int i = 0; i < N; i++){
        B[A[i]] += 1;
    }
    for (int j = 0; j < 1000000000; j++){
        if (B[j] > 1){
            cout << "NO";
            goto Exit;
    }
    cout << "YES";
    Exit: ;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long N,ans;
    bool ok = true;
    ans = 0;
    cin >> N;
    long long data[N] = {0};
    for (int i = 0; i < N; i++){
        cin >> data[i];
    }
     sort(data.begin(), data.end());

      for (int i = 0; i + 1 < N; ++i) {
        if (A[i] == A[i+1]) ok = false;
    }
    if (ok) cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: request for member 'begin' in 'data', which is of non-class type 'long long int [N]'
   12 |      sort(data.begin(), data.end());
      |                ^~~~~
a.cc:12:30: error: request for member 'end' in 'data', which is of non-class type 'long long int [N]'
   12 |      sort(data.begin(), data.end());
      |                              ^~~
a.cc:15:13: error: 'A' was not declared in this scope
   15 |         if (A[i] == A[i+1]) ok = false;
      |             ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
  //入力
  int n,a[200001];
  vector<int> c;　
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a[i];
    c.push_back(a[i]);
  }
  
  //昇順並び替え
 　sort(c.begin(),c.end());
  
  bool b=true;
  for(int i=0;i<n-1;i++){
    if(c[i]==c[i+1]){
      b=false;
      break;
    }
  }
  if(b==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc:9:17: error: extended character 　 is not valid in an identifier
    9 |   vector<int> c;　
      |                 ^
a.cc:17:2: error: extended character 　 is not valid in an identifier
   17 |  　sort(c.begin(),c.end());
      |  ^
a.cc: In function 'int main()':
a.cc:9:17: error: '\U00003000' was not declared in this scope
    9 |   vector<int> c;　
      |                 ^~
a.cc:17:2: error: '\U00003000sort' was not declared in this scope; did you mean 'qsort'?
   17 |  　sort(c.begin(),c.end());
      |  ^~~~~~
      |  qsort
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin  >> n;
  vector<int> vec(n);
  int i;
  for(i=0;i<n;i++){
    cin >> vec.at(i);
  }
  sort(vec.begin(),vec.end());
  bool r=true;
  for(i=0;i<n-1;i++){
    if(vec.at(i)==vec.at(i+1)){
      r=false;
    }
  }
  if(r){
    cout << "YES;
  }else{
    cout << "NO";
  }
}

Compiler output:
a.cc:19:13: warning: missing terminating " character
   19 |     cout << "YES;
      |             ^
a.cc:19:13: error: missing terminating " character
   19 |     cout << "YES;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:20:3: error: expected primary-expression before '}' token
   20 |   }else{
      |   ^