建议自己电脑上实现的就不要在这上面浪费时间了,估计判定又出问题了。。。

printf能AC,而cout就WA。。。

#include < stdio.h >
int  main()
{
 
double speed,weight,strength;
 
bool flag;
 
while(scanf("%lf%lf%lf",&speed,&weight,&strength)&&speed&&weight&&strength)
 
{
  flag
=0;
  
if((speed<=4.5)&&(weight>=150)&&(strength>=200))
  
{
   printf(
"Wide Receiver ");
   flag
=1;
  }

  
if((speed<=6.0)&&(weight>=300)&&(strength>=500))
  
{
   printf(
"Lineman ");
   flag
=1;
  }

  
if((speed<=5.0)&&(weight>=200)&&(strength>=300))
  
{
   printf(
"Quarterback ");
   flag
=1;
  }

  
if(!flag)printf("No positions");
  printf(
"\n");
 }

 
return 0;
}