Borderou de evaluare (job #2771085)

Utilizator retrogradLucian Bicsi retrograd Data 25 august 2021 12:03:16
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 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 'auto network_simplex<Flow, Cost>::reduced_cost(int) const [with Flow = int; Cost = int]': main.cpp:183:55: required from '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:65:29: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&>' and 'const std::array<int, 2ul>') int u, v; tie(u, v) = edge[e].node; ~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/6/functional:55:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/6/tuple:1168:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_T1, _T2>&) [with _T1 = int&; _T2 = int&] operator=(const tuple& __in) ^~~~~~~~ /usr/include/c++/6/tuple:1168:7: note: no known conversion for argument 1 from 'const std::array<int, 2ul>' to 'const std::tuple<int&, int&>&' /usr/include/c++/6/tuple:1175:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_T1, _T2>&&) [with _T1 = int&; _T2 = int&] operator=(tuple&& __in) ^~~~~~~~ /usr/include/c++/6/tuple:1175:7: note: no known conversion for argument 1 from 'const std::array<int, 2ul>' to 'std::tuple<int&, int&>&&' /usr/include/c++/6/tuple:1184:9: note: candidate: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(const tuple<_U1, _U2>& __in) ^~~~~~~~ /usr/include/c++/6/tuple:1184:9: note: template argument deduction/substitution failed: main.cpp:65:29: note: 'const std::array<int, 2ul>' is not derived from 'const std::tuple<_T1, _T2>' int u, v; tie(u, v) = edge[e].node; ~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/6/functional:55:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/6/tuple:1192:9: note: candidate: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(tuple<_U1, _U2>&& __in) ^~~~~~~~ /usr/include/c++/6/tuple:1192:9: note: template argument deduction/substitution failed: main.cpp:65:29: note: types 'std::tuple<_T1, _T2>' and 'const std::array<int, 2ul>' have incompatible cv-qualifiers int u, v; tie(u, v) = edge[e].node; ~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/6/functional:55:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/6/tuple:1200:9: note: candidate: template<class _U1, class _U2> std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&] operator=(const pair<_U1, _U2>& __in) ^~~~~~~~ /usr/include/c++/6/tuple:1200:9: note: template argument deduction/substitution failed: Non zero exit status: 1

Ceva nu functioneaza?