請問以下程式碼有甚麼問題?
#include<stdio.h> //title
#include<stdlib.h>
#include<time.h>
#define N 20
{
int arr[N],x,n,i;
int f=-1
srand(time(NULL)); //random seed
for(i=0;i<N;i++)
{
arr[i]=rand()/1000; //in order
}
printf('enter numbers:");
scanf("%d",&x); //enter numbers
{ //find in order
if(x==arr[i])
{
f=i;
break
}
}
printf("\n random numbers:\n");
for(i=0;i<N;i++)
{
printf("%d",arr[i]); //output
}
printf('\n\n");
if(f<0)
{
printf("can not find:%d\n".x);
}
else
{
printf("data:%d at the order of %d element\n",x,f+1);
}
system("pause");
return 0;
}