#include <iostream>
#include <vector> 

using namespace std;

int find_max(vector<int>a) { 
  int max=0; 
  for(int i=0;i<a.size();i++) if(a[i]>max) max=i; 
  return max; 
}

int main() {
 vector<int> test;   // Deklaration 
 test.reserve(7);    // Speicher-Reservierung 
 test.push_back(10); // F 
 test.push_back(45); // u 
 test.push_back(12); // e 
 test.push_back(23); // l 
 test.push_back(39); // l 
 test.push_back(63); // e 
 test.push_back(33); // n 
   
 int idx_of_max = find_max(test); // Wird 5 sein, da das vorletzte Element 
                                  // mit 63 den hoechsten Wert beinhaltet	
 cout << idx_of_max;                                 
}