Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  ll n,m;
  cin >> n >> m;
  vector<vector<ll>>a(m,vector<ll>(2));
  for(int i=0; i<m; i++){
   cin >> a[i][0] >> a[i][1]; 
  }
  
  sort(a.begin(),a.end());
  
  ll count=1;
  for(int i=0; i<m; i++){
    if(i>0 && a[i-1][0]!=a[i][0]) count=1;
    for(int j=5; j>=0; j--){
     int keta1 = a[i][0]/pow(10,j);
     int keta2 = a[i][0]/pow(10,j+1);
     cout << keta1-keta2*10;
    }
    
    for(int j=5; j>=0; j--){
     int keta1 = count/pow(10,j);
     int keta2 = count/pow(10,j+1);
     cout << keta1-keta2*10;
    }
    
    cout << endl;
    
    count++;
    
  }
    
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll n,m;
      |   ^~
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   cin >> n >> m;
      |          ^
      |          yn
a.cc:7:15: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |   cin >> n >> m;
      |               ^
      |               tm
a.cc:8:17: error: template argument 2 is invalid
    8 |   vector<vector<ll>>a(m,vector<ll>(2));
      |                 ^~
a.cc:8:19: error: template argument 1 is invalid
    8 |   vector<vector<ll>>a(m,vector<ll>(2));
      |                   ^~
a.cc:8:19: error: template argument 2 is invalid
a.cc:8:34: error: template argument 2 is invalid
    8 |   vector<vector<ll>>a(m,vector<ll>(2));
      |                                  ^
a.cc:8:38: error: expression list treated as compound expression in initializer [-fpermissive]
    8 |   vector<vector<ll>>a(m,vector<ll>(2));
      |                                      ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |    cin >> a[i][0] >> a[i][1];
      |            ^
a.cc:10:23: error: invalid types 'int[int]' for array subscript
   10 |    cin >> a[i][0] >> a[i][1];
      |                       ^
a.cc:13:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
   13 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:13:20: error: request for member 'end' in 'a', which is of non-class type 'int'
   13 |   sort(a.begin(),a.end());
      |                    ^~~
a.cc:15:5: error: expected ';' before 'count'
   15 |   ll count=1;
      |     ^~~~~~
      |     ;
a.cc:17:16: error: invalid types 'int[int]' for array subscript
   17 |     if(i>0 && a[i-1][0]!=a[i][0]) count=1;
      |                ^
a.cc:17:27: error: invalid types 'int[int]' for array subscript
   17 |     if(i>0 && a[i-1][0]!=a[i][0]) count=1;
      |                           ^
a.cc:17:41: error: overloaded function with no contextual type information
   17 |     if(i>0 && a[i-1][0]!=a[i][0]) count=1;
      |                                         ^
a.cc:19:19: error: invalid types 'int[int]' for array subscript
   19 |      int keta1 = a[i][0]/pow(10,j);
      |                   ^
a.cc:20:19: error: invalid types 'int[int]' for array subscript
   20 |      int keta2 = a[i][0]/pow(10,j+1);
      |                   ^
a.cc:25:23: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator/'
   25 |      int keta1 = count/pow(10,j);
      |                  ~~~~~^~~~~~~~~~
a.cc:26:23: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator/'
   26 |      int keta2 = count/pow(10,j+1);
      |                  ~~~~~^~~~~~~~~~~~
a.cc:32:10: error: no post-increment operator for type
   32 |     count++;
      |          ^~