Language: C++

#include<bits/stdc++.h>

using namespace std;
using ll = long long;
#define int ll;
using VI = vector<int>;
using VVI =vector<VI>;
using PII pair<int,int>;

#define FOR(i,a,n) for(ll i = (ll)a; i<(ll)n;++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(x) x.begin(),x.end()
#define PB push_back

signed main(void){

	cin.tie();
  	ios::sync_with_stdio(false);
  
  	int n;
  	cin >> n;
  	VI a(n);
  	REP(i,n) cin >> a[i];
  	
  	VI b(n);
  	b[0] = a[0];
  	FOR(i,1,n) b[i]=a[i]+b[i-1];
  	
  	int ret=0;
  	map<int,int> mp;
  	for(int i = n-1; i>=;i--){
    	ret += mp[b[i]];
      	mp[b[i]]++;
    }
  	
  	cout << ret + mp[0] << endl;
  	
  	return 0; 
    
    
    }






}

Compiler output:
a.cc:5:13: error: template argument 1 is invalid
    5 | #define int ll;
      |             ^~
a.cc:6:19: note: in expansion of macro 'int'
    6 | using VI = vector<int>;
      |                   ^~~
a.cc:5:13: error: template argument 2 is invalid
    5 | #define int ll;
      |             ^~
a.cc:6:19: note: in expansion of macro 'int'
    6 | using VI = vector<int>;
      |                   ^~~
a.cc:6:22: error: expected unqualified-id before '>' token
    6 | using VI = vector<int>;
      |                      ^
a.cc:7:19: error: 'VI' was not declared in this scope
    7 | using VVI =vector<VI>;
      |                   ^~
a.cc:7:21: error: template argument 1 is invalid
    7 | using VVI =vector<VI>;
      |                     ^
a.cc:7:21: error: template argument 2 is invalid
a.cc:8:7: error: expected nested-name-specifier before 'PII'
    8 | using PII pair<int,int>;
      |       ^~~
a.cc:8:19: error: expected unqualified-id before ',' token
    8 | using PII pair<int,int>;
      |                   ^
a.cc:5:15: error: expected constructor, destructor, or type conversion before ';' token
    5 | #define int ll;
      |               ^
a.cc:8:20: note: in expansion of macro 'int'
    8 | using PII pair<int,int>;
      |                    ^~~
a.cc:8:23: error: expected unqualified-id before '>' token
    8 | using PII pair<int,int>;
      |                       ^
a.cc: In function 'int main()':
a.cc:5:13: error: declaration does not declare anything [-fpermissive]
    5 | #define int ll;
      |             ^~
a.cc:20:9: note: in expansion of macro 'int'
   20 |         int n;
      |         ^~~
a.cc:20:13: error: 'n' was not declared in this scope; did you mean 'yn'?
   20 |         int n;
      |             ^
      |             yn
a.cc:22:9: error: 'VI' was not declared in this scope
   22 |         VI a(n);
      |         ^~
a.cc:23:25: error: 'a' was not declared in this scope
   23 |         REP(i,n) cin >> a[i];
      |                         ^
a.cc:25:11: error: expected ';' before 'b'
   25 |         VI b(n);
      |           ^~
      |           ;
a.cc:26:9: error: 'b' was not declared in this scope
   26 |         b[0] = a[0];
      |         ^
a.cc:26:16: error: 'a' was not declared in this scope
   26 |         b[0] = a[0];
      |                ^
a.cc:5:13: error: declaration does not declare anything [-fpermissive]
    5 | #define int ll;
      |             ^~
a.cc:29:9: note: in expansion of macro 'int'
   29 |         int ret=0;
      |         ^~~
a.cc:29:13: error: 'ret' was not declared in this scope
   29 |         int ret=0;
      |             ^~~
a.cc:5:13: error: wrong number of template arguments (1, should be at least 2)
    5 | #define int ll;
      |             ^~
a.cc:30:13: note: in expansion of macro 'int'
   30 |         map<int,int> mp;
      |             ^~~
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:30:16: error: expected primary-expression before ',' token
   30 |         map<int,int> mp;
      |                ^
a.cc:5:15: error: expected primary-expression before ';' token
    5 | #define int ll;
      |               ^
a.cc:30:17: note: in expansion of macro 'int'
   30 |         map<int,int> mp;
      |                 ^~~
a.cc:30:20: error: expected primary-expression before '>' token
   30 |         map<int,int> mp;
      |                    ^
a.cc:30:22: error: 'mp' was not declared in this scope
   30 |         map<int,int> mp;
      |                      ^~
a.cc:5:13: error: declaration does not declare anything [-fpermissive]
    5 | #define int ll;
      |             ^~
a.cc:31:13: note: in expansion of macro 'int'
   31 |         for(int i = n-1; i>=;i--){
      |             ^~~
a.cc:31:17: error: 'i' was not declared in this scope
   31 |         for(int i = n-1; i>=;i--){
      |                 ^
a.cc:31:29: error: expected primary-expression before ';' token
   31 |         for(int i = n-1; i>=;i--){
      |                             ^
a.cc:31:29: error: expected ')' before ';' token
   31 |         for(int i = n-1; i>=;i--){
      |            ~                ^
      |                             )
a.cc:31:30: error: 'i' was not declared in this scope
   31 |         for(int i = n-1; i>=;i--){
      |                              ^
a.cc: At global scope:
a.cc:48:1: error: expected declaration before '}' token
   48 | }
      | ^