Greitkeliai

Taškai: 0

Compile: FAIL

greitkeliai.cpp: In function ‘void solve()’: greitkeliai.cpp:84:60: error: converting to ‘std::priority_queue<std::tuple<int, int, int> >::value_type {aka std::tuple<int, int, int>}’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]’ pqueue[f(a)].push({-(c - cap_cost[f(a)]), a, b}); /// {-cost, id_of_comp_node, other_id} ^ greitkeliai.cpp:85:60: error: converting to ‘std::priority_queue<std::tuple<int, int, int> >::value_type {aka std::tuple<int, int, int>}’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]’ pqueue[f(b)].push({-(c - cap_cost[f(b)]), b, a}); ^

nr.resulttimemessage