Borderou de evaluare (job #3348307)

Utilizator MegaCoderMinoiu Teodor Mihai MegaCoder Data 20 martie 2026 17:08:54
Problema Jap Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void build_vals()': main.cpp:63:12: error: no match for 'operator=' (operand types are 'std::map<long long int, std::vector<long long int> >::mapped_type' {aka 'std::vector<long long int>'} and 'std::vector<int>') 63 | sol[m]=local; | ^~~~~ In file included from /usr/include/c++/12.2.1/vector:70, from main.cpp:2: /usr/include/c++/12.2.1/bits/vector.tcc:204:5: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]' 204 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/vector.tcc:205:42: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::vector<long long int>&' 205 | operator=(const vector<_Tp, _Alloc>& __x) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/12.2.1/vector:64: /usr/include/c++/12.2.1/bits/stl_vector.h:761:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]' 761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:761:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<long long int>&&' 761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) | ~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_vector.h:783:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>]' 783 | operator=(initializer_list<value_type> __l) | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:783:46: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::initializer_list<long long int>' 783 | operator=(initializer_list<value_type> __l) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?