Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ldb = long double;
using pa = pair < ll, ll >;
using vec = vector < ll >;
#define pb push_back
#define po pop_back
#define mp make_pair
#define mt make_tuple
#define F  first
#define S  second
#define f(i,x,n) for(ll i=x;i<n;i++) 
#define all(c) c.begin(),c.end()
#define str string
#define edl "\n"
#define add insert
#define cot continue
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL)
const int MOD = 1e9 + 7, INF = INT_MAX, N = 1e5 + 10;
const double PI = acos(-1);
const ll LINF = LLONG_MAX;




int main() 
{

 fast();
  
  // #ifndef ONLINE_JUDGE
  //   freopen("input.txt", "r", stdin);
  //   freopen("output.txt","w",stdout);
  // #endif
  ll a;
  cin>>a;
  vector<tuple<ll,ll,string>>q;
  str s;ll a1;
  f(i,0,a)
  {
    cin>>s>>a1;
    q.pb(mt(s,-a1,i+1));
  }
  sort(all(q));
  f(i,0,a)
  {
    cout<<get<2>(q[i])<<edl;
  }
  


    




    // cerr << "Time taken: " << int((clock() * 1000.) / CLOCKS_PER_SEC) << "ms\n";
    return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:43:9: error: no matching function for call to 'std::vector<std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back(std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>)'
   43 |     q.pb(mt(s,-a1,i+1));
      |     ~~~~^~~~~~~~~~~~~~~
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:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; _Alloc = std::allocator<std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >; value_type = std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>' to 'const std::vector<std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::value_type&' {aka 'const std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >; _Alloc = std::allocator<std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >; value_type = std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>' to 'std::vector<std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::value_type&&' {aka 'std::tuple<long long int, long long int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~