Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> P;
typedef pair<ll, P> E;
#define cost first
#define from second.first
#define to second.second
#define MOD (1000000007ll)
#define l_ength size

ll p[123456],q[123456];

void mul_mod(ll& a, ll b){
	a *= b;
	a %= MOD;
}

void add_mod(ll& a, ll b){
	b += MOD;
	a += b;
	a %= MOD;
}

ll inv(ll x){
	ll a = MOD-2,ans=1ll;
	while(a > 0){
		if((a&1)>0){
			mul_mod(ans,x);
		}
		a /= 2;
		mul_mod(x,x);
	}
	return ans;
}

ll comb(int x, int y){
	ll ans=1ll;
	if(x <= 0 || y < 0 || (x-y) < 0){
		return 0ll;
	}
	mul_mod(ans,p[x]);
	mul_mod(ans,q[y]);
	mul_mod(ans,q[x-y]);
	return ans;
}


int main(void){
	int n,i;
	ll a[225816],ans=INFLL;
	a[0] = 0ll;
	cin >> n;
	for(i=1; i<=n; ++i){
		cin >> a[i];
		a[i] += a[i-1];
	}
	for(i=1; i<n; ++i){
		ans = min(ans,abs(a[i]*2-a[n]));
	}
	cout << ans << endl;
	return 0;
}#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> P;
typedef pair<ll, P> E;
#define cost first
#define from second.first
#define to second.second
#define MOD (1000000007ll)
#define l_ength size

ll p[123456],q[123456];

void mul_mod(ll& a, ll b){
	a *= b;
	a %= MOD;
}

void add_mod(ll& a, ll b){
	b += MOD;
	a += b;
	a %= MOD;
}

ll inv(ll x){
	ll a = MOD-2,ans=1ll;
	while(a > 0){
		if((a&1)>0){
			mul_mod(ans,x);
		}
		a /= 2;
		mul_mod(x,x);
	}
	return ans;
}

ll comb(int x, int y){
	ll ans=1ll;
	if(x <= 0 || y < 0 || (x-y) < 0){
		return 0ll;
	}
	mul_mod(ans,p[x]);
	mul_mod(ans,q[y]);
	mul_mod(ans,q[x-y]);
	return ans;
}


int main(void){
	int n,i;
	ll a[225816],ans=INFLL;
	a[0] = 0ll;
	cin >> n;
	for(i=1; i<=n; ++i){
		cin >> a[i];
		a[i] += a[i-1];
	}
	for(i=1; i<n; ++i){
		ans = min(ans,abs(a[i]*2-a[n]));
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc:65:2: error: stray '#' in program
   65 | }#include "bits/stdc++.h"
      |  ^
a.cc:65:3: error: 'include' does not name a type
   65 | }#include "bits/stdc++.h"
      |   ^~~~~~~
a.cc:78:4: error: redefinition of 'll p [123456]'
   78 | ll p[123456],q[123456];
      |    ^
a.cc:14:4: note: 'll p [123456]' previously declared here
   14 | ll p[123456],q[123456];
      |    ^
a.cc:78:14: error: redefinition of 'll q [123456]'
   78 | ll p[123456],q[123456];
      |              ^
a.cc:14:14: note: 'll q [123456]' previously declared here
   14 | ll p[123456],q[123456];
      |              ^
a.cc:80:6: error: redefinition of 'void mul_mod(ll&, ll)'
   80 | void mul_mod(ll& a, ll b){
      |      ^~~~~~~
a.cc:16:6: note: 'void mul_mod(ll&, ll)' previously defined here
   16 | void mul_mod(ll& a, ll b){
      |      ^~~~~~~
a.cc:85:6: error: redefinition of 'void add_mod(ll&, ll)'
   85 | void add_mod(ll& a, ll b){
      |      ^~~~~~~
a.cc:21:6: note: 'void add_mod(ll&, ll)' previously defined here
   21 | void add_mod(ll& a, ll b){
      |      ^~~~~~~
a.cc:91:4: error: redefinition of 'll inv(ll)'
   91 | ll inv(ll x){
      |    ^~~
a.cc:27:4: note: 'll inv(ll)' previously defined here
   27 | ll inv(ll x){
      |    ^~~
a.cc:103:4: error: redefinition of 'll comb(int, int)'
  103 | ll comb(int x, int y){
      |    ^~~~
a.cc:39:4: note: 'll comb(int, int)' previously defined here
   39 | ll comb(int x, int y){
      |    ^~~~
a.cc:115:5: error: redefinition of 'int main()'
  115 | int main(void){
      |     ^~~~
a.cc:51:5: note: 'int main()' previously defined here
   51 | int main(void){
      |     ^~~~