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_39359789_25484.cpp:10:21: error: 'N' was not declared in this scope
   10 | int pos[MAXN+5],top[N],siz[N],son[N],fa[N];
      |                     ^
0_0_39359789_25484.cpp:10:28: error: 'N' was not declared in this scope
   10 | int pos[MAXN+5],top[N],siz[N],son[N],fa[N];
      |                            ^
0_0_39359789_25484.cpp:10:35: error: 'N' was not declared in this scope
   10 | int pos[MAXN+5],top[N],siz[N],son[N],fa[N];
      |                                   ^
0_0_39359789_25484.cpp:10:41: error: 'N' was not declared in this scope
   10 | int pos[MAXN+5],top[N],siz[N],son[N],fa[N];
      |                                         ^
0_0_39359789_25484.cpp: In function 'void dfs1(int, int)':
0_0_39359789_25484.cpp:50:9: error: 'siz' was not declared in this scope; did you mean 'sin'?
   50 |         siz[x]=1,fa[x]=f;
      |         ^~~
      |         sin
0_0_39359789_25484.cpp:50:18: error: 'fa' was not declared in this scope; did you mean 'f'?
   50 |         siz[x]=1,fa[x]=f;
      |                  ^~
      |                  f
0_0_39359789_25484.cpp:55:32: error: 'son' was not declared in this scope; did you mean 'sin'?
   55 |                         if(siz[son[x]]<siz[y])
      |                                ^~~
      |                                sin
0_0_39359789_25484.cpp: In function 'void dfs2(int, int)':
0_0_39359789_25484.cpp:61:9: error: 'top' was not declared in this scope; did you mean 'tot'?
   61 |         top[x]=now;
      |         ^~~
      |         tot
0_0_39359789_25484.cpp:62:12: error: 'son' was not declared in this scope; did you mean 'sin'?
   62 |         if(son[x])dfs2(son[x],now);
      |            ^~~
      |            sin
0_0_39359789_25484.cpp:64:23: error: 'fa' was not declared in this scope; did you mean 'fma'?
   64 |                 if(y!=fa[x]&&y!=son[x])
      |                       ^~
      |                       fma
0_0_39359789_25484.cpp:64:33: error: 'son' was not declared in this scope; did you mean 'sin'?
   64 |                 if(y!=fa[x]&&y!=son[x])
      |                                 ^~~
      |                                 sin
0_0_39359789_25484.cpp: In function 'int lca(int, int)':
0_0_39359789_25484.cpp:69:15: error: 'top' was not declared in this scope; did you mean 'tot'?
   69 |         while(top[x]^top[y]){
      |               ^~~
      |               tot
0_0_39359789_25484.cpp:71:19: error: 'fa' was not declared in this scope; did you mean 'fma'?
   71 |                 x=fa[top[x]];
      |                   ^~
      |                   fma
0_0_39359789_25484.cpp: In function 'int main()':
0_0_39359789_25484.cpp:82:24: error: 'son' was not declared in this scope; did you mean 'sin'?
   82 |                 memset(son,0,sizeof son);
      |                        ^~~
      |                        sin
0_0_39359789_25484.cpp:83:24: error: 'siz' was not declared in this scope; did you mean 'sin'?
   83 |                 memset(siz,0,sizeof siz);
      |                        ^~~
      |                        sin


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-26 02:19:45, Gzip enabled