{
scanf("%d ",& ampa[I]);
}
Judge a [me]! Execute scanfa [i] after ='\n' ("%d ",&); At this time, i++ will be executed and an [i] will be judged! ='\n '
At this time, a[i] is in the state of no assignment, so a[i]! ='\n' never holds.
If you don't understand, you can ask.