The program crashed
I need to declare an array of 2000000 elements, how do you declare it?
Problem
Write a program that given the list of N numbers determine in what position the element a0 (the first one on the list) remains after it is sorted.
Entry
Your program should read the following information from the keyboard: In the first line the whole number N, the number of numbers in the list. In the second line the N numbers of the list separated each one by a space.
Exit
Your program must write on the screen a single integer that represents the final position of element a0a0 in the sorted list.
Restrictions: 1