Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;

int main(){
  int n,a=0;
  int b=0
  int j=0;
  int e=0;
  vector<pair<int,int>> c(n);
  vector<string> s(n);
  vector<string> d(n);
  rep(i,n){
    cin>>s[i];
  }
  sort(s.begin(),s.end());
  rep(i,n){
    c=make_pair(0,0);
  }
  rep(i,n){
    while(s[i+1]==s[i]){
     b++;
    }
    if(a<=b){
      a=b;
      c[j].first=i;
      c[j].second=a;
    }
    b=0;
    j++;
  }
  rep(i,n){
    if(c.second==a){
      d.back(s[c.first]);
      e++;
    }
  }
  sort(d.begin(),d.end());
  rep(i,e){
    cout<<d[i]<<endl;
  }
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'int'
    9 |   int j=0;
      |   ^~~
a.cc:19:20: error: no match for 'operator=' (operand types are 'std::vector<std::pair<int, int> >' and 'std::pair<int, int>')
   19 |     c=make_pair(0,0);
      |                    ^
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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'std::pair<int, int>' to 'const std::vector<std::pair<int, 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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, 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 'std::pair<int, int>' to 'std::vector<std::pair<int, 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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, 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 'std::pair<int, int>' to 'std::initializer_list<std::pair<int, int> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:27:9: error: 'j' was not declared in this scope
   27 |       c[j].first=i;
      |         ^
a.cc:31:5: error: 'j' was not declared in this scope
   31 |     j++;
      |     ^
a.cc:34:10: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   34 |     if(c.second==a){
      |          ^~~~~~
a.cc:35:18: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   35 |       d.back(s[c.first]);
      |                  ^~~~~