1int main()
2{
3 int num, arr[10];
4 int x, y, a, b;
5
6 cin >> num;
7
8 for (int i = 0; i < num; i++)
9 {
10 cin >> arr[i];
11 }
12
13 cout << "Max element Index: " << max_element(arr, arr + num) - arr;
14
15 return 0;
16}
17