Language: C++

#include<iostream>
using namespace std;
int main(){
  int N,M,a[100000],cnt=0,f=0,s=0;
  cin>>N;
  cin>>M;
  for(int i=1;i<=N;i++)
  {
    cin>>a[i];
    s+=a[i];
  }

  for(int i=1;i<=M;i++)
  {  if (a[i]>=(s/(4*M)))
   { cnt++;
      if(cnt==M)f=1;}
  }

  if (f==1)
    cout<<"YES";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |   int N,M,a[100000],cnt=0,f=0,s=0;
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |   cin>>N;
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |   cin>>M;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |   for(int i=1;i<=N;i++)
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |   {
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |     cin>>a[i];
      | ^
a.cc:9:3: error: extended character   is not valid in an identifier
    9 |     cin>>a[i];
      |   ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |     s+=a[i];
      | ^
a.cc:10:3: error: extended character   is not valid in an identifier
   10 |     s+=a[i];
      |   ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |   }
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |   for(int i=1;i<=M;i++)
      | ^
a.cc:14:1: error: extended character   is not valid in an identifier
   14 |   {  if (a[i]>=(s/(4*M)))
      | ^
a.cc:14:5: error: extended character   is not valid in an identifier
   14 |   {  if (a[i]>=(s/(4*M)))
      |     ^
a.cc:15:1: error: extended character   is not valid in an identifier
   15 |    { cnt++;
      | ^
a.cc:15:3: error: extended character   is not valid in an identifier
   15 |    { cnt++;
      |   ^
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |       if(cnt==M)f=1;}
      | ^
a.cc:16:3: error: extended character   is not valid in an identifier
   16 |       if(cnt==M)f=1;}
      |   ^
a.cc:16:5: error: extended character   is not valid in an identifier
   16 |       if(cnt==M)f=1;}
      |     ^
a.cc:17:1: error: extended character   is not valid in an identifier
   17 |   }
      | ^
a.cc:19:1: error: extended character   is not valid in an identifier
   19 |   if (f==1)
      | ^
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |     cout<<"YES";
      | ^
a.cc:20:3: error: extended character   is not valid in an identifier
   20 |     cout<<"YES";
      |   ^
a.cc:21:1: error: extended character   is not valid in an identifier
   21 |   else
      | ^
a.cc:22:1: error: extended character   is not valid in an identifier
   22 |     cout<<"No";
      | ^
a.cc:22:3: error: extended character   is not valid in an identifier
   22 |     cout<<"No";
      |   ^
a.cc:23:1: error: extended character   is not valid in an identifier
   23 |   return 0;
      | ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U000000a0' was not declared in this scope
    4 |   int N,M,a[100000],cnt=0,f=0,s=0;
      | ^
a.cc:5:2: error: expected ';' before 'cin'
    5 |   cin>>N;
      |  ^~~~
      |  ;
a.cc:6:2: error: expected ';' before 'cin'
    6 |   cin>>M;
      |  ^~~~
      |  ;
a.cc:7:2: error: expected ';' before 'for'
    7 |   for(int i=1;i<=N;i++)
      |  ^~~~
      |  ;
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int i=1;i<=N;i++)
      |               ^
a.cc:7:18: error: 'N' was not declared in this scope
    7 |   for(int i=1;i<=N;i++)
      |                  ^
a.cc:13:2: error: expected ';' before 'for'
   13 |   for(int i=1;i<=M;i++)
      |  ^~~~
      |  ;
a.cc:13:18: error: 'M' was not declared in this scope
   13 |   for(int i=1;i<=M;i++)
      |                  ^
a.cc:19:2: error: expected ';' before 'if'
   19 |   if (f==1)
      |  ^~~
      |  ;
a.cc:21:2: error: expected ';' before 'else'
   21 |   else
      |  ^~~~~
      |  ;
a.cc:23:2: error: expected ';' before 'return'
   23 |   return 0;
      |  ^~~~~~~
      |  ;