Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lld long long int
#define M 1000000007
#define fors(i,n) for(int i=0;i<n;++i)
#define fore(i,a,b) for(int i=a;i<=b;++i)
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define vv vector<int>
#define endl "\n"
#define test(i) cout<<i<<endl
#define tests(i) cout<<"i: "<<i<<endl;
#define itrt int t; cin>>t; fors(i,t)
#define itr1 int t; cin>>t;
#define ff first
#define ss second
#define pb push_back
#define vmp make_pair
#define ppb pop_back
#define sorta(a,n) sort(arr,arr+n)
#define sortv(x) sort(x.begin(),x.end())
void file(){
    #ifdef LOCAL
    freopen("demo.in","r",stdin);
    freopen("demo.out","w",stdout);
    #endif
}

void test_case(){
    int n,m;
    cin>>n>>m;
    vv h(n);
    vector<int> v(n);
    for(int i=0;i<n;++i){
        cin>>h[i];
    }
    for(int i=0;i<m;++i){
        int x,y;
        cin>>x>>y;
        --x,--y;
        v[x].pb(y);
        v[y].pb(x);
    }
    int ans=0;
    for(int i=0;i<n;++i){
        int flag=1;
        for(auto j:v[i]){
            if(h[j]>=h[i]){
                flag=0;
                break;
            }
        }
        ans+=flag;
    }
    test(ans);
    
}

int main(){
    fastio;
    file();
    int T=1;
    // int T;
    // cin>>T;
    for(int nr=1;nr<=T;++nr) {
        // cout<<"Case #"<<nr<<": ";
		test_case();
    }
}

Compiler output:
a.cc: In function 'void test_case()':
a.cc:16:12: error: request for member 'push_back' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   16 | #define pb push_back
      |            ^~~~~~~~~
a.cc:40:14: note: in expansion of macro 'pb'
   40 |         v[x].pb(y);
      |              ^~
a.cc:16:12: error: request for member 'push_back' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)y))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   16 | #define pb push_back
      |            ^~~~~~~~~
a.cc:41:14: note: in expansion of macro 'pb'
   41 |         v[y].pb(x);
      |              ^~
a.cc:46:23: error: 'begin' was not declared in this scope
   46 |         for(auto j:v[i]){
      |                       ^
a.cc:46:23: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:46:23: error: 'end' was not declared in this scope
   46 |         for(auto j:v[i]){
      |                       ^
a.cc:46:23: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~