# 1번째 컴파일 단계
Joi.cpp:6:1: error: 'vector' does not name a type
6 | vector<ll>g[N];
| ^~~~~~
Joi.cpp: In function 'void dfs(ll, ll, ll)':
Joi.cpp:11:13: error: 'g' was not declared in this scope
11 | for(ll to:g[v]){
| ^
Joi.cpp: In function 'void Joi(int, int, int*, int*, long long int, int)':
Joi.cpp:20:5: error: 'g' was not declared in this scope
20 | g[v].push_back(u);
| ^
Joi.cpp:22:28: error: 'g' was not declared in this scope
22 | }for(ll i=0;i<n;i++)sort(g[i].begin(),g[i].end());
| ^
Joi.cpp:22:23: error: 'sort' was not declared in this scope
22 | }for(ll i=0;i<n;i++)sort(g[i].begin(),g[i].end());
| ^~~~
Joi.cpp:22:23: note: suggested alternatives:
In file included from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from Joi.cpp:2:
/usr/include/c++/11/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
In file included from /usr/include/c++/11/algorithm:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from Joi.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:1834:30: note: 'std::ranges::sort'
1834 | inline constexpr __sort_fn sort{};
| ^~~~