Language: C++

#include<bits/stdc++.h>                                                                                                                                                                                         using namespace std;                                                                                                                                                                                            #define lli long long                                                                                   #define all(i) i.begin(),i.end()                                                                        #define rall(i) i.rbegin(),i.rend()                                                                     #define rep0(i,j) for(lli i=0;i<j;i++)                                                                  #define rep1(i,j) for(lli i=1;i<=j;i++)                                                                 #define rep0d(i,j) for(lli i=j-1;i>=0;i--)                                                              #define MAX 1000000007                                                                                                                                                                                          int main(){                                                                                               int n;                                                                                                  cin >> n;                                                                                               vector<lli> vec(n);                                                                                     cin >> n ;                                                                                              rep0(i,n){                                                                                                      cin >> vec[i];                                                                                  }                                                                                                       sort(all(vec));                                                                                                                                                                                                 lli ans=0;                                                                                              int temp;                                                                                               rep0(i,n){                                                                                                rep0(j,i){                                                                                               temp = lower_bound(all(vec),vec[i]+vec[j]) - vec.begin() - i ;                                          if(* lower_bound(all(vec),vec[i]+vec[j]) == vec[i] + vec[j]) temp--;                                    ans += max(temp,0);                                                                                    }                                                                                                     }                                                                                                       cout << ans;                                                                                          }  

Compiler output:
a.cc:1:209: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>                                                                                                                                                                                         using namespace std;                                                                                                                                                                                            #define lli long long                                                                                   #define all(i) i.begin(),i.end()                                                                        #define rall(i) i.rbegin(),i.rend()                                                                     #define rep0(i,j) for(lli i=0;i<j;i++)                                                                  #define rep1(i,j) for(lli i=1;i<=j;i++)                                                                 #define rep0d(i,j) for(lli i=j-1;i>=0;i--)                                                              #define MAX 1000000007                                                                                                                                                                                          int main(){                                                                                               int n;                                                                                                  cin >> n;                                                                                               vector<lli> vec(n);                                                                                     cin >> n ;                                                                                              rep0(i,n){                                                                                                      cin >> vec[i];                                                                                  }                                                                                                       sort(all(vec));                                                                                                                                                                                                 lli ans=0;                                                                                              int temp;                                                                                               rep0(i,n){                                                                                                rep0(j,i){                                                                                               temp = lower_bound(all(vec),vec[i]+vec[j]) - vec.begin() - i ;                                          if(* lower_bound(all(vec),vec[i]+vec[j]) == vec[i] + vec[j]) temp--;                                    ans += max(temp,0);                                                                                    }                                                                                                     }                                                                                                       cout << ans;                                                                                          }
      |                                                                                                                                                                                                                 ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status