# 1번째 컴파일 단계
Joi.cpp:4:1: error: 'vector' does not name a type
4 | vector<ll>g[N];
| ^~~~~~
Joi.cpp:5:9: error: 'N' was not declared in this scope
5 | ll used[N];
| ^
Joi.cpp: In function 'void dfs(ll, ll, ll)':
Joi.cpp:7:3: error: 'used' was not declared in this scope
7 | used[v]=1;
| ^~~~
Joi.cpp:9:13: error: 'g' was not declared in this scope
9 | for(ll to:g[v]){
| ^
Joi.cpp: In function 'void Joi(int, int, int*, int*, long long int, int)':
Joi.cpp:18:5: error: 'g' was not declared in this scope
18 | g[v].push_back(u);
| ^
Joi.cpp:20:28: error: 'g' was not declared in this scope
20 | }for(ll i=0;i<n;i++)sort(g[i].begin(),g[i].end());
| ^
Joi.cpp:20:23: error: 'sort' was not declared in this scope
20 | }for(ll i=0;i<n;i++)sort(g[i].begin(),g[i].end());
| ^~~~
Joi.cpp:20: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{};
| ^~~~