&换成%
scanf前面的格式里面不要带空格
下面正确内容里的第4个%,你写成了&
int m, b, c; scanf ("%*6d %4d %2d %2d %*4d", &m, &b, &c); printf ("%4d-%2d-%2d\n", m, b, c);