Borderou de evaluare (job #2605438)

Utilizator Constantin.Dragancea Constantin Constantin. Data 24 aprilie 2020 23:01:37
Problema Patrulatere 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:32:61: error: no matching function for call to 'std::vector<int>::resize(__gnu_cxx::__normal_iterator<int*, std::vector<int> >)' y_coords.resize(unique(y_coords.begin(), y_coords.end())); ^ 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:674:7: note: candidate: 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 = long unsigned int] resize(size_type __new_size) ^~~~~~ /usr/include/c++/6/bits/stl_vector.h:674:7: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'std::vector<int>::size_type {aka long unsigned int}' /usr/include/c++/6/bits/stl_vector.h:694:7: note: candidate: 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 = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int] resize(size_type __new_size, const value_type& __x) ^~~~~~ /usr/include/c++/6/bits/stl_vector.h:694:7: note: candidate expects 2 arguments, 1 provided Non zero exit status: 1

Ceva nu functioneaza?