Feedback for EXPERT problem

Problem Link: EXPERT Problem - CodeChef

my solution is correct still it shows wrong: include
using namespace std;

int main() {
// problem setter = expert if min 50% approve by chef
// probs submitted = X
// approved =Y
// for expert = Y>= X/2;=> yes
// else no
int t;
cin>>t;
while(t–){
int X,Y;
cin>>X>>Y;
if(Y >= ((X*50)/100)){
cout<<“yes”<<endl;
}
else{
cout<<“no”<<endl;
}
}
return 0;
}

This has happened multiple times what is my fault in this im frustrated

The logic is if (Y*100/X)>=50 then its yes else its no.
Your code fails for 3 1
its would be no but would code is giving yes.

you can change the if statement to
if((y/x)*100>=50)
{
cout<<“yes”<<endl;
}
else{
cout<<“no”<<endl;
}

To do this ,you must initialize x and y as float variables