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_37973060_26547.cpp:27:1: error: 'vi' does not name a type
 vi cnt[N];
 ^
0_0_37973060_26547.cpp:28:1: error: 'vi' does not name a type
 vi edge[N];
 ^
0_0_37973060_26547.cpp: In function 'void dfs(int)':
0_0_37973060_26547.cpp:32:5: error: 'cnt' was not declared in this scope
     cnt[val].pb(2 * u);
     ^
0_0_37973060_26547.cpp:35:57: error: 'all' was not declared in this scope
         ans[u] = cnt[x].size() - (upper_bound(all(cnt[x]), u) - cnt[x].begin());
                                                         ^
0_0_37973060_26547.cpp:37:18: error: 'edge' was not declared in this scope
     for(auto t : edge[u]) dfs(t);
                  ^
0_0_37973060_26547.cpp: In function 'void solve()':
0_0_37973060_26547.cpp:43:44: error: 'edge' was not declared in this scope
     for(int i = 0; i <= n; i++) ne[i] = 0, edge[i].clear();
                                            ^
0_0_37973060_26547.cpp:48:9: error: 'edge' was not declared in this scope
         edge[j].pb(i);
         ^
0_0_37973060_26547.cpp:50:5: error: 'edge' was not declared in this scope
     edge[0].pb(1);
     ^


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-09-28 22:55:49, Gzip enabled