Language: C++

#include<bits/stdc++.h>
#define l long long
using namespace std;
const int N=2e5+10;
ll sum[N],x[N];
ll a[N];
int main()
{
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
		cin>>a[i];
    sum[1]=x[1]=a[1];
    for(int i=2;i<=n;i++)
		sum[i]=sum[i-1]+a[i],x[i]=x[i-1]^a[i];
    ll ans=0;
	int l=1;
    for(int r=1;r<=n;r++)
	{
        for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
	    ans+=(r-l+1);
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc:5:1: error: 'll' does not name a type; did you mean 'l'?
    5 | ll sum[N],x[N];
      | ^~
      | l
a.cc:6:1: error: 'll' does not name a type; did you mean 'l'?
    6 | ll a[N];
      | ^~
      | l
a.cc: In function 'int main()':
a.cc:12:22: error: 'a' was not declared in this scope
   12 |                 cin>>a[i];
      |                      ^
a.cc:13:5: error: 'sum' was not declared in this scope
   13 |     sum[1]=x[1]=a[1];
      |     ^~~
a.cc:13:12: error: 'x' was not declared in this scope
   13 |     sum[1]=x[1]=a[1];
      |            ^
a.cc:13:17: error: 'a' was not declared in this scope
   13 |     sum[1]=x[1]=a[1];
      |                 ^
a.cc:16:5: error: 'll' was not declared in this scope; did you mean 'l'?
   16 |     ll ans=0;
      |     ^~
      |     l
a.cc:17:14: error: expected unqualified-id before '=' token
   17 |         int l=1;
      |              ^
a.cc:2:11: error: expected primary-expression before 'long'
    2 | #define l long long
      |           ^~~~
a.cc:20:25: note: in expansion of macro 'l'
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                         ^
a.cc:20:25: error: expected ']' before 'long'
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                         ^
      |                         ]
a.cc:20:25: error: expected ';' before 'long'
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                         ^
      |                         ;
a.cc:2:11: error: expected primary-expression before 'long'
    2 | #define l long long
      |           ^~~~
a.cc:20:25: note: in expansion of macro 'l'
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                         ^
a.cc:20:25: error: expected ')' before 'long'
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |            ~            ^
      |                         )
a.cc:20:26: error: expected unqualified-id before '-' token
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                          ^
a.cc:20:46: error: expected unqualified-id before '++' token
   20 |         for(;sum[r]-sum[l-1]!=(X[r]^X[l-1]);l++);
      |                                              ^~
a.cc:21:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |             ans+=(r-l+1);
      |             ^~~
      |             abs
a.cc:2:11: error: expected primary-expression before 'long'
    2 | #define l long long
      |           ^~~~
a.cc:21:21: note: in expansion of macro 'l'
   21 |             ans+=(r-l+1);
      |                     ^
a.cc:21:21: error: expected ')' before 'long'
   21 |             ans+=(r-l+1);
      |                  ~  ^
      |                     )
a.cc:23:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |     cout<<ans<<endl;
      |           ^~~
      |           abs