Language: C++

#include <stdio.h>
#include <algorithm>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;++i)
#define REP(i,b) FOR(i,0,b)
int a[100000];
int b[100000];
int amn=INT_MAX,amx=INT_MIN,bmn=INT_MAX,bmx=INT_MIN,n,c,d,ow=INT_MIN,oh = INT_MIN;
int main(){
	scanf("%d",&n);
	REP(i,n){
		scanf("%d %d",&c,&d);
		a[i] = c+d;
		b[i] = c-d;
		amn = min(amn,a[i]);
		amx = max(amx,a[i]);
		bmn = min(bmn,b[i]);
		bmx = max(bmx,b[i]);
	}
	REP(i,n){
		ow = max(ow,min(max(a[i]-amn,b[i]-bmn),max(amx-a[i],bmx-b[i])));
		oh = max(oh,min(max(a[i]-amn,bmx-b[i]),max(amx-a[i],b[i]-bmn)));
	}
	printf("%d\n",min(ow,oh));
}

Compiler output:
a.cc:8:9: error: 'INT_MAX' was not declared in this scope
    8 | int amn=INT_MAX,amx=INT_MIN,bmn=INT_MAX,bmx=INT_MIN,n,c,d,ow=INT_MIN,oh = INT_MIN;
      |         ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <algorithm>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc: In function 'int main()':
a.cc:10:21: error: 'n' was not declared in this scope
   10 |         scanf("%d",&n);
      |                     ^
a.cc:12:32: error: 'c' was not declared in this scope
   12 |                 scanf("%d %d",&c,&d);
      |                                ^
a.cc:12:35: error: 'd' was not declared in this scope
   12 |                 scanf("%d %d",&c,&d);
      |                                   ^
a.cc:16:17: error: 'amx' was not declared in this scope; did you mean 'amn'?
   16 |                 amx = max(amx,a[i]);
      |                 ^~~
      |                 amn
a.cc:17:17: error: 'bmn' was not declared in this scope; did you mean 'amn'?
   17 |                 bmn = min(bmn,b[i]);
      |                 ^~~
      |                 amn
a.cc:18:17: error: 'bmx' was not declared in this scope
   18 |                 bmx = max(bmx,b[i]);
      |                 ^~~
a.cc:21:17: error: 'ow' was not declared in this scope
   21 |                 ow = max(ow,min(max(a[i]-amn,b[i]-bmn),max(amx-a[i],bmx-b[i])));
      |                 ^~
a.cc:21:51: error: 'bmn' was not declared in this scope; did you mean 'amn'?
   21 |                 ow = max(ow,min(max(a[i]-amn,b[i]-bmn),max(amx-a[i],bmx-b[i])));
      |                                                   ^~~
      |                                                   amn
a.cc:21:60: error: 'amx' was not declared in this scope; did you mean 'amn'?
   21 |                 ow = max(ow,min(max(a[i]-amn,b[i]-bmn),max(amx-a[i],bmx-b[i])));
      |                                                            ^~~
      |                                                            amn
a.cc:21:69: error: 'bmx' was not declared in this scope
   21 |                 ow = max(ow,min(max(a[i]-amn,b[i]-bmn),max(amx-a[i],bmx-b[i])));
      |                                                                     ^~~
a.cc:22:17: error: 'oh' was not declared in this scope
   22 |                 oh = max(oh,min(max(a[i]-amn,bmx-b[i]),max(amx-a[i],b[i]-bmn)));
      |                 ^~
a.cc:24:27: error: 'ow' was not declared in this scope
   24 |         printf("%d\n",min(ow,oh));
      |                           ^~
a.cc:24:30: error: 'oh' was not declared in this scope
   24 |         printf("%d\n",min(ow,oh));
      |                              ^~