Language: C++

#include <iostream>
#include <vector>

using namesapce std;

int main(){
  int N;
  cin >> N;
  vector <long  long int> V(N);
  
  int x2 = 0;
  int x4 = 0;
  
  for(int i = 0; i < N; i++){
    cin >> V[i];
    if(V[i] % 2 == 0) x2++;
    if(V[i] % 4 == 0) x4++;
    //x2 - x4 devidable only by 2
  }
  
  string ans = "";
  if(x2 >= N) ans = "YES";
  esle if(x4 >= (N+1) /2) ans = "YES";
  else if(2*x4 - x2 >= (N - (x2-x4) + 1)/2) ans = "YES";
  else ans = "NO";
  
  cout << ans;


}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector <long  long int> V(N);
      |   ^~~~~~
a.cc:9:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:9:11: error: expected primary-expression before 'long'
    9 |   vector <long  long int> V(N);
      |           ^~~~
a.cc:15:12: error: 'V' was not declared in this scope
   15 |     cin >> V[i];
      |            ^
a.cc:21:3: error: 'string' was not declared in this scope
   21 |   string ans = "";
      |   ^~~~~~
a.cc:21:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:22:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |   if(x2 >= N) ans = "YES";
      |               ^~~
      |               abs
a.cc:23:3: error: 'esle' was not declared in this scope
   23 |   esle if(x4 >= (N+1) /2) ans = "YES";
      |   ^~~~
a.cc:24:3: error: 'else' without a previous 'if'
   24 |   else if(2*x4 - x2 >= (N - (x2-x4) + 1)/2) ans = "YES";
      |   ^~~~
a.cc:24:45: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   else if(2*x4 - x2 >= (N - (x2-x4) + 1)/2) ans = "YES";
      |                                             ^~~
      |                                             abs
a.cc:25:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |   else ans = "NO";
      |        ^~~
      |        abs
a.cc:27:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |   cout << ans;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |   cout << ans;
      |           ^~~
      |           abs