Language: C++

[10:14 PM, 1/18/2020] Hardeep VVS: #include<bits/stdc++.h>
using namespace std;

bool comp(pair<int,int>a,pair<int,int>b){
	return a.second<b.second;
}

int main()
{
	int n;
	cin>>n;

	pair<int,int>p[n];

	for (int i=0;i<n;i++){
		int a,b;
		cin>>a>>b;

		p[i].first = a-b;
		p[i].second = a+b;

	}

	sort(p,p+n,comp);
	int curr=INT_MIN,ans=0;
	for (int i=0;i<n;i++){
		if (curr<=p[i].first)
				ans++,curr=p[i].second;

	}
	cout<<ans<<'\n';

}

Compiler output:
a.cc:1:36: error: stray '#' in program
    1 | [10:14 PM, 1/18/2020] Hardeep VVS: #include<bits/stdc++.h>
      |                                    ^
a.cc:1:1: error: expected unqualified-id before '[' token
    1 | [10:14 PM, 1/18/2020] Hardeep VVS: #include<bits/stdc++.h>
      | ^
a.cc:4:11: error: 'pair' was not declared in this scope
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |           ^~~~
a.cc:4:16: error: expected primary-expression before 'int'
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                ^~~
a.cc:4:20: error: expected primary-expression before 'int'
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                    ^~~
a.cc:4:26: error: 'pair' was not declared in this scope
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                          ^~~~
a.cc:4:31: error: expected primary-expression before 'int'
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                               ^~~
a.cc:4:35: error: expected primary-expression before 'int'
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                                   ^~~
a.cc:4:40: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | bool comp(pair<int,int>a,pair<int,int>b){
      |                                        ^
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin>>n;
      |         ^~~
a.cc:13:9: error: 'pair' was not declared in this scope
   13 |         pair<int,int>p[n];
      |         ^~~~
a.cc:13:14: error: expected primary-expression before 'int'
   13 |         pair<int,int>p[n];
      |              ^~~
a.cc:19:17: error: 'p' was not declared in this scope
   19 |                 p[i].first = a-b;
      |                 ^
a.cc:24:14: error: 'p' was not declared in this scope
   24 |         sort(p,p+n,comp);
      |              ^
a.cc:24:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   24 |         sort(p,p+n,comp);
      |         ^~~~
      |         short
a.cc:25:18: error: 'INT_MIN' was not declared in this scope
   25 |         int curr=INT_MIN,ans=0;
      |                  ^~~~~~~
a.cc:1:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
  +++ |+#include <climits>
    1 | [10:14 PM, 1/18/2020] Hardeep VVS: #include<bits/stdc++.h>
a.cc:28:33: error: 'ans' was not declared in this scope
   28 |                                 ans++,curr=p[i].second;
      |                                 ^~~
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout<<ans<<'\n';
      |         ^~~~
a.cc:31:15: error: 'ans' was not declared in this scope
   31 |         cout<<ans<<'\n';
      |               ^~~