Borderou de evaluare (job #1398975)

Utilizator deneoAdrian Craciun deneo Data 24 martie 2015 14:41:42
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:40:81: error: could not convert ‘top.std::vector<_Tp, _Alloc>::end<int, std::allocator<int> >().__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-<int*, std::vector<int> >((* &1)).__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*<int*, std::vector<int> >()’ from ‘int’ to ‘point’ while (top.size() >= 2 && cross(*(top.end() - 1), *(top.end() - 2), v[i]) <= 0) ^ user.cpp:42:27: error: no matching function for call to ‘std::vector<int>::push_back(point&)’ top.push_back(v[i]); ^ user.cpp:42:27: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘point’ to ‘const value_type& {aka const int&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘point’ to ‘std::vector<int>::value_type&& {aka int&&}’ user.cpp:46:90: error: could not convert ‘bottom.std::vector<_Tp, _Alloc>::end<int, std::allocator<int> >().__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-<int*, std::vector<int> >((* &1)).__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*<int*, std::vector<int> >()’ from ‘int’ to ‘point’ while (bottom.size() >= 2 && cross(*(bottom.end() - 1), *(bottom.end() - 2), v[i]) <= 0) ^ user.cpp:48:30: error: no matching function for call to ‘std::vector<int>::push_back(point&)’ bottom.push_back(v[i]); ^ user.cpp:48:30: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘point’ to ‘const value_type& {aka const int&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘point’ to ‘std::vector<int>::value_type&& {aka int&&}’ user.cpp:54:20: error: request for member ‘x’ in ‘it’, which is of non-class type ‘int’ fout << it.x << " " << it.y << "\n"; ^ user.cpp:54:35: error: request for member ‘y’ in ‘it’, which is of non-class type ‘int’ fout << it.x << " " << it.y << "\n"; ^ user.cpp:56:20: error: request for member ‘x’ in ‘it’, which is of non-class type ‘int’

Ceva nu functioneaza?