Help me in solving ANDOR problem

My issue

x & 0 = 0
x | 0 = x

so sum is x;
so sol is simply 0 ,x for any x;

what am i doing wrong?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	int t;

    int x;

    cout<<0<<" "<<x<<endl;


Problem Link: ANDOR Problem - CodeChef

Hey your logic is correct, you just need to change the data types to account for the constraints.
Change the data type from int to long long.
Hope it helps🐻

Ohh thanks it did work