Language: C++

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

vector<string,pair<ll,ll>>p[214514];

int main(){
	ll n;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>p[i].first>>p[i].second.first;
		p[i].second.first*=-1;
		p[i].second.second=i+1;
	}
	sort(p,p+n);
	for(int i=0;i<n;i++)cout<<p[i].second.second<<endl;
	return 0;
}


Compiler output:
In file included from /usr/include/c++/14/vector:66,
                 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/stl_vector.h: In instantiation of 'struct std::_Vector_base<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >':
/usr/include/c++/14/bits/stl_vector.h:428:11:   required from 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:5:35:   required from here
    5 | vector<string,pair<ll,ll>>p[214514];
      |                                   ^
/usr/include/c++/14/bits/stl_vector.h:87:28: error: no type named 'value_type' in 'struct std::pair<long long int, long long int>'
   87 |         rebind<_Tp>::other _Tp_alloc_type;
      |                            ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:89:9: error: no type named 'value_type' in 'struct std::pair<long long int, long long int>'
   89 |         pointer;
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >':
a.cc:5:35:   required from here
    5 | vector<string,pair<ll,ll>>p[214514];
      |                                   ^
/usr/include/c++/14/bits/stl_vector.h:518:20: error: '_M_allocate' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >::_Base'
  518 |       using _Base::_M_allocate;
      |                    ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:519:20: error: '_M_deallocate' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >::_Base'
  519 |       using _Base::_M_deallocate;
      |                    ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:521:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >::_Base'
  521 |       using _Base::_M_get_Tp_allocator;
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::pair<long long int, long long int>]':
a.cc:5:35:   required from here
    5 | vector<string,pair<ll,ll>>p[214514];
      |                                   ^
/usr/include/c++/14/bits/stl_vector.h:136:24: error: no type named 'value_type' in 'struct std::pair<long long int, long long int>'
  136 |         _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
      |                        ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:27: error: 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'first'
   11 |                 cin>>p[i].first>>p[i].second.first;
      |                           ^~~~~
a.cc:11:39: error: 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'second'
   11 |                 cin>>p[i].first>>p[i].second.first;
      |                                       ^~~~~~
a.cc:12:22: error: 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'second'
   12 |                 p[i].second.first*=-1;
      |                      ^~~~~~
a.cc:13:22: error: 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'second'
   13 |                 p[i].second.second=i+1;
      |                      ^~~~~~
a.cc:16:40: error: 'class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'second'
   16 |         for(int i=0;i<n;i++)cout<<p[i].second.second<<endl;
      |                                        ^~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::pair<long long int, long long int>]':
/usr/include/c++/14/bits/stl_vector.h:314:7:   required from here
  314 |       _Vector_base() = default;
      |       ^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:141:26: error: no type named 'value_type' in 'struct std::pair<long long int, long long int>'
  141 |         : _Tp_alloc_type()
      |                          ^
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl(std::_Vector_base<_Tp, _Alloc>::_Vector_impl&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::pair<long long int, long long int>]':
/usr/include/c++/14/bits/stl_vector.h:337:7:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
  337 |       _Vector_base(_Vector_base&&) = default;
      |       ^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1817:25:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 1817 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 1908 |           std::__final_insertion_sort(__first, __last, __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4772:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*]'
 4772 |       std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter());
      |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:15:6:   required from here
   15 |         sort(p,p+n);
      |         ~~~~^~~~~~~
/usr/include/c++/14/bits/stl_vector.h:154:75: error: no type named 'value_type' in 'struct std::pair<long long int, long long int>'
  154 |         : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x))
      |                                                                           ^
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&) [with _Tp = __cxx11::basic_string<char>; _Alloc = pair<long long int, long long int>]':
/usr/include/c++/14/bits/predefined_ops.h:45:23:   required from 'constexpr bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >*; _Iterator2 = std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >*]'
   45 |       { return *__it1 < *__it2; }
      |                ~~~~~~~^~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1777:14:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 1777 |           if (__comp(__i, __first))
      |               ~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1817:25:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 1817 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
 1908 |           std::__final_insertion_sort(__first, __last, __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4772:18:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = vector<__cxx11::basic_string<char>, pair<long long int, long long int> >*]'
 4772 |       std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter());
      |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:15:6:   required from here
   15 |         sort(p,p+n);
      |         ~~~~^~~~~~~
/usr/include/c++/14/bits/stl_vector.h:2090:47: error: 'const class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'begin'
 2090 |     { return std::lexicographical_compare(__x.begin(), __x.end(),
      |                                           ~~~~^~~~~
/usr/include/c++/14/bits/stl_vector.h:2090:60: error: 'const class std::vector<std::__cxx11::basic_string<char>, std::pair<long long int, long long int> >' has no member named 'end'
 2090 |     { return std::lexicographical_compare(__x.begin(), __x.end(),
      |                                                        ~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:2091:47: error: 'const class std::vector<std::__cxx11::basic_string<char>, std::pa