F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 23:21:44, Gzip enabled