For this Question: You are given the following pseudocode:

code : 
res = a
for i = 1 to k
 if i is odd
     res = res & b 
 else 
     res = res | b

You are also given the values of a, b and k. Find the value of res.First line contains of single integer t denoting number of test cases.
Each test cases consists of 3 lines where each line consists of a single integer denoting the values of a, b and k respectively.

<b>Constraints</b>
1<= T <= 1e5
1<= a, b, k <= 1e18Print the final value of res for each test case in a new lineSample Input :
1
4 5 1

Sample Output : 
4, I have written this Solution Code: #include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int tt;
    cin >> tt;
    while (tt--) {
        int a, b, k;
        cin >> a >> b >> k;
        cout << ((k == 1) ? a & b : b) << "\n";
    }
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?