gred从头到尾没赋值也没用到把这两行删掉char gred和printf(“\n 等级是%c\n”,gred);输入scanf的%f改成%d不然会是错误值;
scanf输入参数的%f修改为%d
int score;改float score;还有下面的\n和/n变来变去?