Why is my submission wrong

include
using namespace std;
int main() {
int T;
cin>>T;
while(T–){
int X,Y,wins=0;
cin>>X>>Y;
wins=X/2;
if(X<=Y)
wins=0;
cout<<wins<<endl;
wins=0;
}

return 0;

}
please help i am ery confused

Your type "while(T-) is incorrect. Add one minus and it will be while(T–)