<s>[INST] #include<iostream>
#include<vector>
using namespace std;
int main()
{
   vector<int>a;
   int i,n;
   cout<<"Enter the number of elements";
   cin>>n;
   int obj;
   for(i=0;i<n;i++)
   {
      cin>>obj;
      a.push_back(obj);
   }
   int max=a[0];
   for(i=0;i<n;i++)
   {
      if(a[i]>max)
 {
        max=a[i];
      }
   }
   cout<<"The biggest no is"<<max;
   return 0;
}

If we change the int max=a[0]; to int max=a[n-1];Will the code still work?[/INST]