等大佬为什么这个程序运行不下去了?#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) { int a[100]; int n,x,y,o,z,p; z=o=p=0; printf("输入n:"); scanf("%d",&n); printf("输入%d个数:",n); for(x=0;x<=n;x++){ scanf("%d",&a[x]);} printf("输入要查找的数:"); scanf("%d",&y); for(x=0;x<=n;x++){ z++; if(y==a[x]) printf("%d\n",x); while(z>=n) printf("-1"); break; } for(x=0;x<=n;x++){ while(a[x]<y) o++; while(a[x>y]) p++; } printf("%d\n%d",p,o); return 0;}