Language: C++

#include <bits/stdc++.h>
 using namespace std;
 #define rep(i,N) for(int i=0;i<int(N);++i)
 #define rep1(i,N) for(int i=1;i<int(N);++i)
 #define all(a) (a).begin(),(a).end()
 int main() {
 	int N;
		cin>>N;
		vector<ll> A(N),B(N),C(N);
     rep(i,N)cin>>A[i];
     rep(i,N)cin>>B[i];
     rep(i,N)cin>>C[i];
     sort(all(A));
     sort(all(C));
     ll ans = 0;
     rep(i,N){
			ll a = lower_bound(all(A),B[i]) - A.begin();
			ll c = C.end() - upper_bound(all(C), B[i]);
			ans += a*c;
		}
	cout<<ans<<endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'll' was not declared in this scope; did you mean 'all'?
    9 |                 vector<ll> A(N),B(N),C(N);
      |                        ^~
      |                        all
a.cc:9:26: error: template argument 1 is invalid
    9 |                 vector<ll> A(N),B(N),C(N);
      |                          ^
a.cc:9:26: error: template argument 2 is invalid
a.cc:10:20: error: invalid types 'int[int]' for array subscript
   10 |      rep(i,N)cin>>A[i];
      |                    ^
a.cc:11:20: error: invalid types 'int[int]' for array subscript
   11 |      rep(i,N)cin>>B[i];
      |                    ^
a.cc:12:20: error: invalid types 'int[int]' for array subscript
   12 |      rep(i,N)cin>>C[i];
      |                    ^
a.cc:5:21: error: request for member 'begin' in 'A', which is of non-class type 'int'
    5 |  #define all(a) (a).begin(),(a).end()
      |                     ^~~~~
a.cc:13:11: note: in expansion of macro 'all'
   13 |      sort(all(A));
      |           ^~~
a.cc:5:33: error: request for member 'end' in 'A', which is of non-class type 'int'
    5 |  #define all(a) (a).begin(),(a).end()
      |                                 ^~~
a.cc:13:11: note: in expansion of macro 'all'
   13 |      sort(all(A));
      |           ^~~
a.cc:5:21: error: request for member 'begin' in 'C', which is of non-class type 'int'
    5 |  #define all(a) (a).begin(),(a).end()
      |                     ^~~~~
a.cc:14:11: note: in expansion of macro 'all'
   14 |      sort(all(C));
      |           ^~~
a.cc:5:33: error: request for member 'end' in 'C', which is of non-class type 'int'
    5 |  #define all(a) (a).begin(),(a).end()
      |                                 ^~~
a.cc:14:11: note: in expansion of macro 'all'
   14 |      sort(all(C));
      |           ^~~
a.cc:15:8: error: expected ';' before 'ans'
   15 |      ll ans = 0;
      |        ^~~~
      |        ;
a.cc:17:27: error: expected ';' before 'a'
   17 |                         ll a = lower_bound(all(A),B[i]) - A.begin();
      |                           ^~
      |                           ;
a.cc:18:27: error: expected ';' before 'c'
   18 |                         ll c = C.end() - upper_bound(all(C), B[i]);
      |                           ^~
      |                           ;
a.cc:19:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |                         ans += a*c;
      |                         ^~~
      |                         abs
a.cc:19:32: error: 'a' was not declared in this scope
   19 |                         ans += a*c;
      |                                ^
a.cc:19:34: error: 'c' was not declared in this scope
   19 |                         ans += a*c;
      |                                  ^
a.cc:21:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |         cout<<ans<<endl;
      |               ^~~
      |               abs