0_0_39481881_24117.cpp: In function 'void dfs(int, int)':
0_0_39481881_24117.cpp:3:22: error: 'g' was not declared in this scope
3 | for(auto L : g[u])
| ^
0_0_39481881_24117.cpp:7:17: error: 'c' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^
0_0_39481881_24117.cpp:7:27: error: 'dp' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^~
0_0_39481881_24117.cpp:7:44: error: 'd' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^
0_0_39481881_24117.cpp:7:63: error: 'm' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^
0_0_39481881_24117.cpp:7:57: error: 'qmi' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^~~
0_0_39481881_24117.cpp:7:21: error: 'max' was not declared in this scope
7 | c = max(c,dp[u] + dp[L] + (d[u] - 1) * (qmi(2,m) - 1) + 1);
| ^~~
0_0_39481881_24117.cpp:10:9: error: 'dp' was not declared in this scope
10 | dp[u] += (d[u] - 1) * (qmi(2,m) - 1) + 1;
| ^~
0_0_39481881_24117.cpp:10:19: error: 'd' was not declared in this scope
10 | dp[u] += (d[u] - 1) * (qmi(2,m) - 1) + 1;
| ^
0_0_39481881_24117.cpp:10:38: error: 'm' was not declared in this scope
10 | dp[u] += (d[u] - 1) * (qmi(2,m) - 1) + 1;
| ^
0_0_39481881_24117.cpp:10:32: error: 'qmi' was not declared in this scope
10 | dp[u] += (d[u] - 1) * (qmi(2,m) - 1) + 1;
| ^~~
0_0_39481881_24117.cpp: At global scope:
0_0_39481881_24117.cpp:12:1: error: 'pair' does not name a type
12 | pair<int,int> dp1[N],p;
| ^~~~
0_0_39481881_24117.cpp: In function 'void dfs1(int, int)':
0_0_39481881_24117.cpp:15:22: error: 'g' was not declared in this scope
15 | for(auto L : g[u])
| ^
0_0_39481881_24117.cpp:19:17: error: 'p' was not declared in this scope
19 | p = max(p,{dp1[u].first + dp1[L].first + (d[u] - 1),dp1[u].second + 1 + dp1[L].second});
| ^
0_0_39481881_24117.cpp:19:28: error: 'dp1' was not declared in this scope
19 | p = max(p,{dp1[u].first + dp1[L].first + (d[u] - 1),dp1[u].second + 1 + dp1[L].second});
| ^~~
0_0_39481881_24117.cpp:19:59: error: 'd' was not declared in this scope
19 | p = max(p,{dp1[u].first + dp1[L].first + (d[u] - 1),dp1[u].second + 1 + dp1[L].second});
| ^
0_0_39481881_24117.cpp:19:21: error: 'max' was not declared in this scope
19 | p = max(p,{dp1[u].first + dp1[L].first + (d[u] - 1),dp1[u].second + 1 + dp1[L].second});
| ^~~
0_0_39481881_24117.cpp:22:9: error: 'dp1' was not declared in this scope
22 | dp1[u].first += (d[u] - 1);
| ^~~
0_0_39481881_24117.cpp:22:26: error: 'd' was not declared in this scope
22 | dp1[u].first += (d[u] - 1);
| ^
|