Language: C++

#include <string>
#include <vector>
#include <algorithm>
#include <limits.h>
typedef long long ll;
using namespace std;
int n;
int main(int argc,char const* argv[])
{
  cin >> n;
  int zerotimes=0,onetimes=0,moretimes=0;
  vector<ll> a(n,0);
  for(int i=0;i<n;i++)
    {
      cin >> a[i];
    }
  for(int i=0;i<n;i++)
    {
      if(a[i] % 2 ==0 && a[i] % 4 !=0) onetimes++;
      else if(a[i] % 4 ==0) moretimes++;
      else zerotimes++;
    }
  if(onetimes==0)
    {
      if(zerotimes<=(moretimes+1))
	{
	  cout << "Yes" << endl;
	  return 0;
	}
      else 
	{
	  cout << "No" << endl;
	  return 0;
	}
    }
  else
    {
      if(zerotimes<=(moretimes))
	{
	  cout << "Yes" << endl;
	  return 0;
	}
      else 
	{
	  cout << "No" << endl;
	  return 0;
	}
    }

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> n;
      |   ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <limits.h>
  +++ |+#include <iostream>
    5 | typedef long long ll;
a.cc:27:11: error: 'cout' was not declared in this scope
   27 |           cout << "Yes" << endl;
      |           ^~~~
a.cc:27:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:28: error: 'endl' was not declared in this scope
   27 |           cout << "Yes" << endl;
      |                            ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <limits.h>
  +++ |+#include <ostream>
    5 | typedef long long ll;
a.cc:32:11: error: 'cout' was not declared in this scope
   32 |           cout << "No" << endl;
      |           ^~~~
a.cc:32:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:27: error: 'endl' was not declared in this scope
   32 |           cout << "No" << endl;
      |                           ^~~~
a.cc:32:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:40:11: error: 'cout' was not declared in this scope
   40 |           cout << "Yes" << endl;
      |           ^~~~
a.cc:40:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:40:28: error: 'endl' was not declared in this scope
   40 |           cout << "Yes" << endl;
      |                            ^~~~
a.cc:40:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:45:11: error: 'cout' was not declared in this scope
   45 |           cout << "No" << endl;
      |           ^~~~
a.cc:45:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:45:27: error: 'endl' was not declared in this scope
   45 |           cout << "No" << endl;
      |                           ^~~~
a.cc:45:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'