Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
typedef pair<int, P> PP;
typedef pair<ll, LP> LPP;
 
int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};]

int N;
vector <P> red[100], blue[100];

int main()
{
    cin >> N;
    REP(i,N) cin >> red[i].first >> red[i].second;
    REP(i,N) cin >> blue[i].first >> blue[i].second;

    sort(red.begin(), red.end());
    sort(blue.begin(), blue.end());

    int ans = 0;
    bool check[100];
    REP(i,N)
    {
        REP(j,N - 1)
        {
            if(check[j]) continue;

            if(blue[i].first > red[i].first && blue[i].second > red[i].second)
            {
                ++ans;
                check[i] = true;
                break;
            }
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc:18:27: error: expected unqualified-id before ']' token
   18 | int dx[]={1, -1, 0, 0, 0};]
      |                           ^
a.cc: In function 'int main()':
a.cc:25:12: error: 'N' was not declared in this scope
   25 |     cin >> N;
      |            ^
a.cc:26:28: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   26 |     REP(i,N) cin >> red[i].first >> red[i].second;
      |                            ^~~~~
a.cc:26:44: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   26 |     REP(i,N) cin >> red[i].first >> red[i].second;
      |                                            ^~~~~~
a.cc:27:29: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   27 |     REP(i,N) cin >> blue[i].first >> blue[i].second;
      |                             ^~~~~
a.cc:27:46: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   27 |     REP(i,N) cin >> blue[i].first >> blue[i].second;
      |                                              ^~~~~~
a.cc:29:14: error: request for member 'begin' in 'red', which is of non-class type 'std::vector<std::pair<int, int> > [100]'
   29 |     sort(red.begin(), red.end());
      |              ^~~~~
a.cc:29:27: error: request for member 'end' in 'red', which is of non-class type 'std::vector<std::pair<int, int> > [100]'
   29 |     sort(red.begin(), red.end());
      |                           ^~~
a.cc:30:15: error: request for member 'begin' in 'blue', which is of non-class type 'std::vector<std::pair<int, int> > [100]'
   30 |     sort(blue.begin(), blue.end());
      |               ^~~~~
a.cc:30:29: error: request for member 'end' in 'blue', which is of non-class type 'std::vector<std::pair<int, int> > [100]'
   30 |     sort(blue.begin(), blue.end());
      |                             ^~~
a.cc:40:24: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   40 |             if(blue[i].first > red[i].first && blue[i].second > red[i].second)
      |                        ^~~~~
a.cc:40:39: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   40 |             if(blue[i].first > red[i].first && blue[i].second > red[i].second)
      |                                       ^~~~~
a.cc:40:56: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   40 |             if(blue[i].first > red[i].first && blue[i].second > red[i].second)
      |                                                        ^~~~~~
a.cc:40:72: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   40 |             if(blue[i].first > red[i].first && blue[i].second > red[i].second)
      |                                                                        ^~~~~~