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_17400247_6473.cpp: In function 'void dfs(int, int)':
0_0_17400247_6473.cpp:4:2: error: 'dep' was not declared in this scope
  dep[u] = dep[pre]+1;
  ^
0_0_17400247_6473.cpp:5:2: error: 'Size' was not declared in this scope
  Size[u] = 1;
  ^
0_0_17400247_6473.cpp:6:14: error: 'first' was not declared in this scope
  for(int i = first[u];i != -1;i = nxt[i])
              ^
0_0_17400247_6473.cpp:6:35: error: 'nxt' was not declared in this scope
  for(int i = first[u];i != -1;i = nxt[i])
                                   ^
0_0_17400247_6473.cpp:8:11: error: 'vv' was not declared in this scope
   int v = vv[i];
           ^
0_0_17400247_6473.cpp:10:3: error: 'fa' was not declared in this scope
   fa[v] = u;
   ^
0_0_17400247_6473.cpp:13:6: error: 'Son' was not declared in this scope
   if(Son[u] == -1 || Size[v] > Size[Son[u]])
      ^
0_0_17400247_6473.cpp: In function 'void dfs2(int, int)':
0_0_17400247_6473.cpp:20:2: error: 'Pos' was not declared in this scope
  Pos[u] = ++pos;
  ^
0_0_17400247_6473.cpp:20:13: error: 'pos' was not declared in this scope
  Pos[u] = ++pos;
             ^
0_0_17400247_6473.cpp:21:2: error: 'fPos' was not declared in this scope
  fPos[pos] = u;
  ^
0_0_17400247_6473.cpp:22:2: error: 'Top' was not declared in this scope
  Top[u] = t;
  ^
0_0_17400247_6473.cpp:23:5: error: 'Son' was not declared in this scope
  if(Son[u] != -1)
     ^
0_0_17400247_6473.cpp:25:14: error: 'first' was not declared in this scope
  for(int i = first[u];i != -1;i = nxt[i])
              ^
0_0_17400247_6473.cpp:25:35: error: 'nxt' was not declared in this scope
  for(int i = first[u];i != -1;i = nxt[i])
                                   ^
0_0_17400247_6473.cpp:27:11: error: 'vv' was not declared in this scope
   int v = vv[i];
           ^
0_0_17400247_6473.cpp:28:11: error: 'fa' was not declared in this scope
   if(v != fa[u] && v != Son[u])
           ^
0_0_17400247_6473.cpp:28:25: error: 'Son' was not declared in this scope
   if(v != fa[u] && v != Son[u])
                         ^
0_0_17400247_6473.cpp: In function 'void Get_Edge(int, int, int)':
0_0_17400247_6473.cpp:35:11: error: 'Top' was not declared in this scope
  int f1 = Top[u],f2 = Top[v];
           ^
0_0_17400247_6473.cpp:36:14: error: 'f2' was not declared in this scope
  while(f1 != f2)
              ^
0_0_17400247_6473.cpp:38:6: error: 'dep' was not declared in this scope
   if(dep[f1] < dep[f2])
      ^
0_0_17400247_6473.cpp:40:12: error: 'swap' was not declared in this scope
    swap(u,v);
            ^
0_0_17400247_6473.cpp:43:3: error: 'ans' was not declared in this scope
   ans.push_back(Edge(Pos[f1],Pos[u],z));
   ^
0_0_17400247_6473.cpp:43:22: error: 'Pos' was not declared in this scope
   ans.push_back(Edge(Pos[f1],Pos[u],z));
                      ^
0_0_17400247_6473.cpp:43:38: error: 'Edge' was not declared in this scope
   ans.push_back(Edge(Pos[f1],Pos[u],z));
                                      ^
0_0_17400247_6473.cpp:44:7: error: 'fa' was not declared in this scope
   u = fa[f1]; f1 = Top[u];
       ^
0_0_17400247_6473.cpp:46:5: error: 'dep' was not declared in this scope
  if(dep[u] > dep[v]) swap(u,v);
     ^
0_0_17400247_6473.cpp:46:30: error: 'swap' was not declared in this scope
  if(dep[u] > dep[v]) swap(u,v);
                              ^
0_0_17400247_6473.cpp:47:2: error: 'ans' was not declared in this scope
  ans.push_back(Edge(Pos[u],Pos[v],z));
  ^
0_0_17400247_6473.cpp:47:21: error: 'Pos' was not declared in this scope
  ans.push_back(Edge(Pos[u],Pos[v],z));
                     ^
0_0_17400247_6473.cpp:47:36: error: 'Edge' was not declared in this scope
  ans.push_back(Edge(Pos[u],Pos[v],z));
                                    ^
0_0_17400247_6473.cpp: In function 'int main()':
0_0_17400247_6473.cpp:52:26: error: 'scanf' was not declared in this scope
  while(scanf("%d%d",&n,&m)==2 && (n|m))
                          ^
0_0_17400247_6473.cpp:54:9: error: 'init' was not declared in this scope
   init(n);
         ^
0_0_17400247_6473.cpp:59:15: error: 'addedge' was not declared in this scope
    addedge(u,v);
               ^
0_0_17400247_6473.cpp:61:3: error: 'dep' was not declared in this scope
   dep[1] = 0;
   ^
0_0_17400247_6473.cpp:70:21: error: 'max' was not declared in this scope
    maxz = max(maxz,z);
                     ^
0_0_17400247_6473.cpp:72:13: error: 'ans' was not declared in this scope
   int len = ans.size();
             ^
0_0_17400247_6473.cpp:76:4: error: 'fuck' was not declared in this scope
    fuck[u].push_back(z);
    ^
0_0_17400247_6473.cpp:76:22: error: 'z' was not declared in this scope
    fuck[u].push_back(z);
                      ^
0_0_17400247_6473.cpp:77:9: error: 'v' was not declared in this scope
    fuck[v+1].push_back(-z);
         ^
0_0_17400247_6473.cpp:80:9: error: 'fuck' was not declared in this scope
    sort(fuck[i].begin(),fuck[i].end());
         ^
0_0_17400247_6473.cpp:80:38: error: 'sort' was not declared in this scope
    sort(fuck[i].begin(),fuck[i].end());
                                      ^
0_0_17400247_6473.cpp:81:21: error: 'buildtree' was not declared in this scope
   buildtree(1,1,maxz);
                     ^
0_0_17400247_6473.cpp:84:13: error: 'fuck' was not declared in this scope
    int sz = fuck[i].size();
             ^
0_0_17400247_6473.cpp:90:20: error: 'Update' was not declared in this scope
      Update(1,-k,-1);
                    ^
0_0_17400247_6473.cpp:94:18: error: 'Update' was not declared in this scope
      Update(1,k,1);
                  ^
0_0_17400247_6473.cpp:97:4: error: 'out' was not declared in this scope
    out[fPos[i]] = st[1].keynum;
    ^
0_0_17400247_6473.cpp:97:8: error: 'fPos' was not declared in this scope
    out[fPos[i]] = st[1].keynum;
        ^
0_0_17400247_6473.cpp:97:19: error: 'st' was not declared in this scope
    out[fPos[i]] = st[1].keynum;
                   ^
0_0_17400247_6473.cpp:101:18: error: 'out' was not declared in this scope
    printf("%d\n",out[i]);
                  ^
0_0_17400247_6473.cpp:101:24: error: 'printf' was not declared in this scope
    printf("%d\n",out[i]);
                        ^


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-09 19:01:01, Gzip enabled