Borderou de evaluare (job #3290307)

Utilizator alexalghisiAlghisi Alessandro Paolo alexalghisi Data 30 martie 2025 10:08:36
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:103:32: error: cannot convert 'std::vector<std::vector<Edge> >' to 'int' 103 | int minDistance = dijkstra(graph, bases, 1, k, n); | ^~~~~ | | | std::vector<std::vector<Edge> > main.cpp:33:18: note: initializing argument 1 of 'int dijkstra(int, int, int)' 33 | int dijkstra(int start, int k, int n) { | ~~~~^~~~~ main.cpp:107:12: error: class template argument deduction failed: 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ main.cpp:107:12: error: no matching function for call to 'bitset()' In file included from main.cpp:7: /usr/include/c++/12.2.1/bitset:946:9: note: candidate: 'template<long unsigned int _Nb, class _CharT> bitset(const _CharT*, typename std::__cxx11::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_T2> >::size_type, _CharT, _CharT)-> std::bitset<_Nb>' 946 | bitset(const _CharT* __str, | ^~~~~~ /usr/include/c++/12.2.1/bitset:946:9: note: template argument deduction/substitution failed: main.cpp:107:12: note: candidate expects 4 arguments, 0 provided 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ /usr/include/c++/12.2.1/bitset:925:9: note: candidate: 'template<long unsigned int _Nb, class _CharT, class _Traits, class _Alloc> bitset(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::size_t, std::size_t, _CharT, _CharT)-> std::bitset<_Nb>' 925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s, | ^~~~~~ /usr/include/c++/12.2.1/bitset:925:9: note: template argument deduction/substitution failed: main.cpp:107:12: note: candidate expects 5 arguments, 0 provided 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ /usr/include/c++/12.2.1/bitset:914:9: note: candidate: 'template<long unsigned int _Nb, class _CharT, class _Traits, class _Alloc> bitset(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::size_t, std::size_t)-> std::bitset<_Nb>' 914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s, | ^~~~~~ /usr/include/c++/12.2.1/bitset:914:9: note: template argument deduction/substitution failed: main.cpp:107:12: note: candidate expects 3 arguments, 0 provided 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ /usr/include/c++/12.2.1/bitset:893:9: note: candidate: 'template<long unsigned int _Nb, class _CharT, class _Traits, class _Alloc> bitset(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::size_t)-> std::bitset<_Nb>' 893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s, | ^~~~~~ /usr/include/c++/12.2.1/bitset:893:9: note: template argument deduction/substitution failed: main.cpp:107:12: note: candidate expects 2 arguments, 0 provided 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ /usr/include/c++/12.2.1/bitset:874:17: note: candidate: 'template<long unsigned int _Nb> bitset(long long unsigned int)-> std::bitset<_Nb>' 874 | constexpr bitset(unsigned long long __val) noexcept | ^~~~~~ /usr/include/c++/12.2.1/bitset:874:17: note: template argument deduction/substitution failed: main.cpp:107:12: note: candidate expects 1 argument, 0 provided 107 | bitset visited; // Bitset to track visited nodes (not actually used) | ^~~~~~~ /usr/include/c++/12.2.1/bitset:869:26: note: candidate: 'template<long unsigned int _Nb> bitset()-> std::bitset<_Nb>' Non zero exit status: 1

Ceva nu functioneaza?