#include
int main() { int i,n,x,a[10],*res;
printf("Input n:\n"); scanf("%d",&n);
printf("Input %d numbers:\n",n); for(i=0;i res=a; printf("Input x:\n"); scanf("%d",&x); for(i=0;i if ( i }
res=a; printf("Input x:\n"); scanf("%d",&x);
for(i=0;i if ( i }
if ( i }
}
if(a[i]!='x') 改成if(a[i]!=x) ‘x’里面是字符