Language: C++

// みなさん私はカーティキー・シャルマです。LNMIITで勉強しています。私は2年目で、コロナパンデミックが発
// 生しています。世界は終わりそうだ。だから私はそれを最大限に生きたいと思っています。それはつまり、コー
// ドを最大限に意味しているのです。私の好きなアニメは「キメツノヤイバ」で、私の一番の男の子はゼニツで、
// 私の一番の女の子はネズコです。私の好きな呼吸スタイルは息吹です。私の最高の悪魔の血の芸術は、
// ククシボによって使用される月の息です。ムーザンは亡くなり、今ではタンジローがポップの新しい魔王です。
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <vector>
#include <string>
using namespace std;
typedef double  dbl;
typedef long long int lld;
#define PI 3.14159265358979323
#define foi(i,n) for(i = 0; i < n; i+=1)
#define fod(i,n) for(i=n-1; i >=0; i-=1)
#define MAX std::numeric_limits<lld>::max()
#define MIN std::numeric_limits<lld>::min()
#define FastIO  ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define Len 100005
lld vis[Len];
set <lld> high;
void dfs (vector <lld> V[], lld H[], lld pos)
{
	vis[pos] = 1;
	vector <lld>child;
	lld flag = 1;
	for(lld i = 0; i < V[pos].size(); i+=1){
		if (vis[V[pos][i]] == 0){
			if (H[pos] <= H[V[pos][i]]){
				if (H[pos] < H[V[pos][i]]){
                              child.insert(V[pos][i]);
                        }
                        else{
                              flag = 0;
                        }
			}
		}
	}
	if (!child.empty() || flag  == 0){
		for(lld i = 0; i < child.size(); i+=1){
			dfs(V, H, child[i]);
		}
	}
	else{
		high.insert(pos);
	}
}
int main ()
{
      FastIO
      for(lld i = 0; i < Len; i++){
      	vis[i] = 0;
      }
      lld n, m;
      cin >> n >> m;
      lld H[n+1];
      for(lld i = 1; i <=n; i++){
      	cin >> H[i];
      }
      vector <lld> V[n+1];
      for(lld i = 0; i < m; i++){
      	lld x, y;
      	cin >> x;
      	cin >> y;
      	V[x].push_back(y);
      	V[y].push_back(x);
      }
      for(lld i = 1; i <=n; i++){
      	if (vis[i] ==  0){
      		dfs(V, H,i);
      	}
      }
      cout << high.size();
      // for(set <lld> :: iterator pos = high.begin(); pos != high.end(); pos++){
      // 	cout << (*pos) << " ";
      // }
      return 0;
}


Compiler output:
a.cc: In function 'void dfs(std::vector<long long int>*, lld*, lld)':
a.cc:34:43: error: no matching function for call to 'std::vector<long long int>::insert(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)'
   34 |                               child.insert(V[pos][i]);
      |                               ~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:6:
/usr/include/c++/14/bits/stl_vector.h:1484:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1484 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:1484:9: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/vector:72:
/usr/include/c++/14/bits/vector.tcc:133:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::vector<long long int>::iterator; const_iterator = std::vector<long long int>::const_iterator; value_type = long long int]'
  133 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:133:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:1395:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::vector<long long int>::iterator; const_iterator = std::vector<long long int>::const_iterator; value_type = long long int]'
 1395 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:1395:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:1413:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::vector<long long int>::iterator; const_iterator = std::vector<long long int>::const_iterator]'
 1413 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:1413:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:1439:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::vector<long long int>::iterator; const_iterator = std::vector<long long int>::const_iterator; size_type = long unsigned int; value_type = long long int]'
 1439 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:1439:7: note:   candidate expects 3 arguments, 1 provided