Language: C++

#include<stdio.h>
int main()
{
	int i,n;
	lomg long a[10005],b[10005],suma,sumb,t,count=0,s1=0,s2=0,s3=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	 scanf("%lld",&a[i]);
	for(i=0;i<n;i++)
	 scanf("%lld",&b[i]);
    for(i=0;i<n;i++)
    {
    	if(a[i]!=b[i]) break;
	}
	if(i==n)  count=1;
	else
	{
		suma=0;sumb=0;
	  for(i=0;i<n;i++)
	  {
	  	suma+=a[i];
	  	sumb+=b[i];
	  }
	  t=sumb-suma;
	  if(t<=0) count=-1;
	  else
	  {
	  	 for(i=0;i<n;i++)
	  	 {
	  	 	if(a[i]<b[i])
	  	 	{
	  	 	  s1=s1+(b[i]-a[i])/2;
			  if((b[i]-a[i])%2!=0) 
			  {
			  	 s1++; s2++;
			  }
			}
		 }
		 if(s1>t) count=-1;
		 else
		 {
		 	s2=s1-s2;
		 	for(i=0;i<n;i++)
		 	{
		 		if(a[i]>b[i])
		 		{
		 			s3+=a[i]-b[i];
				}		 		 
			}
			if(s3>s2) count=-1;
			else count=1;
		 }
	  }
	}
  if(count==-1)  printf("No\n");
  else  printf("Yes\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'lomg' was not declared in this scope; did you mean 'long'?
    5 |         lomg long a[10005],b[10005],suma,sumb,t,count=0,s1=0,s2=0,s3=0;
      |         ^~~~
      |         long
a.cc:8:24: error: 'a' was not declared in this scope
    8 |          scanf("%lld",&a[i]);
      |                        ^
a.cc:10:24: error: 'b' was not declared in this scope
   10 |          scanf("%lld",&b[i]);
      |                        ^
a.cc:13:12: error: 'a' was not declared in this scope
   13 |         if(a[i]!=b[i]) break;
      |            ^
a.cc:13:18: error: 'b' was not declared in this scope
   13 |         if(a[i]!=b[i]) break;
      |                  ^
a.cc:15:19: error: 'count' was not declared in this scope
   15 |         if(i==n)  count=1;
      |                   ^~~~~
a.cc:18:17: error: 'suma' was not declared in this scope
   18 |                 suma=0;sumb=0;
      |                 ^~~~
a.cc:18:24: error: 'sumb' was not declared in this scope
   18 |                 suma=0;sumb=0;
      |                        ^~~~
a.cc:21:23: error: 'a' was not declared in this scope
   21 |                 suma+=a[i];
      |                       ^
a.cc:22:23: error: 'b' was not declared in this scope
   22 |                 sumb+=b[i];
      |                       ^
a.cc:24:11: error: 't' was not declared in this scope
   24 |           t=sumb-suma;
      |           ^
a.cc:25:20: error: 'count' was not declared in this scope
   25 |           if(t<=0) count=-1;
      |                    ^~~~~
a.cc:30:28: error: 'a' was not declared in this scope
   30 |                         if(a[i]<b[i])
      |                            ^
a.cc:30:33: error: 'b' was not declared in this scope
   30 |                         if(a[i]<b[i])
      |                                 ^
a.cc:32:27: error: 's1' was not declared in this scope
   32 |                           s1=s1+(b[i]-a[i])/2;
      |                           ^~
a.cc:35:40: error: 's2' was not declared in this scope
   35 |                                  s1++; s2++;
      |                                        ^~
a.cc:39:21: error: 's1' was not declared in this scope
   39 |                  if(s1>t) count=-1;
      |                     ^~
a.cc:39:27: error: 'count' was not declared in this scope
   39 |                  if(s1>t) count=-1;
      |                           ^~~~~
a.cc:42:25: error: 's2' was not declared in this scope
   42 |                         s2=s1-s2;
      |                         ^~
a.cc:45:36: error: 'a' was not declared in this scope
   45 |                                 if(a[i]>b[i])
      |                                    ^
a.cc:45:41: error: 'b' was not declared in this scope
   45 |                                 if(a[i]>b[i])
      |                                         ^
a.cc:47:41: error: 's3' was not declared in this scope
   47 |                                         s3+=a[i]-b[i];
      |                                         ^~
a.cc:50:28: error: 's3' was not declared in this scope
   50 |                         if(s3>s2) count=-1;
      |                            ^~
a.cc:50:35: error: 'count' was not declared in this scope
   50 |                         if(s3>s2) count=-1;
      |                                   ^~~~~
a.cc:51:30: error: 'count' was not declared in this scope
   51 |                         else count=1;
      |                              ^~~~~
a.cc:55:6: error: 'count' was not declared in this scope
   55 |   if(count==-1)  printf("No\n");
      |      ^~~~~