Borderou de evaluare (job #2972655)

Utilizator gabrielinelusGabriel-Robert Inelus gabrielinelus Data 29 ianuarie 2023 22:20:19
Problema Ciclu hamiltonian 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 'void Solver::ComputeHamilton()': main.cpp:52:46: error: no matching function for call to 'std::vector<std::vector<bool> >::resize(int, std::vector<int>)' 52 | computed.resize(1<<N, vector<int>(N, INF)); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:3: /usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' 937 | resize(size_type __new_size) | ^~~~~~ /usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate expects 1 argument, 2 provided /usr/include/c++/10/bits/stl_vector.h:957:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<bool>]' 957 | resize(size_type __new_size, const value_type& __x) | ^~~~~~ /usr/include/c++/10/bits/stl_vector.h:957:54: note: no known conversion for argument 2 from 'std::vector<int>' to 'const value_type&' {aka 'const std::vector<bool>&'} 957 | resize(size_type __new_size, const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?