Language: C++

#include <bits/stdc++.h>
const int N = 2e5 + 7;
using pi = pair<int, int>;
pi a[N];
auto main() -> int {
    int n; cin >> n;
    for (int i = 1; i <= n ; ++i) cin >> a[i].first >> a[i].second;

    vector<int> mi, ma;
    for (int i = 1; i <= n; ++i) {
        mi.emplace_back(a[i].first - a[i].second);
        ma.emplace_back(a[i].first + a[i].second);
    }
    sort(mi.begin(), mi.end());
    sort(ma.begin(), ma.end());
    cout << max(mi[n-1] - mi[0], ma[n-1] - ma[0]) << '\n';
}

Compiler output:
a.cc:3:12: error: 'pair' does not name a type
    3 | using pi = pair<int, int>;
      |            ^~~~
a.cc:4:1: error: 'pi' does not name a type
    4 | pi a[N];
      | ^~
a.cc: In function 'int main()':
a.cc:6:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     int n; cin >> n;
      |            ^~~
      |            std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:42: error: 'a' was not declared in this scope
    7 |     for (int i = 1; i <= n ; ++i) cin >> a[i].first >> a[i].second;
      |                                          ^
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<int> mi, ma;
      |     ^~~~~~
a.cc:9:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:9:12: error: expected primary-expression before 'int'
    9 |     vector<int> mi, ma;
      |            ^~~
a.cc:11:9: error: 'mi' was not declared in this scope; did you mean 'i'?
   11 |         mi.emplace_back(a[i].first - a[i].second);
      |         ^~
      |         i
a.cc:11:25: error: 'a' was not declared in this scope
   11 |         mi.emplace_back(a[i].first - a[i].second);
      |                         ^
a.cc:12:9: error: 'ma' was not declared in this scope; did you mean 'fma'?
   12 |         ma.emplace_back(a[i].first + a[i].second);
      |         ^~
      |         fma
a.cc:14:10: error: 'mi' was not declared in this scope
   14 |     sort(mi.begin(), mi.end());
      |          ^~
a.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   14 |     sort(mi.begin(), mi.end());
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:15:10: error: 'ma' was not declared in this scope; did you mean 'fma'?
   15 |     sort(ma.begin(), ma.end());
      |          ^~
      |          fma
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << max(mi[n-1] - mi[0], ma[n-1] - ma[0]) << '\n';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
   16 |     cout << max(mi[n-1] - mi[0], ma[n-1] - ma[0]) << '\n';
      |             ^~~
      |             std::max
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~