Greitkeliai

Taškai: 0

Compile: FAIL

greitkeliai.cpp: In function ‘int main()’: greitkeliai.cpp:47:39: error: converting to ‘std::vector<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}]’ vienetai.push_back({c,a,b}); ^ greitkeliai.cpp:49:35: error: converting to ‘std::set<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}]’ else keliai.insert({c,a,b}); ^

nr.resulttimemessage