— Ok, seems I got it. It searches for m elements right?
However it requires some experience with the allocated storage duration and is used in C. Using vectors would be much simpler way.
— Did you go through the first link. In this problem it is searching the element inside the array m number of times. We have to search m numbers inside the array, if they exist we will print the index and if it doesn't it will print -1.