Borderou de evaluare (job #1604543)

Utilizator cristibogdanPatrascu Cristian cristibogdan Data 18 februarie 2016 13:16:41
Problema Dreapta Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:25: error: expected unqualified-id before ‘double’ struct points {double x,double y}pct[100001],p[100001]; ^ user.cpp:10:27: error: two or more data types in declaration of ‘cmp’ bool cmp(points a,points b){ ^ user.cpp: In function ‘std::pair<int, std::pair<int, int> > ecd(points, points)’: user.cpp:17:19: error: ‘struct points’ has no member named ‘y’ sol.first = a.y-b.y; ^ user.cpp:17:23: error: ‘struct points’ has no member named ‘y’ sol.first = a.y-b.y; ^ user.cpp:19:29: error: ‘struct points’ has no member named ‘y’ sol.second.second=a.x*b.y-b.x*a.y; ^ user.cpp:19:37: error: ‘struct points’ has no member named ‘y’ sol.second.second=a.x*b.y-b.x*a.y; ^ user.cpp: In function ‘bool verif(points, points, std::pair<int, std::pair<int, int> >)’: user.cpp:23:22: error: request for member ‘first’ in ‘ec.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ if((ec.first.first*a+ec.second.first*a+ec.second.second)*(ec.first.first*b+ec.second.first*b+ec.second.second)<0) ^ user.cpp:23:45: error: no match for ‘operator*’ (operand types are ‘int’ and ‘points’) if((ec.first.first*a+ec.second.first*a+ec.second.second)*(ec.first.first*b+ec.second.first*b+ec.second.second)<0) ^ user.cpp:23:76: error: request for member ‘first’ in ‘ec.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ if((ec.first.first*a+ec.second.first*a+ec.second.second)*(ec.first.first*b+ec.second.first*b+ec.second.second)<0) ^ user.cpp:23:99: error: no match for ‘operator*’ (operand types are ‘int’ and ‘points’) if((ec.first.first*a+ec.second.first*a+ec.second.second)*(ec.first.first*b+ec.second.first*b+ec.second.second)<0) ^ user.cpp: In function ‘points intersectie(std::pair<int, std::pair<int, int> >, std::pair<int, std::pair<int, int> >)’: user.cpp:29:94: error: request for member ‘first’ in ‘ec1.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ sol.x=(ec1.second.first*ec2.second.second-ec2.second.first*ec1.second.second)/(ec1.first.first*ec2.second.first-ec2.first.first*ec1.second.first); ^ user.cpp:29:127: error: request for member ‘first’ in ‘ec2.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ sol.x=(ec1.second.first*ec2.second.second-ec2.second.first*ec1.second.second)/(ec1.first.first*ec2.second.first-ec2.first.first*ec1.second.first); ^ user.cpp:30:9: error: ‘struct points’ has no member named ‘y’ sol.y=(ec1.first.first*ec2.second.second-ec2.first.first*ec1.first.first)/(ec2.first.first*ec1.second.first-ec1.first.first*ec2.second.first); ^ user.cpp:30:22: error: request for member ‘first’ in ‘ec1.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ sol.y=(ec1.first.first*ec2.second.second-ec2.first.first*ec1.first.first)/(ec2.first.first*ec1.second.first-ec1.first.first*ec2.second.first); ^ user.cpp:30:56: error: request for member ‘first’ in ‘ec2.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ sol.y=(ec1.first.first*ec2.second.second-ec2.first.first*ec1.first.first)/(ec2.first.first*ec1.second.first-ec1.first.first*ec2.second.first); ^ user.cpp:30:72: error: request for member ‘first’ in ‘ec1.std::pair<int, std::pair<int, int> >::first’, which is of non-class type ‘int’ sol.y=(ec1.first.first*ec2.second.second-ec2.first.first*ec1.first.first)/(ec2.first.first*ec1.second.first-ec1.first.first*ec2.second.first);

Ceva nu functioneaza?