Language: C++

#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define f(i,x,n) for(int i=x;i<n;i++)
#define all(c) c.begin(),c.end()
#define debug(x) cerr << (#x) << "is "<< x << "\n"
using ll = long long;
using pii = pair<int,int>;
const int MOD = 1e9+7, N = 1e5 + 10;
 
void test();
 
int32_t main(){
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	int tt = 1;
	// cin >> tt;
	f(i,0,tt)
		test();
	return 0;
}
 
void test(){
	int n;
	cin >> n;
	vector<pll> a(n);
	for(auto &i : a){
		cin >> i.F >> i.S;
	}
	// cout << a.size() << "\n";
	sort(all(a));
	reverse(all(a));
	set<pll> s;
	f(i,1,n){
		s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
	}
	cout << s.size() << "\n";
}

Compiler output:
a.cc: In function 'void test()':
a.cc:29:16: error: 'pll' was not declared in this scope; did you mean 'll'?
   29 |         vector<pll> a(n);
      |                ^~~
      |                ll
a.cc:29:19: error: template argument 1 is invalid
   29 |         vector<pll> a(n);
      |                   ^
a.cc:29:19: error: template argument 2 is invalid
a.cc:30:23: error: 'begin' was not declared in this scope
   30 |         for(auto &i : a){
      |                       ^
a.cc:30:23: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:30:23: error: 'end' was not declared in this scope
   30 |         for(auto &i : a){
      |                       ^
a.cc:30:23: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'int'
    8 | #define all(c) c.begin(),c.end()
      |                  ^~~~~
a.cc:34:14: note: in expansion of macro 'all'
   34 |         sort(all(a));
      |              ^~~
a.cc:8:28: error: request for member 'end' in 'a', which is of non-class type 'int'
    8 | #define all(c) c.begin(),c.end()
      |                            ^~~
a.cc:34:14: note: in expansion of macro 'all'
   34 |         sort(all(a));
      |              ^~~
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'int'
    8 | #define all(c) c.begin(),c.end()
      |                  ^~~~~
a.cc:35:17: note: in expansion of macro 'all'
   35 |         reverse(all(a));
      |                 ^~~
a.cc:8:28: error: request for member 'end' in 'a', which is of non-class type 'int'
    8 | #define all(c) c.begin(),c.end()
      |                            ^~~
a.cc:35:17: note: in expansion of macro 'all'
   35 |         reverse(all(a));
      |                 ^~~
a.cc:36:16: error: template argument 2 is invalid
   36 |         set<pll> s;
      |                ^
a.cc:36:16: error: template argument 3 is invalid
a.cc:38:19: error: request for member 'insert' in 's', which is of non-class type 'int'
   38 |                 s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
      |                   ^~~~~~
a.cc:38:28: error: invalid types 'int[int]' for array subscript
   38 |                 s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
      |                            ^
a.cc:38:37: error: invalid types 'int[int]' for array subscript
   38 |                 s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
      |                                     ^
a.cc:38:44: error: invalid types 'int[int]' for array subscript
   38 |                 s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
      |                                            ^
a.cc:38:53: error: invalid types 'int[int]' for array subscript
   38 |                 s.insert({a[i-1].F-a[i].F,a[i-1].S-a[i].S});
      |                                                     ^
a.cc:40:19: error: request for member 'size' in 's', which is of non-class type 'int'
   40 |         cout << s.size() << "\n";
      |                   ^~~~