Borderou de evaluare (job #2206864)
Utilizator | Data | 23 mai 2018 23:45:42 | |
---|---|---|---|
Problema | Camionas | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Init()’:
user.cpp:36:22: error: no matching function for call to ‘std::vector<Nod>::assign(int, int)’
Graf.assign(50000,0);
^
In file included from /usr/include/c++/6/vector:64:0,
from user.cpp:2:
/usr/include/c++/6/bits/stl_vector.h:489:7: note: candidate: void std::vector<_Tp, _Alloc>::assign(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Nod; _Alloc = std::allocator<Nod>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = Nod]
assign(size_type __n, const value_type& __val)
^~~~~~
/usr/include/c++/6/bits/stl_vector.h:489:7: note: no known conversion for argument 2 from ‘int’ to ‘const value_type& {aka const Nod&}’
/usr/include/c++/6/bits/stl_vector.h:508:9: note: candidate: template<class _InputIterator, class> void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Nod; _Alloc = std::allocator<Nod>]
assign(_InputIterator __first, _InputIterator __last)
^~~~~~
/usr/include/c++/6/bits/stl_vector.h:508:9: note: template argument deduction/substitution failed:
/usr/include/c++/6/bits/stl_vector.h:534:7: note: candidate: void std::vector<_Tp, _Alloc>::assign(std::initializer_list<_Tp>) [with _Tp = Nod; _Alloc = std::allocator<Nod>]
assign(initializer_list<value_type> __l)
^~~~~~
/usr/include/c++/6/bits/stl_vector.h:534:7: note: candidate expects 1 argument, 2 provided
user.cpp: In function ‘void Dijkstra()’:
user.cpp:97:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<Graf[nod_curent].Ad.size(); ++i)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !