code:
#include
#include
#include<stdio.h>
#include
using namespace std;
int main() {
int t;
cin>>t;
while(tβ)
{
string num1, num2;
int main_no;
cin>>num1>>num2;
int i, j ;
i= stoi(num1);
j=stoi(num2);
cout<<i<<j<<endl;
main_no =(i ^ j) ;
int digit = (num1.length() > num2.length()) ? num1.length() : num2.length();
//std::cout << std::setfill('0') << std::setw(5) << 25;
cout<<setfill('0')<<setw(digit)<<main_no<<endl;
}
return 0;
}
this is my code but even afer writting cout I am getting no output, why it is so, also suggest me some efficient method to convert string to int as header files and stoi, sscanf are giving run time error