Borderou de evaluare (job #2271737)
| Utilizator | Data | 29 octombrie 2018 10:04:09 | |
|---|---|---|---|
| Problema | Catun | 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:49:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int x=0; x<lastnodes.size(); x++)
~^~~~~~~~~~~~~~~~~
main.cpp:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y=0; y<catune[i].second.size(); y++)
~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:65:23: error: no match for 'operator=' (operand types are 'std::vector<long int>' and 'std::vector<int>')
lastnodes=nodes;
^~~~~
In file included from /usr/include/c++/6/vector:69:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/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 = long int; _Alloc = std::allocator<long int>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/vector.tcc:167:5: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::vector<long int>&'
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/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 = long int; _Alloc = std::allocator<long 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 'std::vector<int>' to 'std::vector<long 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 = long int; _Alloc = std::allocator<long 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 'std::vector<int>' to 'std::initializer_list<long int>'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
