PROGRAMMING:Finds the specified element in an array
Enter a positive integer repeat (0 < repeat < 10) and perform the following operations:
Input a positive integer n (1 < n < = 10), and then input n integers into the array a, and then input an integer x to search for X in the array A. if it is found, the minimum subscript of the corresponding element will be output, otherwise "not found" will be output.
It is required to define and call the function search (list, N, x). Its function is to find the element X in the array list. If it is found, it will return the minimum subscript of the corresponding element, otherwise it will return - 1. The type of function parameter list is integer pointer, the type of parameter n and X is int, and the type of function is int.
Output format statement: printf ("index =% D / N",);
Input and output example: description in brackets, no input and output required
###Input example:
```in
2 (repeat=2)
3 (n=3)
1 2 -6
2 (x=2)
5 (n=5)
1 2 2 5 4
0 (x=0)
```
###Output example:
```out
index = 1
Not found
```
answer:If there is no answer, please comment
Input a positive integer n (1 < n < = 10), and then input n integers into the array a, and then input an integer x to search for X in the array A. if it is found, the minimum subscript of the corresponding element will be output, otherwise "not found" will be output.
It is required to define and call the function search (list, N, x). Its function is to find the element X in the array list. If it is found, it will return the minimum subscript of the corresponding element, otherwise it will return - 1. The type of function parameter list is integer pointer, the type of parameter n and X is int, and the type of function is int.
Output format statement: printf ("index =% D / N",);
Input and output example: description in brackets, no input and output required
###Input example:
```in
2 (repeat=2)
3 (n=3)
1 2 -6
2 (x=2)
5 (n=5)
1 2 2 5 4
0 (x=0)
```
###Output example:
```out
index = 1
Not found
```
answer:If there is no answer, please comment