scanf("%d",&m);36行已经create输入数据了,38行你的目的是什麽呢?39行已经调用Locate了,改成 int n = Locate(L);然后41行改为printf("%d",n);