VS能打印出来为啥提交报错
class program
{
static void Main()
{
string[] name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单红开", "田武山", "王三明" };
int[] score = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 };
int sum = 0, vag;
for (int i = 0; i < score.Length; i++)
{
sum += score[i];
}
vag = sum / score.Length;
Console.Write("平均分是" + vag + ",高于平均分的有:");
for (int i = 0; i < score.Length; i++)
if (score[i] > vag)
{
Console.Write(name[i] + " ");
}
}
}