0_0_39259001_1560.cpp:11:20: error: elements of array 'std::array<int, 2> Stk [100003]' have incomplete type
11 | std::array<int, 2> Stk[100003];
| ^~~
0_0_39259001_1560.cpp:11:20: error: storage size of 'Stk' isn't known
0_0_39259001_1560.cpp: In function 'int main()':
0_0_39259001_1560.cpp:55:10: error: 'function' is not a member of 'std'
55 | std::function<void(int,int)> dfs = [&](int u, int f) -> void {
| ^~~~~~~~
0_0_39259001_1560.cpp:4:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
3 | #include <vector>
+++ |+#include <functional>
4 |
0_0_39259001_1560.cpp:55:31: error: expression list treated as compound expression in functional cast [-fpermissive]
55 | std::function<void(int,int)> dfs = [&](int u, int f) -> void {
| ^
0_0_39259001_1560.cpp:55:19: error: expected primary-expression before 'void'
55 | std::function<void(int,int)> dfs = [&](int u, int f) -> void {
| ^~~~
0_0_39259001_1560.cpp:69:9: error: 'dfs' was not declared in this scope
69 | dfs(Stk[i][1], -1);
| ^~~
|