For this Question: Ram has a situation with him in which he needs to pick one name among Rahul and Ravi. So he decides to pick one name using a game. He asked Rahul and Ravi to play a game. The game is as follows.
First, Rahul throws dice and get a number X.
Then, Ravi throws dice and get a number Y.
Rahul wins the game if the sum on the dice is a prime number, and Ravi wins otherwise.
Given X and Y determines who wines the game.The first line of input will contain a single integer T, denoting the number of test cases.
The first and only line of each test case contains two space- separated integers X and Y.

<b>Constraints</b>
1 <b>&le;</b> T <b>&le;</b> 1000
1 <b>&le;</b> X, Y <b>&le;</b> 6For each test case, output on a new line the winner of the game: Rahul or Ravi.
Each letter of the output is printed in uppercase, i. e RAHUL, RAVI.Sample Input 
3
1 2
3 4
5 5
Sample Output
RAHUL
RAHUL
RAVI, I have written this Solution Code: #include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 2351
#endif

int32_t main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    auto start = std::chrono::high_resolution_clock::now();

    auto checkPrime = [&](int n) -> int {
        for (int i = 2; i * i <= n; i++) {
            if (n % i == 0) {
                return 0;
            }
        }
        return 1;
    };

    vector<int> primes(13);
    primes[0] = 0;
    primes[1] = 0;

    for (int i = 2; i <= 12; i++) {
        primes[i] = checkPrime(i);
    }

    debug(primes);

    int t;
    cin >> t;
    while (t--) {
        int X, Y;
        cin >> X >> Y;
        int sum = X + Y;
        if (primes[sum]) {
            cout << "RAHUL\n";
        } else {
            cout << "RAVI\n";
        }
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?