Language: C++

#include "bits/stdc++.h"
using namespace std;


//wierd debugging stuff
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
    *this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
//end of weird debugging stuff
using ll = long long;
using vi = vector<int>;
using ii = pair<int,int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
#define FASTER ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define invec(v) for(auto& x : v)cin>>x;
#define Test int T;cin>>T;while(T--)
#define REP(i,j,k) for(int i=(j);(i)<(k);(i)++)
#define Time()	cerr <<'\n' << clock() * 1000 / CLOCKS_PER_SEC << "ms\n"
#define SZ(x) (int)x.size();
#define all(x) x.begin,x.end()
// no change 

//const int MxN = 1e9+5;
const int N = 1e5+10;
int main() {
	int n,m;
	cin>>n>>m;
	vi v[n+1];
	vi x(n);
	for(int i=0;i<n;i++){
		cin>>x[i];
	}
	for(int i=0;i<m;i++){
		int a,b;
		cin>>a>>b;a--,b--;
		v[a].push_back(b);
		v[b].push_back(a);
	}
	int total=0;
	for(int i=0;i<n;i++){
		int a = x[i];
		bool q = true;
		debug()<<imie(v[i]);
		if(v[i].size() == 0)continue;
		for(int j =0;j<(int)v[i].size();j++){
			if(a <  x[v[i][j]])q = false;
			debug()<<imie(a)<<imie(x[v[i][j]]);
		}
		if(q) total++;
	}
	debug()<<imie(v);
	debug()<<imie(x);
	cout<<total;
	
	
	
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:45: error: no match for 'operator<<' (operand types are 'debug' and 'vi [(n + 1)]' {aka 'std::vector<int> [(n + 1)]'})
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                             ^~ ~~~~~~~~~~~~~
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
a.cc:8:23: note: candidate: 'template<class c> debug& debug::operator<<(const c&)'
    8 | #define dor > debug & operator <<
      |                       ^~~~~~~~
a.cc:30:5: note: in expansion of macro 'dor'
   30 | sim dor(const c&) { ris; }
      |     ^~~
a.cc:8:23: note:   template argument deduction/substitution failed:
    8 | #define dor > debug & operator <<
      |                       ^~~~~~~~
a.cc:30:5: note: in expansion of macro 'dor'
   30 | sim dor(const c&) { ris; }
      |     ^~~
a.cc:33:60: note:   variable-sized array type 'vi [(n + 1)]' {aka 'std::vector<int> [(n + 1)]'} is not a valid template argument
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from a.cc:1:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
 1715 |     operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
  125 |     operator<<(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note:   template argument deduction/substitution failed:
a.cc:33:24: note:   cannot convert '(& debug().debug::operator<< <char [3]>(" ["))->debug::operator<< <char [4]>("v: ")' (type 'debug') to type 'std::byte'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                        ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
  763 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 4077 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
 1687 |     operator<<(std::basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
  339 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
      |     ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/c++/14/memory:80,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
   70 |     operator<<(std::basic_ostream<_Ch, _Tr>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
  563 |     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
  573 |     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<_CharT, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
  579 |     operator<<(basic_ostream<char, _Traits>& __out, char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note:   template argument deduction/substitution failed:
a.cc:33:60: note:   'debug' is not derived from 'std::basic_ostream<char, _Traits>'
   33 | #define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
      |                                                            ^
a.cc:77:18: note: in expansion of macro 'imie'
   77 |         debug()<<imie(v);
      |                  ^~~~
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
  590 |     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostre