Language: Java

#include <stdio.h>
#include <math.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <string>
#include <map>
using namespace std;
typedef long long int lli;
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)
int main(void)
{
    int N;
    cin >> N;
    long int tmp;
    vector<long int> A;
    for (int i = 0; i < N; i++)
    {
        cin >> tmp;
        A.push_back(tmp);
    }
    sort(A.begin(), A.end());
    decltype(A)::iterator result = unique(A.begin(), A.end());
    A.erase(result, A.end());
    if (A.size() < N)
    {
        cout << "NO" << endl;
    }
    else
    {
        cout << "YES" << endl;
    }
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:3: error: illegal character: '#'
#include <iostream>
^
Main.java:4: error: illegal character: '#'
#include <algorithm>
^
Main.java:5: error: illegal character: '#'
#include <vector>
^
Main.java:6: error: illegal character: '#'
#include <numeric>
^
Main.java:7: error: illegal character: '#'
#include <string>
^
Main.java:8: error: illegal character: '#'
#include <map>
^
Main.java:10: error: class, interface, enum, or record expected
typedef long long int lli;
^
Main.java:11: error: illegal character: '#'
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
^
Main.java:11: error: class, interface, enum, or record expected
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
        ^
Main.java:11: error: class, interface, enum, or record expected
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
                                                       ^
Main.java:11: error: class, interface, enum, or record expected
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
                                                                  ^
Main.java:12: error: illegal character: '#'
#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)
^
Main.java:12: error: class, interface, enum, or record expected
#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)
                                                       ^
Main.java:12: error: class, interface, enum, or record expected
#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)
                                                                  ^
Main.java:16: error: class, interface, enum, or record expected
    cin >> N;
    ^
Main.java:17: error: class, interface, enum, or record expected
    long int tmp;
    ^
Main.java:18: error: class, interface, enum, or record expected
    vector<long int> A;
    ^
Main.java:19: error: class, interface, enum, or record expected
    for (int i = 0; i < N; i++)
    ^
Main.java:19: error: class, interface, enum, or record expected
    for (int i = 0; i < N; i++)
                    ^
Main.java:19: error: class, interface, enum, or record expected
    for (int i = 0; i < N; i++)
                           ^
Main.java:22: error: class, interface, enum, or record expected
        A.push_back(tmp);
        ^
Main.java:23: error: class, interface, enum, or record expected
    }
    ^
Main.java:25: error: class, interface, enum, or record expected
    decltype(A)::iterator result = unique(A.begin(), A.end());
    ^
Main.java:26: error: class, interface, enum, or record expected
    A.erase(result, A.end());
    ^
Main.java:27: error: class, interface, enum, or record expected
    if (A.size() < N)
    ^
Main.java:30: error: class, interface, enum, or record expected
    }
    ^
Main.java:34: error: class, interface, enum, or record expected
    }
    ^
Main.java:36: error: class, interface, enum, or record expected
}
^
31 errors