Language: Java

// ------------------------------------
// Date:2018/ 3/13
// Problem:ABC 069 4-Adjacent c.cpp
//
// ------------------------------------

#include <bits/stdc++.h>

using namespace std;

#define EACH(i,a) for (auto&& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
#define debug(x) cerr << #x << ":" << x << endl

typedef long long ll;

static const int MOD = 1000000007;

int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  int N;
  cin >> N;
  int a, four, two, other;
  four = two = other = 0;
  REP(i, N) {
    cin >> a;
    if (a % 4 == 0) four++;
    else if (a % 2 == 0) two++;
    else other++;
  }

  bool ok = true;
  if (two > 0) {
    if (other > four) ok = false;
  } else {
    if (other - 1 > four) ok = false;
  }

  cout << (ok ? "Yes" : "No") << endl;
  
  return 0;
}



Compiler output:
Main.java:7: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:7: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:11: error: illegal character: '#'
#define EACH(i,a) for (auto&& i : a)
^
Main.java:11: error: class, interface, enum, or record expected
#define EACH(i,a) for (auto&& i : a)
        ^
Main.java:12: error: illegal character: '#'
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
^
Main.java:12: error: class, interface, enum, or record expected
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
                                    ^
Main.java:12: error: class, interface, enum, or record expected
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
                                             ^
Main.java:13: error: illegal character: '#'
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
^
Main.java:13: error: class, interface, enum, or record expected
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
                                       ^
Main.java:13: error: class, interface, enum, or record expected
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
                                                 ^
Main.java:14: error: illegal character: '#'
#define REP(i,n) FOR(i,0,n)
^
Main.java:15: error: illegal character: '#'
#define RREP(i,n) RFOR(i,0,n)
^
Main.java:16: error: illegal character: '#'
#define ALL(a) (a).begin(),(a).end()
^
Main.java:17: error: illegal character: '#'
#define debug(x) cerr << #x << ":" << x << endl
^
Main.java:17: error: illegal character: '#'
#define debug(x) cerr << #x << ":" << x << endl
                         ^
Main.java:21: error: class, interface, enum, or record expected
static const int MOD = 1000000007;
       ^
Main.java:26: error: not a statement
  ios::sync_with_stdio(false);
  ^
Main.java:29: error: not a statement
  cin >> N;
      ^
Main.java:33: error: not a statement
    cin >> a;
        ^
Main.java:46: error: not a statement
  cout << (ok ? "Yes" : "No") << endl;
                              ^
Main.java:23: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:26: error: ';' expected
  ios::sync_with_stdio(false);
                      ^
Main.java:32: error: ';' expected
  REP(i, N) {
           ^
23 errors