Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
using P = pair<ll, ll>;

#define rep(i, n) for(int i=0;i<(int)n;++i)
typedef long long ll;

int main()
{
    int N;
    cin >> N;
    vector<P> robots(N);
    rep(i, N) cin >> robots[i].first >> robots[i].second;

    sort(robots.begin(), robots.end());

    ll x = robots[0].first, l = robots[0].second, num_remove=0;
    for(int i=1;i<N;++i)
    {
        if(x + l > robots[i].first - robots[i].second){
            num_remove++;
        }
        else{
            x = robots[i].first;
            l = robots[i].second;
        }
    }
    cout << N - num_remove << endl;
}


Compiler output:
a.cc:6:16: error: 'll' was not declared in this scope
    6 | using P = pair<ll, ll>;
      |                ^~
a.cc:6:20: error: 'll' was not declared in this scope
    6 | using P = pair<ll, ll>;
      |                    ^~
a.cc:6:22: error: template argument 1 is invalid
    6 | using P = pair<ll, ll>;
      |                      ^
a.cc:6:22: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:15:12: error: 'P' was not declared in this scope
   15 |     vector<P> robots(N);
      |            ^
a.cc:15:13: error: template argument 1 is invalid
   15 |     vector<P> robots(N);
      |             ^
a.cc:15:13: error: template argument 2 is invalid
a.cc:16:28: error: invalid types 'int[int]' for array subscript
   16 |     rep(i, N) cin >> robots[i].first >> robots[i].second;
      |                            ^
a.cc:16:47: error: invalid types 'int[int]' for array subscript
   16 |     rep(i, N) cin >> robots[i].first >> robots[i].second;
      |                                               ^
a.cc:18:17: error: request for member 'begin' in 'robots', which is of non-class type 'int'
   18 |     sort(robots.begin(), robots.end());
      |                 ^~~~~
a.cc:18:33: error: request for member 'end' in 'robots', which is of non-class type 'int'
   18 |     sort(robots.begin(), robots.end());
      |                                 ^~~
a.cc:20:18: error: invalid types 'int[int]' for array subscript
   20 |     ll x = robots[0].first, l = robots[0].second, num_remove=0;
      |                  ^
a.cc:23:16: error: 'l' was not declared in this scope
   23 |         if(x + l > robots[i].first - robots[i].second){
      |                ^
a.cc:23:26: error: invalid types 'int[int]' for array subscript
   23 |         if(x + l > robots[i].first - robots[i].second){
      |                          ^
a.cc:23:44: error: invalid types 'int[int]' for array subscript
   23 |         if(x + l > robots[i].first - robots[i].second){
      |                                            ^
a.cc:24:13: error: 'num_remove' was not declared in this scope; did you mean 'remove'?
   24 |             num_remove++;
      |             ^~~~~~~~~~
      |             remove
a.cc:27:23: error: invalid types 'int[int]' for array subscript
   27 |             x = robots[i].first;
      |                       ^
a.cc:28:23: error: invalid types 'int[int]' for array subscript
   28 |             l = robots[i].second;
      |                       ^
a.cc:31:17: error: 'num_remove' was not declared in this scope; did you mean 'remove'?
   31 |     cout << N - num_remove << endl;
      |                 ^~~~~~~~~~
      |                 remove