。。额这个。。是个比较白痴的错误- -倒数第三行。scanf("%d",s);地址符啊。。。scanf("%d",&s);
scanf("%d",s) 改成scanf("%d",&s)
scanf("%d",s); 改为 scanf("%d",&s);