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_38632327_18494.cpp:24:1: error: 'vector' does not name a type; did you mean 'perror'?
 vector<int> G[N];
 ^~~~~~
 perror
0_0_38632327_18494.cpp: In function 'void dfs1(const int&, const int&)':
0_0_38632327_18494.cpp:34:15: error: 'G' was not declared in this scope
  for(auto v : G[u]) if(v != f) {
               ^
0_0_38632327_18494.cpp: In function 'void dfs2(const int&, const int&)':
0_0_38632327_18494.cpp:46:15: error: 'G' was not declared in this scope
  for(auto v : G[u]) if(v != fa[u] && v != son[u]) dfs2(v, v);
               ^
0_0_38632327_18494.cpp: In function 'int main()':
0_0_38632327_18494.cpp:89:29: error: 'G' was not declared in this scope
   for(int i = 1;i <= n;i++) G[i].clear();
                             ^
0_0_38632327_18494.cpp:92:4: error: 'G' was not declared in this scope
    G[u].push_back(v);
    ^


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:47:24, Gzip enabled