Language: C++

#include <cstdio>
#include<cmath>
#include<algorithm>
#include<vector>
#include<queue>
#define MAX_H 1000000000 //10^9
#define MAX_W 1000000000 //10^9
#define MAX_N 100000 //10^5
#define mp make_pair
#define INF 1001001001
#define LLINF 1001001001001001001
#define llint long long int
#define ppp pair<int, pair<int,int> >
using namespace std;
#define rep(i,n) for(int i=0; i<n ; i++)
using namespace std;
llint homesx[MAX_N];
llint homesy[MAX_N];
llint homesxs[MAX_N];
llint homesys[MAX_N];
int main(void){
    // Your code here!
    llint W,H,N;
    scanf("%lld %lld %lld",&W,&H,&N);
    rep(i,N){
        llint X,Y;
        scanf("%lld %lld",&X,&Y);X--;Y--;
        homesx[i]=X;homesy[i]=Y;
        homesxs[i]=X;homesys[i]=Y;
    }
    
    //X座標について求める
    if(N==1){printf("%lld\n%lld %lld",0,homesx[0],homesy[0]);return 0;}
    llint ans=LLINF;
    llint zans[2]={-1,-1};
    sort(&homesxs[0], &homesxs[N]);
    sort(&homesys[0], &homesys[N]);
    llint　Center1=(llint)(N/2)-1;
    llint　Center2=(llint)(N/2);
    
    llint sum=0;llint maxl=0;
    rep(i,N){
        llint leng=abs(homesx[i]-homesxs[Center1]) + abs(homesy[i]-homesys[Center1]);
        sum+=2*leng;
        maxl=max(leng,maxl);
    }
    if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center1];zans[1]=homesys[Center1];}
    sum=0;maxl=0;
    rep(i,N){
        llint leng=abs(homesx[i]-homesxs[Center1]) + abs(homesy[i]-homesys[Center2]);
        sum+=2*leng;
        maxl=max(leng,maxl);
    }
     if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center1];zans[1]=homesys[Center2];}
    sum=0;maxl=0;
    rep(i,N){
        llint leng=abs(homesx[i]-homesxs[Center2]) + abs(homesy[i]-homesys[Center1]);
        sum+=2*leng;
        maxl=max(leng,maxl);
    }
     if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center2];zans[1]=homesys[Center1];}
    sum=0;maxl=0;
    rep(i,N){
        llint leng=abs(homesx[i]-homesxs[Center2]) + abs(homesy[i]-homesys[Center2]);
        sum+=2*leng;
        maxl=max(leng,maxl);
    }
     if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center2];zans[1]=homesys[Center2];}
    printf("%lld\n%lld %lld\n",ans,zans[0]+1,zans[1]+1);
}



Compiler output:
a.cc:38:5: error: extended character 　 is not valid in an identifier
   38 |     llint　Center1=(llint)(N/2)-1;
      |     ^
a.cc:39:5: error: extended character 　 is not valid in an identifier
   39 |     llint　Center2=(llint)(N/2);
      |     ^
a.cc: In function 'int main()':
a.cc:38:5: error: 'llint\U00003000Center1' was not declared in this scope
   38 |     llint　Center1=(llint)(N/2)-1;
      |     ^~~~~~~~~~~~~~
a.cc:39:5: error: 'llint\U00003000Center2' was not declared in this scope
   39 |     llint　Center2=(llint)(N/2);
      |     ^~~~~~~~~~~~~~
a.cc:43:42: error: 'Center1' was not declared in this scope
   43 |         llint leng=abs(homesx[i]-homesxs[Center1]) + abs(homesy[i]-homesys[Center1]);
      |                                          ^~~~~~~
a.cc:47:51: error: 'Center1' was not declared in this scope
   47 |     if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center1];zans[1]=homesys[Center1];}
      |                                                   ^~~~~~~
a.cc:50:42: error: 'Center1' was not declared in this scope
   50 |         llint leng=abs(homesx[i]-homesxs[Center1]) + abs(homesy[i]-homesys[Center2]);
      |                                          ^~~~~~~
a.cc:50:76: error: 'Center2' was not declared in this scope
   50 |         llint leng=abs(homesx[i]-homesxs[Center1]) + abs(homesy[i]-homesys[Center2]);
      |                                                                            ^~~~~~~
a.cc:54:52: error: 'Center1' was not declared in this scope
   54 |      if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center1];zans[1]=homesys[Center2];}
      |                                                    ^~~~~~~
a.cc:54:77: error: 'Center2' was not declared in this scope
   54 |      if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center1];zans[1]=homesys[Center2];}
      |                                                                             ^~~~~~~
a.cc:57:42: error: 'Center2' was not declared in this scope
   57 |         llint leng=abs(homesx[i]-homesxs[Center2]) + abs(homesy[i]-homesys[Center1]);
      |                                          ^~~~~~~
a.cc:57:76: error: 'Center1' was not declared in this scope
   57 |         llint leng=abs(homesx[i]-homesxs[Center2]) + abs(homesy[i]-homesys[Center1]);
      |                                                                            ^~~~~~~
a.cc:61:52: error: 'Center2' was not declared in this scope
   61 |      if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center2];zans[1]=homesys[Center1];}
      |                                                    ^~~~~~~
a.cc:61:77: error: 'Center1' was not declared in this scope
   61 |      if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center2];zans[1]=homesys[Center1];}
      |                                                                             ^~~~~~~
a.cc:64:42: error: 'Center2' was not declared in this scope
   64 |         llint leng=abs(homesx[i]-homesxs[Center2]) + abs(homesy[i]-homesys[Center2]);
      |                                          ^~~~~~~
a.cc:68:52: error: 'Center2' was not declared in this scope
   68 |      if(ans>sum-maxl){ans=sum-maxl;zans[0]=homesxs[Center2];zans[1]=homesys[Center2];}
      |                                                    ^~~~~~~