Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[55],b[55],c[55],d[55],tc[55];
int  main(){
	int n,m,f=0;
	pair<int,int> min;
	min.first=10^8;
	min.second=1;
	cin>>n>>m;
	for (int i=0;i<n;i++) cin>>a[i]>>b[i];
	for (int i=0;i<m;i++) cin>>c[i]>>d[i];
	/**/ 
	for (int i=0;i<n;i++){
	min.first=100000000;
	//cout<<"MIN:"<<min.first;
	min.second=1;
	/**/ 
	for (int j=0;j<m;j++){
		for (int k=0;k<f;k++) {
			if (j==tc[k]) {j++;k=0;}
		}
		if (j==m) break;
		
		int y=abs(a[i]-c[j])+abs(b[i]-d[j]);
		//cout<<i<<" "<<j<<" "<<y<<"  "; 
		if (y<min.first)
		   {min.second=j+1;min.first=y;/*cout<<min.first<<" FIRST "<<min.second<<" SECOND ";*/} 
	    //cout<<endl;
	}
	cout/*<<endl<<"ANS:"*/<<min.second<<endl;
	tc[f]=min.second-1;
	f++;
	}
	/**/ 
	return 0;
} #include<bits/stdc++.h>
using namespace std;
int a[55],b[55],c[55],d[55],tc[55];
int  main(){
	int n,m,f=0;
	pair<int,int> min;
	min.first=10^8;
	min.second=1;
	cin>>n>>m;
	for (int i=0;i<n;i++) cin>>a[i]>>b[i];
	for (int i=0;i<m;i++) cin>>c[i]>>d[i];
	/**/ 
	for (int i=0;i<n;i++){
	min.first=10000000000;
	//cout<<"MIN:"<<min.first;
	min.second=1;
	/**/ 
	for (int j=0;j<m;j++){
		for (int k=0;k<f;k++) {
			if (j==tc[k]) {j++;k=0;}
		}
		if (j==m) break;
		
		int y=abs(a[i]-c[j])+abs(b[i]-d[j]);
		//cout<<i<<" "<<j<<" "<<y<<"  "; 
		if (y<min.first)
		   {min.second=j+1;min.first=y;/*cout<<min.first<<" FIRST "<<min.second<<" SECOND ";*/} 
	    //cout<<endl;
	}
	cout/*<<endl<<"ANS:"*/<<min.second<<endl;
	tc[f]=min.second-1;
	f++;
	}
	/**/ 
	return 0;
} 

Compiler output:
a.cc:36:3: error: stray '#' in program
   36 | } #include<bits/stdc++.h>
      |   ^
a.cc: In function 'int main()':
a.cc:7:21: warning: result of '10^8' is 2; did you mean '1e8'? [-Wxor-used-as-pow]
    7 |         min.first=10^8;
      |                     ^
      |                   ---
      |                   1e
a.cc:7:19: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    7 |         min.first=10^8;
      |                   ^~
      |                   0xa
a.cc: At global scope:
a.cc:36:4: error: 'include' does not name a type
   36 | } #include<bits/stdc++.h>
      |    ^~~~~~~
a.cc:38:5: error: redefinition of 'int a [55]'
   38 | int a[55],b[55],c[55],d[55],tc[55];
      |     ^
a.cc:3:5: note: 'int a [55]' previously declared here
    3 | int a[55],b[55],c[55],d[55],tc[55];
      |     ^
a.cc:38:11: error: redefinition of 'int b [55]'
   38 | int a[55],b[55],c[55],d[55],tc[55];
      |           ^
a.cc:3:11: note: 'int b [55]' previously declared here
    3 | int a[55],b[55],c[55],d[55],tc[55];
      |           ^
a.cc:38:17: error: redefinition of 'int c [55]'
   38 | int a[55],b[55],c[55],d[55],tc[55];
      |                 ^
a.cc:3:17: note: 'int c [55]' previously declared here
    3 | int a[55],b[55],c[55],d[55],tc[55];
      |                 ^
a.cc:38:23: error: redefinition of 'int d [55]'
   38 | int a[55],b[55],c[55],d[55],tc[55];
      |                       ^
a.cc:3:23: note: 'int d [55]' previously declared here
    3 | int a[55],b[55],c[55],d[55],tc[55];
      |                       ^
a.cc:38:29: error: redefinition of 'int tc [55]'
   38 | int a[55],b[55],c[55],d[55],tc[55];
      |                             ^~
a.cc:3:29: note: 'int tc [55]' previously declared here
    3 | int a[55],b[55],c[55],d[55],tc[55];
      |                             ^~
a.cc:39:6: error: redefinition of 'int main()'
   39 | int  main(){
      |      ^~~~
a.cc:4:6: note: 'int main()' previously defined here
    4 | int  main(){
      |      ^~~~
a.cc: In function 'int main()':
a.cc:42:21: warning: result of '10^8' is 2; did you mean '1e8'? [-Wxor-used-as-pow]
   42 |         min.first=10^8;
      |                     ^
      |                   ---
      |                   1e
a.cc:42:19: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
   42 |         min.first=10^8;
      |                   ^~
      |                   0xa
a.cc:49:19: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000' to '1410065408' [-Woverflow]
   49 |         min.first=10000000000;
      |                   ^~~~~~~~~~~