Hello, I am not able to understand the problem with my code, why is it showing a wrong answer?
#include
#include<stdio.h>
#include<math.h>
using namespace std;
int main()
{
int t,a,b,num,i;
cin>>t;
while(t–&&t<=10)
{
cin>>a>>b;
for(i=a;i<=b;i++)
{
if(i>1)
{
num=pow(2,i)-2;
if(num%i==0)
cout<<i<<endl;
}
}
cout<<"\n";
}
return 0;
}