Language: C++

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

#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rep2(i,s,n) for(int i = (s); i < (n); ++i)
#define ll long long
#define ld long double
#define P pair<ll,ll>
#define all(v) v.begin(),v.end()

const ll mod = 1e9+7;
const ll INF = 1e18;
const double pi = acos(-1.0);

int main(void)
{
    
    ll n; cin>>n;
    vector<tuple<string,ll,ll>> a;
    for(ll i=0;i<n;i++){
        string s;
        ll p;
        cin>>s>>p;
        a.push_back((s,-p,i+1));
    }
    sort(all(a));
    
    rep(i,n){
        cout< <get<2>(a[i]) <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: no matching function for call to 'std::vector<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >::push_back(long long int)'
   24 |         a.push_back((s,-p,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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>; _Alloc = std::allocator<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >; value_type = std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>]'
 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 'long long int' to 'const std::vector<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >::value_type&' {aka 'const std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>&'}
 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<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>; _Alloc = std::allocator<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >; value_type = std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'long long int' to 'std::vector<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >::value_type&&' {aka 'std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
a.cc:29:15: error: expected primary-expression before '<' token
   29 |         cout< <get<2>(a[i]) <<endl;
      |               ^
a.cc:29:29: error: invalid operands of types 'std::__tuple_element_t<2, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long int, long long int> >' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   29 |         cout< <get<2>(a[i]) <<endl;
      |                ~~~~~~~~~~~~~^~~~~~