Borderou de evaluare (job #1237000)

Utilizator ELHoriaHoria Cretescu ELHoria Data 2 octombrie 2014 23:01:22
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘RangeMinimumQuery<DataType>::RangeMinimumQuery(const std::vector<DataType>&)’: user.cpp:32:39: error: no matching function for call to ‘std::vector<int>::resize(std::vector<int>)’ rmq[0].resize(vector<int>(size + 1)); ^ user.cpp:32:39: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:664:7: note: void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = unsigned int] resize(size_type __new_size) ^ /usr/include/c++/4.8/bits/stl_vector.h:664:7: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘std::vector<int>::size_type {aka unsigned int}’ /usr/include/c++/4.8/bits/stl_vector.h:684:7: note: void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = int] resize(size_type __new_size, const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:684:7: note: candidate expects 2 arguments, 1 provided

Ceva nu functioneaza?