Language: C++

template <typename T = long long> inline T IN() {
    T x;
    cin >> x;
    return (x);
}
inline void CIN() {}
template <class Head, class... Tail>
inline void CIN(Head &&head, Tail &&... tail) {
    cin >> head;
    CIN(move(tail)...);
}
template <class Head> inline void COUT(Head &&head) { cout << (head) << "\n"; }
template <class Head, class... Tail>
inline void COUT(Head &&head, Tail &&... tail) {
    cout << (head) << " ";
    COUT(forward<Tail>(tail)...);
}

#define CINT(...)                                                              \
    int __VA_ARGS__;                                                           \
    CIN(__VA_ARGS__)
#define CCIN(...)                                                              \
    char __VA_ARGS__;                                                          \
    CIN(__VA_ARGS__)
#define DCIN(...)                                                              \
    double __VA_ARGS__;                                                        \
    CIN(__VA_ARGS__)
#define LCIN(...)                                                              \
    long long __VA_ARGS__;                                                     \
    CIN(__VA_ARGS__)
#define SCIN(...)                                                              \
    string __VA_ARGS__;                                                        \
    CIN(__VA_ARGS__)
#define Printv(v)                                                              \
    {                                                                          \
        REP(hoge, v.size())                                                    \
        cout << v[hoge] << (hoge == v.size() - 1 ? "" : " ");                  \
        cout << "\n";                                                          \
    }
template <typename T = string> inline void eputs(T s) {
    cout << s << "\n";
    exit(0);
}
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val) {
    std::fill((T *)array, (T *)(array + N), val);
}

long long next_combination(long long sub) {
    long long x = sub & -sub, y = sub + x;
    return (((sub & ~y) / x) >> 1) | y;
}
template <class T> inline bool chmax(T &a, const T &b) {
    if(a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <class T> inline bool chmin(T &a, const T &b) {
    if(a > b) {
        a = b;
        return 1;
    }
    return 0;
}

// generic lambdas
template <typename first>
#if defined(__has_cpp_attribute) && __has_cpp_attribute(nodiscard)
[[nodiscard]]
#elif defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4)
__attribute__((warn_unused_result))
#endif // defined(__has_cpp_attribute) && __has_cpp_attribute(nodiscard)
static inline constexpr decltype(auto)
fix(first &&f) noexcept {
    return [f = std::forward<first>(f)](auto &&... args) {
        return f(f, std::forward<decltype(args)>(args)...);
    };
}

template <typename T> using PQG = priority_queue<T, vector<T>, greater<T>>;
template <typename T> using PQ = priority_queue<T>;

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<ll, ll> PL;
typedef vector<PL> VPL;
typedef vector<bool> VB;
typedef vector<double> VD;
typedef vector<string> VS;
template <typename T> using V = vector<T>;
template <typename T> using VV = vector<vector<T>>;

const int INF = 1e9;
const ll LINF = 1e18;
const int MOD = 1e9 + 7;
// const int MOD = 998244353;
const ll dw[] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dh[] = {0, 1, 1, 1, 0, -1, -1, -1};
#define PI 3.141592653589793230
#define EPS 1e-7

void solve() {
    LCIN(N, M);
    VL H(N);
    VECCIN(H);
    VB ok(N, true);
    REP(i, M) {
        LCIN(A, B);
        A--, B--;
        if(H[A] >= H[B]) ok[B] = false;
        if(H[A] <= H[B]) ok[A] = false;
    }
    ll cnt = 0;
    REP(i, N) {
        if(ok[i]) cnt++;
    }
    COUT(cnt);
}

signed main() {
    cinfast();
    // cout << fixed << setprecision(12);
    // loop(solve());
    solve();
}


Compiler output:
a.cc: In function 'T IN()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> x;
      |     ^~~
a.cc: In function 'void CIN(Head&&, Tail&& ...)':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> head;
      |     ^~~
a.cc: In function 'void COUT(Head&&)':
a.cc:12:55: error: 'cout' was not declared in this scope
   12 | template <class Head> inline void COUT(Head &&head) { cout << (head) << "\n"; }
      |                                                       ^~~~
a.cc: In function 'void COUT(Head&&, Tail&& ...)':
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << (head) << " ";
      |     ^~~~
a.cc:16:10: error: 'forward' was not declared in this scope
   16 |     COUT(forward<Tail>(tail)...);
      |          ^~~~~~~
a.cc:16:22: error: expected primary-expression before '>' token
   16 |     COUT(forward<Tail>(tail)...);
      |                      ^
a.cc: At global scope:
a.cc:40:24: error: 'string' does not name a type
   40 | template <typename T = string> inline void eputs(T s) {
      |                        ^~~~~~
a.cc: In function 'void eputs(T)':
a.cc:41:5: error: 'cout' was not declared in this scope
   41 |     cout << s << "\n";
      |     ^~~~
a.cc:42:5: error: there are no arguments to 'exit' that depend on a template parameter, so a declaration of 'exit' must be available [-fpermissive]
   42 |     exit(0);
      |     ^~~~
a.cc:42:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
a.cc: At global scope:
a.cc:44:23: error: 'size_t' has not been declared
   44 | template <typename A, size_t N, typename T>
      |                       ^~~~~~
a.cc:45:22: error: 'N' was not declared in this scope
   45 | void Fill(A (&array)[N], const T &val) {
      |                      ^
a.cc:45:6: error: variable or field 'Fill' declared void
   45 | void Fill(A (&array)[N], const T &val) {
      |      ^~~~
a.cc:45:15: error: 'array' was not declared in this scope
   45 | void Fill(A (&array)[N], const T &val) {
      |               ^~~~~
a.cc:45:22: error: 'N' was not declared in this scope
   45 | void Fill(A (&array)[N], const T &val) {
      |                      ^
a.cc:45:26: error: expected primary-expression before 'const'
   45 | void Fill(A (&array)[N], const T &val) {
      |                          ^~~~~
a.cc: In function 'constexpr decltype(auto) fix(first&&)':
a.cc:77:22: error: 'forward' is not a member of 'std'
   77 |     return [f = std::forward<first>(f)](auto &&... args) {
      |                      ^~~~~~~
a.cc:1:1: note: 'std::forward' is defined in header '<utility>'; this is probably fixable by adding '#include <utility>'
  +++ |+#include <utility>
    1 | template <typename T = long long> inline T IN() {
a.cc:77:35: error: expected primary-expression before '>' token
   77 |     return [f = std::forward<first>(f)](auto &&... args) {
      |                                   ^
a.cc: In lambda function:
a.cc:78:26: error: 'forward' is not a member of 'std'
   78 |         return f(f, std::forward<decltype(args)>(args)...);
      |                          ^~~~~~~
a.cc:78:26: note: 'std::forward' is defined in header '<utility>'; this is probably fixable by adding '#include <utility>'
a.cc:78:34: error: expected primary-expression before 'decltype'
   78 |         return f(f, std::forward<decltype(args)>(args)...);
      |                                  ^~~~~~~~~~~~~~
a.cc: At global scope:
a.cc:82:35: error: 'priority_queue' does not name a type
   82 | template <typename T> using PQG = priority_queue<T, vector<T>, greater<T>>;
      |                                   ^~~~~~~~~~~~~~
a.cc:83:34: error: 'priority_queue' does not name a type
   83 | template <typename T> using PQ = priority_queue<T>;
      |                                  ^~~~~~~~~~~~~~
a.cc:86:9: error: 'vector' does not name a type
   86 | typedef vector<int> VI;
      |         ^~~~~~
a.cc:87:9: error: 'vector' does not name a type
   87 | typedef vector<ll> VL;
      |         ^~~~~~
a.cc:88:9: error: 'vector' does not name a type
   88 | typedef vector<VL> VVL;
      |         ^~~~~~
a.cc:89:9: error: 'pair' does not name a type
   89 | typedef pair<ll, ll> PL;
      |         ^~~~
a.cc:90:9: error: 'vector' does not name a type
   90 | typedef vector<PL> VPL;
      |         ^~~~~~
a.cc:91:9: error: 'vector' does not name a type
   91 | typedef vector<bool> VB;
      |         ^~~~~~
a.cc:92:9: error: 'vector' does not name a type
   92 | typedef vector<double> VD;
      |         ^~~~~~
a.cc:93:9: error: 'vector' does not name a type
   93 | typedef vector<string> VS;
      |         ^~~~~~
a.cc:94:33: error: 'vector' does not name a type
   94 | template <typename T> using V = vector<T>;
      |                                 ^~~~~~
a.cc:95:34: error: 'vector' does not name a type
   95 | template <typename T> using VV = vector<vector<T>>;
      |                                  ^~~~~~
a.cc: In function 'void solve()':
a.cc:108:5: error: 'VL' was not declared in this scope
  108 |     VL H(N);
      |     ^~
a.cc:109:12: error: 'H' was not declared in this scope
  109 |     VECCIN(H);
      |            ^
a.cc:109:5: error: 'VECCIN' was not declared in this scope; did you mean 'CCIN'?
  109 |     VECCIN(H);
      |     ^~~~~~
      |     CCIN
a.cc:110:5: error: 'VB' was not declared in this scope
  110 |     VB ok(N, true);
      |     ^~
a.cc:111:9: error: 'i' was not declared in this scope
  111 |     REP(i, M) {
      |         ^
a.cc:111:5: error: 'REP' was not declared in this scope
  111 |     REP(i, M) {
      |     ^~~
a.cc: In function 'int main()':
a.cc:125:5: error: 'cinfast' was not declared in this scope; did you mean 'const'?
  125 |     cinfast();
      |     ^~~~~~~
      |     const
a.cc: In instantiation of 'void CIN(Head&&, Tail&& ...) [with Head = long long int&; Tail = {long long int&}]':
a.cc:107:5:   required from here
   30 |     CIN(__VA_ARGS__)
      |     ~~~^~~~~~~~~~~~~
a.cc:10:13: error: 'move' was not declared in this scope
   10 |     CIN(move(tail)...);
      |         ~~~~^~~~~~