Language: C++

#include<bits/stdc++.h>
using namespace std;

inline int getint() {
  int A = 0;
  if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
  else while ((ct = *ci++) >= '0') A = A * 10 + ct - '0';
  return A;
}

int main() {
  int N = getint();
  vector<int> A[N];
  for(int i=0;i<N;i++)A[i]=getint();

  if(N>=100){
    ans=1000000010;
    for(int i=0;i<1;i++){
      //random_shuffle(A.begin(),A.end());
      gcd1 = gcd_of_vector(A,1,N/2);
      gcd2 = gcd_of_vector(A,N/2,N);
      ans = min(ans,max(gcd1,gcd2));
    }
  }else{
    ans=0;
    for(int i=0;i<N;i++){
      ans=max(ans,gcd_of_vector_with_skip(A,i));
    }
  }

  cout<<ans<<"\n";

  return 0;
}

Compiler output:
a.cc: In function 'int getint()':
a.cc:6:7: error: 'ci' was not declared in this scope
    6 |   if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
      |       ^~
a.cc:6:12: error: 'cn' was not declared in this scope; did you mean 'yn'?
    6 |   if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
      |            ^~
      |            yn
a.cc:6:22: error: 'cm' was not declared in this scope; did you mean 'tm'?
    6 |   if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
      |                      ^~
      |                      tm
a.cc:6:34: error: 'ct' was not declared in this scope
    6 |   if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
      |                                  ^~
a.cc:6:39: error: 'getcha' was not declared in this scope; did you mean 'getchar'?
    6 |   if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
      |                                       ^~~~~~
      |                                       getchar
a.cc:7:16: error: 'ct' was not declared in this scope
    7 |   else while ((ct = *ci++) >= '0') A = A * 10 + ct - '0';
      |                ^~
a.cc: In function 'int main()':
a.cc:14:35: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
   14 |   for(int i=0;i<N;i++)A[i]=getint();
      |                                   ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:17:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     ans=1000000010;
      |     ^~~
      |     abs
a.cc:20:7: error: 'gcd1' was not declared in this scope
   20 |       gcd1 = gcd_of_vector(A,1,N/2);
      |       ^~~~
a.cc:20:14: error: 'gcd_of_vector' was not declared in this scope
   20 |       gcd1 = gcd_of_vector(A,1,N/2);
      |              ^~~~~~~~~~~~~
a.cc:21:7: error: 'gcd2' was not declared in this scope
   21 |       gcd2 = gcd_of_vector(A,N/2,N);
      |       ^~~~
a.cc:25:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     ans=0;
      |     ^~~
      |     abs
a.cc:27:19: error: 'gcd_of_vector_with_skip' was not declared in this scope
   27 |       ans=max(ans,gcd_of_vector_with_skip(A,i));
      |                   ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:31:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |   cout<<ans<<"\n";
      |         ^~~
      |         abs