Language: C++

#define debug_interval ','
#define dump_interval ' '
#define debug_toggle 1
//{
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define INT_MAX LLONG_MAX
#define INT_MIN LLONG_MIN
#define rep(i,n) for(int i=0;i<(n);i++)
#define rep1(i,n) for(int i=1;i<=(n);i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define fi first
#define se second
#define mp make_pair
#define rev reverse
#define dans dump(ans)
#define MOD 1000000007
#define amp(v,n) (v).count(n)?v[n]++:v[n]=1;
#define cni cin

//{
inline int toInt(string s){int v;istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x){ostringstream sout;sout<<x;return sout.str();}
template<class...A> inline void dump(){cout<<endl;}
template<class...A> inline void dump_rest() {cout<<endl;}
template<class T, class...A> inline void dump_rest(const T& first, const A&... rest){cout<<dump_interval<<first;dump_rest(rest...);}
template<class T,class...A> inline void dump(const T&first,const A&...rest){cout<<first;dump_rest(rest...);}
template<class...A> inline void debug(){cerr<<endl;}
template<class...A> inline void debug_rest() {cerr<<endl;}
template<class T, class...A> inline void debug_rest(const T& first, const A&... rest){cerr<<debug_interval<<first;debug_rest(rest...);}
template<class T,class...A> inline void debug(const T&first,const A&...rest){if(debug_toggle)cerr<<first,debug_rest(rest...);}
//}

typedef vector<int>vint;
typedef pair<int,int>pint;
typedef vector<pint>vpint;

template<typename A,typename B>inline void chmin(A &a,B b){if(a>b)a=b;}
template<typename A,typename B>inline void chmax(A &a,B b){if(a<b)a=b;}
template<int m>class mint{private:int i;public:mint() : i(0){}mint(int i): i((i%m+m)%m){}mint operator+(const mint& o){return o.i+i;}mint operator*(const mint& o){return o.i*i;}mint operator-(){return -i;}operator int() {return i;}};

//}

int n,l,r,ans=INT_MIN;
map<pint> li,ri;
priority_queue<pint,vector<pint>,greater<pint> > le;
priority_queue<int> re;
vector<pint> gomi;

main(){
    cin>>n;
    int a[3*n];
    rep(i,3*n)cin>>a[i];
    int rui[3*n+1];
    rep(i,3*n)rui[i+1]=a[i];
    rep(i,n){
        li.insert(mp(i,a[i]));
        le.push_back(mp(a[i],i));
    }
    for(int i=n;i<3*n;i++){
        ri.insert(mp(i,a[i]));
        re.push_back(mp(a[i],i));
    }
    l=rui[n]-rui[0];
    r=rui[3*n+1]-rui[n];
    for(int i=0;i<n;i++){
    }
}

Compiler output:
a.cc:8:9: warning: "INT_MAX" redefined
    8 | #define INT_MAX LLONG_MAX
      |         ^~~~~~~
In file included from /usr/include/c++/14/climits:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:38,
                 from a.cc:5:
/usr/lib/gcc/x86_64-linux-gnu/14/include/limits.h:120:9: note: this is the location of the previous definition
  120 | #define INT_MAX __INT_MAX__
      |         ^~~~~~~
a.cc:9:9: warning: "INT_MIN" redefined
    9 | #define INT_MIN LLONG_MIN
      |         ^~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/limits.h:118:9: note: this is the location of the previous definition
  118 | #define INT_MIN (-INT_MAX - 1)
      |         ^~~~~~~
a.cc:48:9: error: wrong number of template arguments (1, should be at least 2)
   48 | map<pint> li,ri;
      |         ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:53:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   53 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:60:12: error: request for member 'insert' in 'li', which is of non-class type 'int'
   60 |         li.insert(mp(i,a[i]));
      |            ^~~~~~
a.cc:61:12: error: 'class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >' has no member named 'push_back'
   61 |         le.push_back(mp(a[i],i));
      |            ^~~~~~~~~
a.cc:64:12: error: request for member 'insert' in 'ri', which is of non-class type 'int'
   64 |         ri.insert(mp(i,a[i]));
      |            ^~~~~~
a.cc:65:12: error: 'class std::priority_queue<long long int>' has no member named 'push_back'
   65 |         re.push_back(mp(a[i],i));
      |            ^~~~~~~~~