Language: Java

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;

long long comb(long long n, long long r) {
    if ( r == 0 || n == r) {
        return 1;
    } else {
        return comb(n-1, r) + comb(n-1,r-1);
    }
}

int main(){
    int size;
    long long input[100000];
    scanf("%d", &size);
    for(int i=0;i<size;i++){
        scanf("%lld", &input[i]);
    }

    long long maxComb = -1;
    long long maxAi = 0;
    long long maxAj = 0;
    for (int i = 0; i < size; ++i) {
        for (int j = 0; j < size; ++j) {
            if (i == j) continue;
            long long ai = input[i];
            long long aj = input[j];
            if (ai > aj) {
                long long c = comb(ai, aj);
                if (maxComb < c) {
                    maxComb = c;
                    maxAi = ai;
                    maxAj = aj;
                }
            }
        }
    }
    printf("%lld %lld\n", maxAi, maxAj);
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:3: error: illegal character: '#'
#include <cstdlib>
^
Main.java:4: error: illegal character: '#'
#include <cstring>
^
Main.java:5: error: illegal character: '#'
#include <cmath>
^
Main.java:6: error: illegal character: '#'
#include <map>
^
Main.java:7: error: illegal character: '#'
#include <vector>
^
Main.java:8: error: illegal character: '#'
#include <queue>
^
Main.java:9: error: illegal character: '#'
#include <algorithm>
^
Main.java:12: error: class, interface, enum, or record expected
long long comb(long long n, long long r) {
^
Main.java:15: error: class, interface, enum, or record expected
    } else {
    ^
Main.java:17: error: class, interface, enum, or record expected
    }
    ^
Main.java:22: error: class, interface, enum, or record expected
    long long input[100000];
    ^
Main.java:23: error: class, interface, enum, or record expected
    scanf("%d", &size);
    ^
Main.java:24: error: class, interface, enum, or record expected
    for(int i=0;i<size;i++){
    ^
Main.java:24: error: class, interface, enum, or record expected
    for(int i=0;i<size;i++){
                ^
Main.java:24: error: class, interface, enum, or record expected
    for(int i=0;i<size;i++){
                       ^
Main.java:26: error: class, interface, enum, or record expected
    }
    ^
Main.java:29: error: class, interface, enum, or record expected
    long long maxAi = 0;
    ^
Main.java:30: error: class, interface, enum, or record expected
    long long maxAj = 0;
    ^
Main.java:31: error: class, interface, enum, or record expected
    for (int i = 0; i < size; ++i) {
    ^
Main.java:31: error: class, interface, enum, or record expected
    for (int i = 0; i < size; ++i) {
                    ^
Main.java:31: error: class, interface, enum, or record expected
    for (int i = 0; i < size; ++i) {
                              ^
Main.java:32: error: class, interface, enum, or record expected
        for (int j = 0; j < size; ++j) {
                        ^
Main.java:32: error: class, interface, enum, or record expected
        for (int j = 0; j < size; ++j) {
                                  ^
Main.java:34: error: class, interface, enum, or record expected
            long long ai = input[i];
            ^
Main.java:35: error: class, interface, enum, or record expected
            long long aj = input[j];
            ^
Main.java:36: error: class, interface, enum, or record expected
            if (ai > aj) {
            ^
Main.java:38: error: class, interface, enum, or record expected
                if (maxComb < c) {
                ^
Main.java:40: error: class, interface, enum, or record expected
                    maxAi = ai;
                    ^
Main.java:41: error: class, interface, enum, or record expected
                    maxAj = aj;
                    ^
Main.java:42: error: class, interface, enum, or record expected
                }
                ^
Main.java:47: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:48: error: class, interface, enum, or record expected
}
^
34 errors