Borderou de evaluare (job #1604542)

Utilizator madalomarMadalomar madalomar Data 18 februarie 2016 13:16:29
Problema Dreapta Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:30: error: ‘Ndim’ was not declared in this scope struct points{double x,y;} P[Ndim],Q[Ndim]; ^ user.cpp:9:34: error: two or more data types in declaration of ‘P’ struct points{double x,y;} P[Ndim],Q[Ndim]; ^ user.cpp:9:38: error: ‘Ndim’ was not declared in this scope struct points{double x,y;} P[Ndim],Q[Ndim]; ^ user.cpp:9:42: error: two or more data types in declaration of ‘Q’ struct points{double x,y;} P[Ndim],Q[Ndim]; ^ user.cpp: In function ‘void read()’: user.cpp:13:10: error: ‘N’ was not declared in this scope fin>>N; ^ user.cpp:14:9: error: ‘i’ was not declared in this scope for(i=1;i<=N;i++) ^ user.cpp:16:14: error: ‘P’ was not declared in this scope fin>>P[i].x>>P[i].y; ^ user.cpp:18:10: error: ‘M’ was not declared in this scope fin>>M; ^ user.cpp:19:9: error: ‘i’ was not declared in this scope for(i=1;i<=M;i++) ^ user.cpp:20:14: error: ‘Q’ was not declared in this scope fin>>Q[i].x>>Q[i].y; ^ user.cpp: In function ‘points pct_intersectie(std::pair<int, std::pair<int, int> >, std::pair<int, std::pair<int, int> >)’: user.cpp:40:50: error: ‘struct std::pair<int, std::pair<int, int> >’ has no member named ‘fist’ sol.y = (ec1.first * ec2.second.second - ec2.fist * ec1.second.second) / (ec2.first * ec1.second.first - ec1.first * ec2.second.first); ^ user.cpp: At global scope: user.cpp:43:10: error: ‘poits’ was not declared in this scope bool cmp(poits a,points b) ^ user.cpp:43:25: error: expected primary-expression before ‘b’ bool cmp(poits a,points b) ^ user.cpp:43:26: error: expression list treated as compound expression in initializer [-fpermissive] bool cmp(poits a,points b) ^ user.cpp:44:1: error: expected ‘,’ or ‘;’ before ‘{’ token { ^ user.cpp: In function ‘void prep()’: user.cpp:51:23: error: ‘Q’ was not declared in this scope

Ceva nu functioneaza?