Borderou de evaluare (job #2771084)

Utilizator retrogradLucian Bicsi retrograd Data 25 august 2021 12:02:26
Problema Cuplaj maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'auto network_simplex<Flow, Cost>::reduced_cost(int) const': main.cpp:65:14: error: expected unqualified-id before '[' token auto [u, v] = edge[e].node; ^ main.cpp:66:36: error: 'u' was not declared in this scope return edge[e].cost + node[u].pi - node[v].pi; ^ main.cpp:66:49: error: 'v' was not declared in this scope return edge[e].cost + node[u].pi - node[v].pi; ^ main.cpp: In member function 'void network_simplex<Flow, Cost>::pivot(int)': main.cpp:198:14: error: expected unqualified-id before '[' token auto [u_in, v_in] = edge[in_arc].node; ^ main.cpp:199:17: error: 'u_in' was not declared in this scope int a = u_in, b = v_in; ^~~~ main.cpp:200:21: error: 'b' was not declared in this scope while (a != b) { ^ main.cpp:201:40: error: 'v_in' was not declared in this scope a = node[a].parent == -1 ? v_in : node[a].parent; ^~~~ main.cpp:208:24: error: 'v_in' was not declared in this scope swap(u_in, v_in); ^~~~ main.cpp:231:22: error: 'v_in' was not declared in this scope for (int u = v_in; u != lca; u = node[u].parent) { ^~~~ main.cpp:271:24: error: 'v_in' was not declared in this scope swap(u_in, v_in); ^~~~ main.cpp:288:28: error: 'v_in' was not declared in this scope children.push_back(v_in, u_in); ^~~~ main.cpp: In instantiation of 'int network_simplex<Flow, Cost>::mincost_circulation() [with Flow = int; Cost = int]': main.cpp:319:39: required from here main.cpp:87:31: warning: unused variable 'INFEASIBLE' [-Wunused-variable] static constexpr bool INFEASIBLE = false, OPTIMAL = true; ^~~~~~~~~~ main.cpp:87:51: warning: unused variable 'OPTIMAL' [-Wunused-variable] static constexpr bool INFEASIBLE = false, OPTIMAL = true; ^~~~~~~ main.cpp: In instantiation of 'int network_simplex<Flow, Cost>::select_pivot_edge() [with Flow = int; Cost = int]': main.cpp:139:39: required from 'int network_simplex<Flow, Cost>::mincost_circulation() [with Flow = int; Cost = int]' main.cpp:319:39: required from here main.cpp:183:41: error: no match for 'operator*' (operand types are 'network_simplex<int, int>::ArcState' and 'void') if (minimum > edge[e].state * reduced_cost(e)) { ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp:184:41: error: no match for 'operator*' (operand types are 'network_simplex<int, int>::ArcState' and 'void') Non zero exit status: 1

Ceva nu functioneaza?