Language: C++

using namespace std;
 
int main()
{
   int n;
  cin>>n;
  
  
  vector<tuple<string,int,int>> list;
  for(int i=1;i<n;i++)
    {
        string s;
        int p;
    
        cin>>s>>p;
        p=-p;
    
        list[n]=make_tuple(s[i],t[i],i);
        
        a.push.back(tie(s,p,i));
  }
  
   sort(list.begin(),list.end());
  
  for(int i=0;i<n;i++)
  {
      cout<<get<2>(a[i])<<endl;
  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<tuple<string,int,int>> list;
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:9:10: error: 'tuple' was not declared in this scope
    9 |   vector<tuple<string,int,int>> list;
      |          ^~~~~
a.cc:1:1: note: 'std::tuple' is defined in header '<tuple>'; this is probably fixable by adding '#include <tuple>'
  +++ |+#include <tuple>
    1 | using namespace std;
a.cc:9:16: error: 'string' was not declared in this scope
    9 |   vector<tuple<string,int,int>> list;
      |                ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:9:23: error: expected primary-expression before 'int'
    9 |   vector<tuple<string,int,int>> list;
      |                       ^~~
a.cc:12:15: error: expected ';' before 's'
   12 |         string s;
      |               ^~
      |               ;
a.cc:15:14: error: 's' was not declared in this scope
   15 |         cin>>s>>p;
      |              ^
a.cc:18:9: error: 'list' was not declared in this scope
   18 |         list[n]=make_tuple(s[i],t[i],i);
      |         ^~~~
a.cc:1:1: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
  +++ |+#include <list>
    1 | using namespace std;
a.cc:18:33: error: 't' was not declared in this scope
   18 |         list[n]=make_tuple(s[i],t[i],i);
      |                                 ^
a.cc:18:17: error: 'make_tuple' was not declared in this scope
   18 |         list[n]=make_tuple(s[i],t[i],i);
      |                 ^~~~~~~~~~
a.cc:18:17: note: 'std::make_tuple' is defined in header '<tuple>'; this is probably fixable by adding '#include <tuple>'
a.cc:20:9: error: 'a' was not declared in this scope
   20 |         a.push.back(tie(s,p,i));
      |         ^
a.cc:20:21: error: 'tie' was not declared in this scope
   20 |         a.push.back(tie(s,p,i));
      |                     ^~~
a.cc:20:21: note: 'std::tie' is defined in header '<tuple>'; this is probably fixable by adding '#include <tuple>'
a.cc:23:9: error: 'list' was not declared in this scope
   23 |    sort(list.begin(),list.end());
      |         ^~~~
a.cc:23:9: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
a.cc:23:4: error: 'sort' was not declared in this scope; did you mean 'short'?
   23 |    sort(list.begin(),list.end());
      |    ^~~~
      |    short
a.cc:27:7: error: 'cout' was not declared in this scope
   27 |       cout<<get<2>(a[i])<<endl;
      |       ^~~~
a.cc:27:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:13: error: 'get' was not declared in this scope
   27 |       cout<<get<2>(a[i])<<endl;
      |             ^~~
a.cc:27:20: error: 'a' was not declared in this scope
   27 |       cout<<get<2>(a[i])<<endl;
      |                    ^
a.cc:27:27: error: 'endl' was not declared in this scope
   27 |       cout<<get<2>(a[i])<<endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;