我这个代码为什么错了
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
int[]num={89,90,98,56,60,91,93,85};
string[]XM={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int max=num[0];
string name=XM[0];
for(int i=0;i<num.Length;i++)
{
if(num[i]>max)
{
max=num[i];
name=XM[i];
}
}
Console.Write("分数最高的是{0},分数是{1}",name,max);
}