Language: C++

#include <bits/stdc++.h>

#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define all(x) (x).begin(),(x).end()

using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int INF = 0x3f3f3f3f;
mt19937 gen(chrono::steady_clock::now().time_since_epoch().count());
template<typename... Args> void rd(Args&... args) {((cin >> args), ...);}
template<typename... Args> void write(Args... args) { ((cout << args << " "), ...); cout<<endl;}

const int N=1e5+5;
int h[N];
vector<int> G[N];
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n,m;#include <bits/stdc++.h>

#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define all(x) (x).begin(),(x).end()

using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int INF = 0x3f3f3f3f;
mt19937 gen(chrono::steady_clock::now().time_since_epoch().count());
template<typename... Args> void rd(Args&... args) {((cin >> args), ...);}
template<typename... Args> void write(Args... args) { ((cout << args << " "), ...); cout<<endl;}

const int N=1e5+5;
int h[N];
vector<int> G[N];
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n,m;
    cin>>n>>m;
    int ans=0;
    for1(i,n) cin>>h[i];
    forn(i,m){
        int x,y;
        cin>>x>>y;
        G[x].push_back(y);
        G[y].push_back(x);
    }
    for1(i,n){
        int flag=1;
        for(auto it:G[i]) if(h[it]>h[i]){
            flag=0;
            break;
        }
        ans+=flag;
    }
    cout<<ans;
    return 0;
}


    cin>>n>>m;
    int ans=0;
    for1(i,n) cin>>h[i];
    forn(i,m){
        int x,y;
        cin>>x>>y;
        G[x].push_back(y);
        G[y].push_back(x);
    }
    for1(i,n){
        int flag=1;
        for(auto it:G[i]) if(h[it]>h[i]){
            flag=0;
            break;
        }
        ans+=flag;
    }
    cout<<ans;
    return 0;
}



Compiler output:
a.cc:24:13: error: stray '#' in program
   24 |     int n,m;#include <bits/stdc++.h>
      |             ^
a.cc: In function 'int main()':
a.cc:24:14: error: 'include' was not declared in this scope
   24 |     int n,m;#include <bits/stdc++.h>
      |              ^~~~~~~
a.cc:24:23: error: 'bits' was not declared in this scope
   24 |     int n,m;#include <bits/stdc++.h>
      |                       ^~~~
a.cc:24:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
   24 |     int n,m;#include <bits/stdc++.h>
      |                            ^~~~
      |                            std
a.cc:33:1: error: expected primary-expression before 'using'
   33 | using namespace std;
      | ^~~~~
a.cc:38:1: error: a template declaration cannot appear at block scope
   38 | template<typename... Args> void rd(Args&... args) {((cin >> args), ...);}
      | ^~~~~~~~
a.cc:44:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   44 | int main() {
      |         ^~
a.cc:44:9: note: remove parentheses to default-initialize a variable
   44 | int main() {
      |         ^~
      |         --
a.cc:44:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:44:12: error: a function-definition is not allowed here before '{' token
   44 | int main() {
      |            ^