Borderou de evaluare (job #2059068)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 6 noiembrie 2017 17:09:41
Problema Poligon Status done
Runda Lista lui wefgef Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:36:16: error: conflicting declaration ‘dreapta V [60005]’ dreapta V[60005]; ^ user.cpp:7:13: error: ‘V’ has a previous declaration as ‘std::vector<int> V [60005]’ vector<int> V[60005]; ^ user.cpp:41:1: error: ‘set’ does not name a type set<punct> segm[60005]; ^ user.cpp: In function ‘int main()’: user.cpp:56:13: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘dreapta’) V[i]=dreapta(P[i],P[i%N+1]); ^ user.cpp:56:13: note: candidates are: In file included from /usr/include/c++/4.8/vector:69:0, from user.cpp:2: /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 ‘dreapta’ to ‘const std::vector<int>&’ 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: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 ‘dreapta’ 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 ‘dreapta’ to ‘std::initializer_list<int>’ user.cpp:60:9: error: ‘stx’ was not declared in this scope stx[i]=0;drx[i]=-1; ^ user.cpp:60:18: error: ‘drx’ was not declared in this scope stx[i]=0;drx[i]=-1; ^ user.cpp:63:21: error: ‘class std::vector<int>’ has no member named ‘b’ if(V[j].b==0) ^ user.cpp:65:35: error: ‘segm’ was not declared in this scope if(P[j].x==x[i]) {segm[i].insert(P[j].y);segm[i].insert(P[j%N+1].y);} ^ user.cpp:68:42: error: ‘det’ was not declared in this scope if(det(P[j],{x[i],0},{x[i],1})*det(P[j%N+1],{x[i],0},{x[i],1})) ^ user.cpp:69:40: error: no matching function for call to ‘std::vector<dreapta>::push_back(std::vector<int>&)’ strip[i].push_back(V[j]); ^ user.cpp:69:40: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0,

Ceva nu functioneaza?