Borderou de evaluare (job #1993896)
Utilizator | Data | 23 iunie 2017 22:59:09 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:31:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nrMuchii; ++i)
^
user.cpp: In function ‘void functie(int)’:
user.cpp:43:16: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘int’)
parcurgere[k] = x;
^
user.cpp:43:16: note: candidates are:
In file included from /usr/include/c++/4.8/vector:69:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/vector.tcc:160:5: note: 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++/4.8/bits/vector.tcc:160:5: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<int>&’
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:439:7: note: 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++/4.8/bits/stl_vector.h:439:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<int>&&’
/usr/include/c++/4.8/bits/stl_vector.h:461:7: note: 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++/4.8/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<int>’
user.cpp:45:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < A[x].size(); ++i)
^
user.cpp:55:16: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘int’)
parcurgere[k] = x;
^
user.cpp:55:16: note: candidates are:
In file included from /usr/include/c++/4.8/vector:69:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/vector.tcc:160:5: note: 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++/4.8/bits/vector.tcc:160:5: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<int>&’
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:439:7: note: 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++/4.8/bits/stl_vector.h:439:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<int>&&’
/usr/include/c++/4.8/bits/stl_vector.h:461:7: note: 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++/4.8/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<int>’
user.cpp: In function ‘int main()’:
user.cpp:64:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !