Language: C++

#include
#include
#include
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
int N,M;
int P[100000],Y[100000]; vector<int> yd[100001];
int main () {
<cstdio > <vector > <algorithm >
scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include
      |         ^
a.cc:3:9: error: #include expects "FILENAME" or <FILENAME>
    3 | #include
      |         ^
a.cc:8:26: error: 'vector' does not name a type
    8 | int P[100000],Y[100000]; vector<int> yd[100001];
      |                          ^~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      | ^
a.cc:10:2: error: 'cstdio' was not declared in this scope
   10 | <cstdio > <vector > <algorithm >
      |  ^~~~~~
a.cc:10:11: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      |           ^
a.cc:10:12: error: 'vector' was not declared in this scope
   10 | <cstdio > <vector > <algorithm >
      |            ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include
a.cc:10:21: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      |                     ^
a.cc:10:22: error: 'algorithm' was not declared in this scope
   10 | <cstdio > <vector > <algorithm >
      |                      ^~~~~~~~~
a.cc:11:1: error: 'scanf' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      | ^~~~~
a.cc:11:56: error: 'yd' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                        ^~
a.cc:11:95: error: 'yd' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                                                               ^~
a.cc:11:90: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                                                          ^~~~
      |                                                                                          short
a.cc:11:187: error: 'yd' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                                                                                                                                                           ^~
a.cc:11:175: error: 'lower_bound' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                                                                                                                                               ^~~~~~~~~~~
a.cc:11:135: error: 'printf' was not declared in this scope
   11 | scanf("%d%d",&N,&M); rep(i,M)scanf("%d%d",&P[i],&Y[i]),yd[P[i]].push_back(Y[i]); rep(i,N)sort(yd[i+1].begin(),yd[i+1].end()); rep(i,M)printf("%012lld\n",ll(P[i])*1000000+int(lower_bound(yd[P[i]]. begin(),yd[P[i]].end(),Y[i])-yd[P[i]].begin())+1);
      |                                                                                                                                       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include