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_39431952_18942.cpp:108:1: error: 'vector' does not name a type
  108 | vector<int> tree[N];
      | ^~~~~~
0_0_39431952_18942.cpp: In function 'void dfs(int)':
0_0_39431952_18942.cpp:113:24: error: 'tree' was not declared in this scope; did you mean 'free'?
  113 |     for(int i = 0; i < tree[now].size(); i++){
      |                        ^~~~
      |                        free
0_0_39431952_18942.cpp: In function 'int main()':
0_0_39431952_18942.cpp:205:13: error: 'tree' was not declared in this scope; did you mean 'free'?
  205 |             tree[i].clear();
      |             ^~~~
      |             free
0_0_39431952_18942.cpp:209:13: error: 'tree' was not declared in this scope; did you mean 'free'?
  209 |             tree[tmp].push_back(i);
      |             ^~~~
      |             free


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-01 12:37:32, Gzip enabled