why it is showing wrong answer in online editor as it is giving correct results offline.
#include<bits/stdc++.h>
using namespace std;
main()
{
int n1,n2;
int i,j;
cin>>n1>>n2;
int temp,ans=0;
for(i=n1;i<=n2;i++)
{
for(j=i+1;i<=n2;i++)
{
temp=i^j;
if(ans<temp)
ans=temp;
}
}
cout<<ans<<"\n";
}