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_16462249_15036.cpp: In function 'void DFS(int, int)':
0_0_16462249_15036.cpp:3:2: error: 'vis' was not declared in this scope
  vis[u] = 1;
  ^
0_0_16462249_15036.cpp:4:2: error: 'dfn' was not declared in this scope
  dfn[top] = dep;
  ^
0_0_16462249_15036.cpp:4:6: error: 'top' was not declared in this scope
  dfn[top] = dep;
      ^
0_0_16462249_15036.cpp:5:2: error: 'euler' was not declared in this scope
  euler[top] = u;
  ^
0_0_16462249_15036.cpp:6:2: error: 'pos' was not declared in this scope
  pos[u] = top;
  ^
0_0_16462249_15036.cpp:8:21: error: 'Tree' was not declared in this scope
  for(int i = 0; i < Tree[u].size(); i++)
                     ^
0_0_16462249_15036.cpp: In function 'void RMQ_init(int)':
0_0_16462249_15036.cpp:21:30: error: 'd' was not declared in this scope
  for(int i = 1; i <= n; i++) d[i][0] = i;
                              ^
0_0_16462249_15036.cpp:25:7: error: 'dfn' was not declared in this scope
    if(dfn[d[i][j-1]] < dfn[d[i + (1<<(j-1))][j-1]]) d[i][j] = d[i][j-1];
       ^
0_0_16462249_15036.cpp:25:11: error: 'd' was not declared in this scope
    if(dfn[d[i][j-1]] < dfn[d[i + (1<<(j-1))][j-1]]) d[i][j] = d[i][j-1];
           ^
0_0_16462249_15036.cpp: In function 'int RMQ(int, int)':
0_0_16462249_15036.cpp:34:5: error: 'dfn' was not declared in this scope
  if(dfn[d[L][k]] < dfn[d[R-(1<<k)+1][k]]) return d[L][k];
     ^
0_0_16462249_15036.cpp:34:9: error: 'd' was not declared in this scope
  if(dfn[d[L][k]] < dfn[d[R-(1<<k)+1][k]]) return d[L][k];
         ^
0_0_16462249_15036.cpp:35:9: error: 'd' was not declared in this scope
  return d[R-(1<<k)+1][k];
         ^
0_0_16462249_15036.cpp: In function 'int LCA(int, int)':
0_0_16462249_15036.cpp:40:5: error: 'pos' was not declared in this scope
  if(pos[u] > pos[v])  swap(u, v);
     ^
0_0_16462249_15036.cpp:40:32: error: 'swap' was not declared in this scope
  if(pos[u] > pos[v])  swap(u, v);
                                ^
0_0_16462249_15036.cpp:41:9: error: 'euler' was not declared in this scope
  return euler[RMQ(pos[u], pos[v])];
         ^
0_0_16462249_15036.cpp:41:19: error: 'pos' was not declared in this scope
  return euler[RMQ(pos[u], pos[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-12-02 06:53:54, Gzip enabled