Source Code
#include<iostream>
using namespace std;
#define ll long long
int main(int argc, char *argv[])
{
	ll n;
	cin>>n;
	ll arr[n],brr[n];
	for(int i=0;i<n;i++)
	  cin>>arr[i];
	for(int i=0;i<n:i++)
	   cin>>brr[i];
	ll sum=0;
	for(int i=0;i<n;i++)
	 sum+=arr[i]-brr[i];
	cout<<sum;
	
}
Copy
A Game of Darts Mo_12
GNU G++17
0 ms
0 KB
Compilation Error