Borderou de evaluare (job #2352455)
Utilizator | Data | 23 februarie 2019 12:36:43 | |
---|---|---|---|
Problema | TollRoads | Status | done |
Runda | Info Oltenia 2019 Proba pe Echipe Clasele 11 - 12 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Dijkstra(int, VI&)':
main.cpp:65:19: error: no match for 'operator=' (operand types are 'VI {aka std::vector<int>}' and 'VL {aka std::vector<long long int>}')
d = VL(n + 1, Inf);
^
In file included from /usr/include/c++/6/vector:69:0,
from main.cpp:3:
/usr/include/c++/6/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/vector.tcc:167:5: note: no known conversion for argument 1 from 'VL {aka std::vector<long long int>}' to 'const std::vector<int>&'
In file included from /usr/include/c++/6/vector:64:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_vector.h:450:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:450:7: note: no known conversion for argument 1 from 'VL {aka std::vector<long long int>}' to 'std::vector<int>&&'
/usr/include/c++/6/bits/stl_vector.h:471:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:471:7: note: no known conversion for argument 1 from 'VL {aka std::vector<long long int>}' to 'std::initializer_list<int>'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !