Borderou de evaluare (job #3271312)

Utilizator MagicantPlusIuoras Andrei MagicantPlus Data 25 ianuarie 2025 18:13:34
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void kruskal(Graph*, std::vector<bool>&)': main.cpp:125:16: error: no matching function for call to 'std::vector<bool>::assign(std::vector<std::tuple<long long int, long long int, long long int> >::size_type)' 125 | sel.ass(g->edges.size()); | ~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:65, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_bvector.h:922:9: note: candidate: 'template<class _InputIterator, class> constexpr void std::vector<bool, _Alloc>::assign(_InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _Alloc = std::allocator<bool>]' 922 | assign(_InputIterator __first, _InputIterator __last) | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_bvector.h:922:9: note: template argument deduction/substitution failed: main.cpp:125:16: note: candidate expects 2 arguments, 1 provided 125 | sel.ass(g->edges.size()); | ~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_bvector.h:914:7: note: candidate: 'constexpr void std::vector<bool, _Alloc>::assign(size_type, const bool&) [with _Alloc = std::allocator<bool>; size_type = long unsigned int]' 914 | assign(size_type __n, const bool& __x) | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_bvector.h:914:7: note: candidate expects 2 arguments, 1 provided /usr/include/c++/12.2.1/bits/stl_bvector.h:938:7: note: candidate: 'constexpr void std::vector<bool, _Alloc>::assign(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]' 938 | assign(initializer_list<bool> __l) | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_bvector.h:938:37: note: no known conversion for argument 1 from 'std::vector<std::tuple<long long int, long long int, long long int> >::size_type' {aka 'long unsigned int'} to 'std::initializer_list<bool>' 938 | assign(initializer_list<bool> __l) | ~~~~~~~~~~~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?