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_24727087_2042.cpp:2:1: error: 'vector' does not name a type
 vector<int>e[MAX];
 ^
0_0_24727087_2042.cpp:3:1: error: 'vector' does not name a type
 vector<int>son;
 ^
0_0_24727087_2042.cpp:4:1: error: 'vector' does not name a type
 vector<int>dp;
 ^
0_0_24727087_2042.cpp: In function 'int DFS(int, int)':
0_0_24727087_2042.cpp:8:5: error: 'son' was not declared in this scope
     son[r]=1;
     ^
0_0_24727087_2042.cpp:9:5: error: 'dp' was not declared in this scope
     dp[r]=0;
     ^
0_0_24727087_2042.cpp:10:15: error: 'e' was not declared in this scope
     for(i=0;i<e[r].size();i++){
               ^
0_0_24727087_2042.cpp: At global scope:
0_0_24727087_2042.cpp:29:5: error: 'vector' does not name a type
     vector<int> sumOfDistancesInTree(int N, vector<vector<int>>& edges) {
     ^


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-28 09:19:17, Gzip enabled