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_28922340_18487.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_28922340_18487.cpp: In function 'int main()':
0_0_28922340_18487.cpp:159:37: error: 'u' was not declared in this scope
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                     ^
0_0_28922340_18487.cpp:159:69: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                     ^
0_0_28922340_18487.cpp:159:79: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                               ^
0_0_28922340_18487.cpp:159:138: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                          ^
0_0_28922340_18487.cpp:159:155: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                                           ^
0_0_28922340_18487.cpp:159:172: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                                                            ^
0_0_28922340_18487.cpp:159:196: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                                                                                    ^
0_0_28922340_18487.cpp:159:204: error: expected primary-expression before '=' token
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                                                                                            ^
0_0_28922340_18487.cpp:159:218: error: 'make_root' was not declared in this scope
          for(int i=1;i<n;i++){ node[u]-="" scanf("%d%d%d",&u,&v,&d);="" u,v,d;="" int="" while(m--){="" scanf("%d",&m);="" dfs(1,1);="" }="" addedge(v,u);="" addedge(u,v);="" scanf("%d%d",&u,&v);="" u,v;="">make_root();
                                                                                                                                                                                                                          ^
0_0_28922340_18487.cpp:160:19: error: 'v' was not declared in this scope
              node[v]->access();
                   ^
0_0_28922340_18487.cpp:162:34: error: 'd' was not declared in this scope
              node[v]->update_add(d);
                                  ^


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-30 12:10:11, Gzip enabled