0_0_39601468_20840.cpp: In function 'long long int solve(long long int)':
0_0_39601468_20840.cpp:15:5: error: 'cin' was not declared in this scope
15 | cin >> n >> m;
| ^~~
0_0_39601468_20840.cpp:16:5: error: 'vector' was not declared in this scope
16 | vector<int>du(n + 1, 0);
| ^~~~~~
0_0_39601468_20840.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39601468_20840.cpp:16:12: note: in expansion of macro 'int'
16 | vector<int>du(n + 1, 0);
| ^~~
0_0_39601468_20840.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39601468_20840.cpp:17:19: note: in expansion of macro 'int'
17 | vector<vector<int>>eg(n + 1);
| ^~~
0_0_39601468_20840.cpp:20:9: error: 'eg' was not declared in this scope
20 | eg[u].emplace_back(v);
| ^~
0_0_39601468_20840.cpp:22:9: error: 'du' was not declared in this scope; did you mean 'u'?
22 | du[u]++;
| ^~
| u
0_0_39601468_20840.cpp:26:9: error: 'pair' was not declared in this scope
26 | pair<int, int>Max;//一位度数-数量, 二维数量
| ^~~~
0_0_39601468_20840.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39601468_20840.cpp:26:14: note: in expansion of macro 'int'
26 | pair<int, int>Max;//一位度数-数量, 二维数量
| ^~~
0_0_39601468_20840.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39601468_20840.cpp:27:21: note: in expansion of macro 'int'
27 | vector<pair<int, int>>dep(n + 1, {0, 0});
| ^~~
0_0_39601468_20840.cpp:27:48: error: expected primary-expression before ')' token
27 | vector<pair<int, int>>dep(n + 1, {0, 0});
| ^
0_0_39601468_20840.cpp:28:53: error: 'pair' does not name a type
28 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^~~~
0_0_39601468_20840.cpp:28:57: error: expected '{' before '<' token
28 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^
0_0_39601468_20840.cpp:1:13: error: expected primary-expression before 'long'
1 | #define int long long
| ^~~~
0_0_39601468_20840.cpp:28:58: note: in expansion of macro 'int'
28 | auto dfs = [&](auto self, int x, int fa) -> pair<int, int> {
| ^~~
0_0_39601468_20840.cpp:40:17: error: 'Max' was not declared in this scope
40 | return (Max.first * (ksm(2, m) - 1 + M) % M + Max.second) % M;
| ^~~
0_0_39601468_20840.cpp: In function 'int main()':
0_0_39601468_20840.cpp:46:5: error: 'ios' has not been declared
46 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~
0_0_39601468_20840.cpp:46:34: error: 'cin' was not declared in this scope
46 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~
0_0_39601468_20840.cpp:46:52: error: 'cout' was not declared in this scope
46 | ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
| ^~~~
0_0_39601468_20840.cpp:50:29: error: 'endl' was not declared in this scope
50 | cout << solve(_) << endl;
| ^~~~
|