Order by xor online judge bug

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

int main() {
int t;
cin>>t;
while(t–){
int a,b,c;
cin>>a>>b>>c;
int count=0;
int g=0;
int j=0;
while(j<100){
if((a^j)<(b^j) && (b^j)<(c^j)){
g=j;
count++;
}
j++;
}
if(count==0){
cout<<-1<<endl;
}
else{
cout<<g<<endl;
}
}
return 0;
}
During contest it shown accepted
but now its showing wrong answer how is it possible?