Borderou de evaluare (job #1458681)
Utilizator | Data | 8 iulie 2015 11:51:41 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void heapSort(int*, int)’:
user.cpp:154:37: error: invalid conversion from ‘int*’ to ‘std::vector<int>::size_type {aka unsigned int}’ [-fpermissive]
std::vector<int> unorderedList(v, n);
^
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:281:7: error: initializing argument 1 of ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]’ [-fpermissive]
vector(size_type __n, const value_type& __value,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !