For this Question: Mohan was so excited to visit his college NIT Arunachal Pradesh campus after COVID along with his friends Shreya and Anuj. The Warden allocated the hostel room for him but he was curious to know about the fact that how students are getting rooms.
The warden told him that those students whose roll no is divisible by 2 will get PAPUM HOSTEL and if it is odd then they will get "LOHIT HOSTEL". If the student is a girl, then she will get "Upper Wing" otherwise ‘Lower Wing’.The first line of input will contain a single integer t denoting the no. of test cases
Each test case contains only one line containing two space-separated inputs R for Roll No and S
for denoting Sex ‘B’ for boy and ‘G’ for girl

<b>Constraints</b>
1 ≤ t ≤ 10000
1 ≤ R ≤ 300Print the hostel name (LOHIT/PAPUM) with the upper wing (U) and lower wing (L).Sample Input
2 
30 B
35 G

Sample Output
PAPUM L
LOHIT U

<b>Explanation:</b>
Here 30 is evenly divisible by two and B is the boy so he gets the Papum Hostel and is allocated a room in the lower wing., I have written this Solution Code: #include <stdio.h>

int main(void) {
    int t;
    scanf("%d", &t);
    while (t--) {
        int roll;
        char sex;
        scanf("%d %c", &roll, &sex);
        if (roll % 2)
            printf("LOHIT %s\n", sex == 'B' ? "L" : "U");
        else
            printf("PAPUM %s\n", sex == 'B' ? "L" : "U");
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?