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_27290419_30891.cpp:62:1: error: expected initializer before 'bool'
 bool root[maxn],vis[maxn];//用于查询根节点、标记数组
 ^
0_0_27290419_30891.cpp: In function 'void dfs(int)':
0_0_27290419_30891.cpp:104:2: error: 'vis' was not declared in this scope
  vis[x] = 1;
  ^
0_0_27290419_30891.cpp: In function 'void init()':
0_0_27290419_30891.cpp:140:3: error: 'root' was not declared in this scope
   root[i] = vis[i] = dis[i] = lca[i] = 0;
   ^
0_0_27290419_30891.cpp:140:13: error: 'vis' was not declared in this scope
   root[i] = vis[i] = dis[i] = lca[i] = 0;
             ^
0_0_27290419_30891.cpp: In function 'int main()':
0_0_27290419_30891.cpp:184:4: error: 'root' was not declared in this scope
    root[vec[s1]] = 1;
    ^
0_0_27290419_30891.cpp:202:4: error: 'ans_order' was not declared in this scope
    ans_order[i].first = a;
    ^
0_0_27290419_30891.cpp:212:8: error: 'root' was not declared in this scope
    if(!root[i])//从根节点开始搜
        ^
0_0_27290419_30891.cpp:228:12: error: 'ans_order' was not declared in this scope
    int f = ans_order[i].first;
            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-25 21:13:10, Gzip enabled