0_0_39476986_330.cpp: In function 'long long int solve(long long int)':
0_0_39476986_330.cpp:15:5: error: 'cin' was not declared in this scope
15 | cin >> n >> m;
| ^~~
0_0_39476986_330.cpp:16:5: error: 'vector' was not declared in this scope
16 | vector<int>du(n + 1, 0);
| ^~~~~~
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:16:12: note: in expansion of macro 'int'
16 | vector<int>du(n + 1, 0);
| ^~~
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:17:19: note: in expansion of macro 'int'
17 | vector<vector<int>>eg(n + 1);
| ^~~
0_0_39476986_330.cpp:20:9: error: 'eg' was not declared in this scope
20 | eg[u].emplace_back(v);
| ^~
0_0_39476986_330.cpp:22:9: error: 'du' was not declared in this scope; did you mean 'u'?
22 | du[u]++;
| ^~
| u
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:27:16: note: in expansion of macro 'int'
27 | vector<int>ans(n + 1, 0);
| ^~~
0_0_39476986_330.cpp: In lambda function:
0_0_39476986_330.cpp:29:27: error: 'eg' was not declared in this scope
29 | for (auto c : eg[x]) {
| ^~
0_0_39476986_330.cpp:32:32: error: 'ans' was not declared in this scope
32 | Max = max(Max, ans[x] + ans[c] + (du[x] - 1) * (ksm(2, m) - 1) + 1);
| ^~~
0_0_39476986_330.cpp:32:51: error: 'du' was not declared in this scope; did you mean 'u'?
32 | Max = max(Max, ans[x] + ans[c] + (du[x] - 1) * (ksm(2, m) - 1) + 1);
| ^~
| u
0_0_39476986_330.cpp:32:23: error: there are no arguments to 'max' that depend on a template parameter, so a declaration of 'max' must be available [-fpermissive]
32 | Max = max(Max, ans[x] + ans[c] + (du[x] - 1) * (ksm(2, m) - 1) + 1);
| ^~~
0_0_39476986_330.cpp:32:23: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39476986_330.cpp:33:26: error: there are no arguments to 'max' that depend on a template parameter, so a declaration of 'max' must be available [-fpermissive]
33 | ans[x] = max(ans[x], ans[c]);
| ^~~
0_0_39476986_330.cpp:35:13: error: 'ans' was not declared in this scope
35 | ans[x] += (du[x] - 1) * (ksm(2, m) - 1) + 1;
| ^~~
0_0_39476986_330.cpp:35:24: error: 'du' was not declared in this scope; did you mean 'u'?
35 | ans[x] += (du[x] - 1) * (ksm(2, m) - 1) + 1;
| ^~
| u
0_0_39476986_330.cpp: In function 'long long int solve(long long int)':
0_0_39476986_330.cpp:41:9: error: 'pair' was not declared in this scope
41 | pair<int, int>Max;//一位度数-数量, 二维数量
| ^~~~
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:41:14: note: in expansion of macro 'int'
41 | pair<int, int>Max;//一位度数-数量, 二维数量
| ^~~
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:42:21: note: in expansion of macro 'int'
42 | vector<pair<int, int>>dep(n + 1, {0, 0});
| ^~~
0_0_39476986_330.cpp:42:48: error: expected primary-expression before ')' token
42 | vector<pair<int, int>>dep(n + 1, {0, 0});
| ^
0_0_39476986_330.cpp:43:53: error: 'pair' does not name a type
43 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^~~~
0_0_39476986_330.cpp:43:57: error: expected '{' before '<' token
43 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^
0_0_39476986_330.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39476986_330.cpp:43:58: note: in expansion of macro 'int'
43 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^~~
0_0_39476986_330.cpp:55:17: error: 'Max' was not declared in this scope
55 | return (Max.first * (ksm(2, m) - 1 + M) % M + Max.second) % M;
| ^~~
0_0_39476986_330.cpp: In function 'int main()':
0_0_39476986_330.cpp:61:5: error: 'ios' has not been declared
61 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~
0_0_39476986_330.cpp:61:34: error: 'cin' was not declared in this scope
61 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~
0_0_39476986_330.cpp:61:52: error: 'cout' was not declared in this scope
61 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~~
0_0_39476986_330.cpp:65:29: error: 'endl' was not declared in this scope
65 | cout << solve(_) << endl;
| ^~~~
0_0_39476986_330.cpp: In instantiation of 'solve(long long int)::<lambda(auto:1, long long int, long long int)> [with auto:1 = solve(long long int)::<lambda(auto:1, long long int, long long int)>]':
0_0_39476986_330.cpp:37:12: required from here
0_0_39476986_330.cpp:32:83: error: 'max' was not declared in this scope
32 | Max = max(Max, ans[x] + ans[c] + (du[x] - 1) * (ksm(2, m) - 1) + 1);
| ^
|