0_0_34106424_18772.cpp:2:9: error: 'pair' does not name a type
typedef pair<int,int> pii;
^
0_0_34106424_18772.cpp:3:1: error: 'vector' does not name a type
vector<pii> g[N];
^
0_0_34106424_18772.cpp: In function 'void getsz(int, int)':
0_0_34106424_18772.cpp:13:18: error: 'g' was not declared in this scope
for(auto t : g[x]) {
^
0_0_34106424_18772.cpp:17:43: error: 'max' was not declared in this scope
maxpart = max(maxpart, sz[t.first]);
^
0_0_34106424_18772.cpp:19:39: error: 'max' was not declared in this scope
maxpart = max(maxpart, all - sz[x]);
^
0_0_34106424_18772.cpp: In function 'void travel(int)':
0_0_34106424_18772.cpp:32:38: error: 'max' was not declared in this scope
max_dep = max(max_dep, dep[u]);
^
0_0_34106424_18772.cpp:33:23: error: 'g' was not declared in this scope
for(auto &v : g[u]){
^
0_0_34106424_18772.cpp: In function 'void travel2(int)':
0_0_34106424_18772.cpp:49:21: error: 'g' was not declared in this scope
for(auto &v:g[u]) {
^
0_0_34106424_18772.cpp:58:45: error: 'max' was not declared in this scope
int d = max(0, node_len - dep[u] + 1);
^
0_0_34106424_18772.cpp:62:21: error: 'g' was not declared in this scope
for(auto &v:g[u]) {
^
0_0_34106424_18772.cpp: In function 'void get(int)':
0_0_34106424_18772.cpp:79:19: error: 'g' was not declared in this scope
for(auto &v : g[u]) {
^
0_0_34106424_18772.cpp:83:10: error: 'i' was not declared in this scope
_rep(i,0,max_dep) allcount[i] = 0;
^
0_0_34106424_18772.cpp:83:21: error: '_rep' was not declared in this scope
_rep(i,0,max_dep) allcount[i] = 0;
^
0_0_34106424_18772.cpp:84:19: error: 'g' was not declared in this scope
for(auto &v : g[u]) {
^
0_0_34106424_18772.cpp: In function 'int main()':
0_0_34106424_18772.cpp:94:26: error: 'scanf' was not declared in this scope
int T; scanf("%d", &T);
^
0_0_34106424_18772.cpp:100:14: error: 'i' was not declared in this scope
_rep(i, 1, n) {
^
0_0_34106424_18772.cpp:100:21: error: '_rep' was not declared in this scope
_rep(i, 1, n) {
^
0_0_34106424_18772.cpp:115:27: error: 'printf' was not declared in this scope
printf("%d\n", res);
^
|