Borderou de evaluare (job #1473858)

Utilizator tiby10Tibi P tiby10 Data 20 august 2015 12:55:56
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void hull()’: user.cpp:7:11: error: request for member ‘first’ in ‘up.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >((up.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 4294967295u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ #define x first ^ user.cpp:11:30: note: in expansion of macro ‘x’ #define det(Z, X, Y) (1LL*(X.x-Z.x)*(Y.y-Z.y)) - (1LL*(X.y-Z.y)*(Y.x-Z.x)) ^ user.cpp:19:27: note: in expansion of macro ‘det’ while(up.size()>=2 && det(up[up.size()-2], up[up.size()-1], i)>=0) ^ user.cpp:7:11: error: request for member ‘first’ in ‘up.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >((up.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 4294967294u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ #define x first ^ user.cpp:11:34: note: in expansion of macro ‘x’ #define det(Z, X, Y) (1LL*(X.x-Z.x)*(Y.y-Z.y)) - (1LL*(X.y-Z.y)*(Y.x-Z.x)) ^ user.cpp:19:27: note: in expansion of macro ‘det’ while(up.size()>=2 && det(up[up.size()-2], up[up.size()-1], i)>=0) ^ user.cpp:8:11: error: request for member ‘second’ in ‘i’, which is of non-class type ‘int’ #define y second ^ user.cpp:11:40: note: in expansion of macro ‘y’ #define det(Z, X, Y) (1LL*(X.x-Z.x)*(Y.y-Z.y)) - (1LL*(X.y-Z.y)*(Y.x-Z.x)) ^ user.cpp:19:27: note: in expansion of macro ‘det’ while(up.size()>=2 && det(up[up.size()-2], up[up.size()-1], i)>=0) ^ user.cpp:8:11: error: request for member ‘second’ in ‘up.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >((up.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 4294967294u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ #define y second ^ user.cpp:11:44: note: in expansion of macro ‘y’ #define det(Z, X, Y) (1LL*(X.x-Z.x)*(Y.y-Z.y)) - (1LL*(X.y-Z.y)*(Y.x-Z.x)) ^ user.cpp:19:27: note: in expansion of macro ‘det’ while(up.size()>=2 && det(up[up.size()-2], up[up.size()-1], i)>=0) ^ user.cpp:8:11: error: request for member ‘second’ in ‘up.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >((up.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 4294967295u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ #define y second ^ user.cpp:11:58: note: in expansion of macro ‘y’ #define det(Z, X, Y) (1LL*(X.x-Z.x)*(Y.y-Z.y)) - (1LL*(X.y-Z.y)*(Y.x-Z.x)) ^ user.cpp:19:27: note: in expansion of macro ‘det’ while(up.size()>=2 && det(up[up.size()-2], up[up.size()-1], i)>=0) ^ user.cpp:8:11: error: request for member ‘second’ in ‘up.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >((up.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 4294967294u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ #define y second ^ user.cpp:11:62: note: in expansion of macro ‘y’

Ceva nu functioneaza?