Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,M;cin>>N>>M;
  vector<tuple<int,long long,int>>A(M);//県の番号、市の名前、順番
  vector<tuple<int,int,long long>>B(M);//順番、県の番号、市の番号
  for(int X=0;X<M;X++){
    long long C,D;cin>>C>>D;
    A[X]=make.tuple(C,D,X+1);
  }
  sort(A.begin(),B.end());
  long long H=92454;
  long long M;
  for(int X=0;X<M;X++){
    long long E,F,G,I;
    tie(E,F,G)=A[X];
    if(H!=E){
      M=1;
      I=M;
    }
    else{
      M++;
      I=M;
    }
    H=E;
    B[X]=make.tuple(G,E,I);
  }
  sort(B.begin(),B.end());
  for(int X=0;X<M;X++){
    long long J,K,L;
    B[X]=tie(J,K,L);
    print("%06d%06d/n",K,L);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'make' was not declared in this scope
   10 |     A[X]=make.tuple(C,D,X+1);
      |          ^~~~
a.cc:12:7: error: no matching function for call to 'sort(std::vector<std::tuple<int, long long int, int> >::iterator, std::vector<std::tuple<int, int, long long int> >::iterator)'
   12 |   sort(A.begin(),B.end());
      |   ~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   template argument deduction/substitution failed:
a.cc:12:7: note:   deduced conflicting types for parameter '_RAIter' ('__gnu_cxx::__normal_iterator<std::tuple<int, long long int, int>*, std::vector<std::tuple<int, long long int, int> > >' and '__gnu_cxx::__normal_iterator<std::tuple<int, int, long long int>*, std::vector<std::tuple<int, int, long long int> > >')
   12 |   sort(A.begin(),B.end());
      |   ~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
a.cc:14:13: error: conflicting declaration 'long long int M'
   14 |   long long M;
      |             ^
a.cc:5:9: note: previous declaration as 'int M'
    5 |   int N,M;cin>>N>>M;
      |         ^
a.cc:27:10: error: 'make' was not declared in this scope
   27 |     B[X]=make.tuple(G,E,I);
      |          ^~~~
a.cc:33:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   33 |     print("%06d%06d/n",K,L);
      |     ^~~~~
      |     rint