0_0_39498751_10555.cpp:1:6: error: 'vector' in namespace 'std' does not name a template type
1 | std::vector<u64> a(n + 1);
| ^~~~~~
0_0_39498751_10555.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
+++ |+#include <vector>
1 | std::vector<u64> a(n + 1);
0_0_39498751_10555.cpp:2:14: error: 'vector' in namespace 'std' does not name a template type
2 | std::vector<u64> ans(n + 1);
| ^~~~~~
0_0_39498751_10555.cpp:2:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | std::vector<u64> ans(n + 1);
| ^~~
0_0_39498751_10555.cpp:3:9: error: expected unqualified-id before 'for'
3 | for (int i = 1; i <= n; i++) {
| ^~~
0_0_39498751_10555.cpp:3:25: error: 'i' does not name a type
3 | for (int i = 1; i <= n; i++) {
| ^
0_0_39498751_10555.cpp:3:33: error: 'i' does not name a type
3 | for (int i = 1; i <= n; i++) {
| ^
0_0_39498751_10555.cpp:6:14: error: 'vector' in namespace 'std' does not name a template type
6 | std::vector<int> hs(n + 1), sz(n + 1, 1);
| ^~~~~~
0_0_39498751_10555.cpp:6:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
6 | std::vector<int> hs(n + 1), sz(n + 1, 1);
| ^~~
0_0_39498751_10555.cpp:7:22: error: non-local lambda expression cannot have a capture-default
7 | auto dfs0 = [&](auto self, int x, int fx) -> void {
| ^
0_0_39498751_10555.cpp: In lambda function:
0_0_39498751_10555.cpp:8:31: error: 'adj' was not declared in this scope
8 | for (auto y : adj[x]) {
| ^~~
0_0_39498751_10555.cpp:13:29: error: 'sz' was not declared in this scope
13 | if (sz[y] > sz[hs[x]]) {
| ^~
0_0_39498751_10555.cpp:13:40: error: 'hs' was not declared in this scope
13 | if (sz[y] > sz[hs[x]]) {
| ^~
0_0_39498751_10555.cpp: At global scope:
0_0_39498751_10555.cpp:18:13: error: expected constructor, destructor, or type conversion before '(' token
18 | dfs0(dfs0, 1, 0);
| ^
|