Borderou de evaluare (job #2679201)
Utilizator | Data | 29 noiembrie 2020 22:23:47 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:1: error: 'Int' does not name a type
Int fa[MAXN],LCA[MAXM],dist[MAXN];//dist[i] records the distance from point i to the root node
^~~
main.cpp: In function 'void add_edge(int, int, int)':
main.cpp:25:14: error: 'Edge' was not declared in this scope
Edge[x]=tot1;//update number
^~~~
main.cpp: In function 'int get(int)':
main.cpp:36:10: error: 'fa' was not declared in this scope
if(fa[x]==x) return x;
^~
main.cpp:37:14: error: 'fa' was not declared in this scope
return fa[x]=get(fa[x]);
^~
main.cpp: In function 'void Tarjan(int)':
main.cpp:41:14: error: 'Fa' was not declared in this scope
Fa[x]=x;//As the current root node, point its father to himself
^~
main.cpp:42:14: error: 'Vis' was not declared in this scope
Vis[x]=true;//mark that the point has passed
^~~
main.cpp:46:40: error: 'If' was not declared in this scope
If(vis[now_to])// If the subtrees of its child nodes and child nodes are all accessed, this step will be entered, judged by vis
^
main.cpp:54:38: error: 'Dist' was not declared in this scope
Dist[now_to]=dist[x]+a[i].v;//Update dist value
^~~~
main.cpp:54:51: error: 'dist' was not declared in this scope
Dist[now_to]=dist[x]+a[i].v;//Update dist value
^~~~
main.cpp:55:55: error: expected primary-expression before '/' token
Tarjan (now_to); / / is equivalent to reverting now_to as the root node
^
main.cpp:55:57: error: expected primary-expression before '/' token
Tarjan (now_to); / / is equivalent to reverting now_to as the root node
^
main.cpp:55:59: error: 'is' was not declared in this scope
Tarjan (now_to); / / is equivalent to reverting now_to as the root node
^~
main.cpp: In function 'int main()':
main.cpp:72:20: error: 'dist' was not declared in this scope
memset(dist,0,sizeof(dist));
^~~~
main.cpp:73:20: error: 'fa' was not declared in this scope
memset(fa,0,sizeof(fa));
^~
main.cpp:77:38: error: 'Fa' was not declared in this scope
Fa[i]=i;//First point the father node of all nodes to themselves
^~
main.cpp:82:52: error: 'Add_edge' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !