Borderou de evaluare (job #2679205)

Utilizator Catalina07Encea Catalina Catalina07 Data 29 noiembrie 2020 22:25:59
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: 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 '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: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: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 Add_edge(A,B,C);//Create undirected edges, store with a linked list ^ main.cpp:89:56: error: 'Add_question' was not declared in this scope Add_question(A,B,i);//Use two records here to ensure that you can take care of these two points when updating the LCA. ^ main.cpp:62:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("input.in","r",stdin); ^ main.cpp:63:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("output.out","w",stdout); ^ main.cpp:64:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&DATA); ^ main.cpp:75:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&M); ^ main.cpp:81:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&A,&B,&C); Non zero exit status: 1

Ceva nu functioneaza?