Language: C++

#include "bits/stdc++.h"

using namespace std;

using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using vvvll = vector<vector<vector<ll>>>;
using vvvvll = vector<vector<vector<vector<ll>>>>;
using pl4 = pair<ll,ll>;
using str = string;
using vpl4 = vector<pair<ll,ll>>;

#define sz size()
#define be begin()
#define en end()
#define fi first
#define se second
#define pb push_back
#define mp make_pair

#define llin(x) ll(x);cin >> (x);
#define stin(x) str(x);cin >> (x);
#define vllin(x,n) vll(x)(n);FOR(i,0,n-1){cin >> (x)[i];}
#define vllin2(a,b,n) vll(a)(n);vll(b)(n);FOR(i,0,n-1){cin >> (a)[i] >> (b)[i];}
#define vllin3(a,b,c,n) vll(a)(n);vll(b)(n);vll(c)(n);FOR(i,0,n-1){cin >> (a)[i] >> (b)[i] >> (c)[i];}
#define vlling(x,n) (x).assign(n,0);FOR(i,0,n-1){cin >> (x)[i];}
#define vlling2(a,b,n) (a).assign(n,0);(b).assign(n,0);FOR(i,0,n-1){cin >> (a)[i] >> (b)[i];}
#define vlling3(a,b,c,n) (a).assign(n,0);(b).assign(n,0);(c).assign(n,0);FOR(i,0,n-1){cin >> (a)[i] >> (b)[i] >> (c)[i];}
#define vpl4in(x,n) vpl4(x)((n),mp(0,0));FOR(i,0,n-1){cin >> x[i].fi >> x[i].se;}
#define FOR(i,a,b) for(ll i=a;i<=b;i++)
#define rFOR(i,b,a) for(ll i=a;i>=b;i--)
#define SORT(x) sort(x.be,x.en)
#define rSORT(x) sort(x.rbegin(),x.rend())
#define say(x) cout << (x);
#define sal(x) cout << (x) << endl;
#define says(x) cout << (x) << (' ');
#define sas cout << (' ');
#define sayR(x) cout << fixed << setprecision(10) << (x);
#define salR(x) cout << fixed << setprecision(10) << (x) << endl;
#define yn(a) cout << ((a) ? "yes" : "no") << endl;
#define Yn(a) cout << ((a) ? "Yes" : "No") << endl;
#define YN(a) cout << ((a) ? "YES" : "NO") << endl;
#define Imp(a) cout << ((a) ? "Possible" : "Impossible") << endl;
#define IMP(a) cout << ((a) ? "POSSIBLE" : "IMPOSSIBLE") << endl;

ll MOD = 1000000007;

signed main()
{
    llin(n);
    vll xy(2);
    char d;
    vll smi(2,400000001);
    vll sma(2,-400000001);
    vll mi(4,400000001);
    vll ma(4,-400000001);
    map<char,ll> dd;
    dd['D']=0;dd['U']=1;dd['L']=2;dd['R']=3;
    FOR(i,0,n-1){
        cin >>xy[0]>>xy[1]>>d;
        xy[0]=xy[0]*2;
        xy[1]=xy[1]*2;
        smi[dd[d]/2]=min(smi[dd[d]/2],xy[dd[d]/2]);
        sma[dd[d]/2]=max(sma[dd[d]/2],xy[dd[d]/2]);
        mi[dd[d]]=min(mi[dd[d]],xy[1-dd[d]/2]);
        ma[dd[d]]=max(ma[dd[d]],xy[1-dd[d]/2]);
    }
    vll t(1,0);
    ll e[]={-1,1,-1,1};
    FOR(i,0,3){
        if(smi[1-i/2]<200000001&mi[i]<200000001) t.pb(e[i]*(smi[1-i/2]-mi[i]));
        if(sma[1-i/2]>-200000001&ma[i]>-200000001) t.pb(e[i]*(sma[1-i/2]-ma[i]));
    }
    FOR(i,0,1){
        if(mi[i*2]<200000001&mi[i*2+1]<200000001) t.pb((mi[i*2]-mi[i*2+1])/2);
        if(ma[i*2]>-200000001&ma[i*2+1]>-200000001) t.pb((ma[i*2]-ma[i*2+1])/2);
    }
    ll s=40000000000000000;
    for(auto l:t){
        if(l>=0){
            if((max(sma[0],max(ma[2]-l,ma[3]+l))-min(smi[0],min(mi[2]-l,mi[3]+l))*(max(sma[1],max(ma[0]-l,ma[1]+l))-min(smi[1],min(mi[0]-l,mi[1]+l)))>0){
                s=min(s,(max(sma[0],max(ma[2]-l,ma[3]+l))-min(smi[0],min(mi[2]-l,mi[3]+l)))*(max(sma[1],max(ma[0]-l,ma[1]+l))-min(smi[1],min(mi[0]-l,mi[1]+l))));
            }
        }
    }
    sal(double(s)/4.0)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:82:153: error: expected ')' before '{' token
   82 |             if((max(sma[0],max(ma[2]-l,ma[3]+l))-min(smi[0],min(mi[2]-l,mi[3]+l))*(max(sma[1],max(ma[0]-l,ma[1]+l))-min(smi[1],min(mi[0]-l,mi[1]+l)))>0){
      |               ~                                                                                                                                         ^
      |                                                                                                                                                         )
a.cc:85:9: error: expected primary-expression before '}' token
   85 |         }
      |         ^