Borderou de evaluare (job #1012866)

Utilizator florin.elfusFlorin Elfus florin.elfus Data 19 octombrie 2013 18:48:35
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: expected ‘;’ after struct definition } ^ user.cpp:13:20: error: ‘int y0 [512]’ redeclared as different kind of symbol int x0[512], y0[512], x1[512], y1[512]; ^ In file included from /usr/include/features.h:346:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/bits/mathcalls.h:241:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp:13:38: error: ‘int y1 [512]’ redeclared as different kind of symbol int x0[512], y0[512], x1[512], y1[512]; ^ In file included from /usr/include/features.h:346:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘double panta(eq)’: user.cpp:22:8: error: ‘struct eq’ has no member named ‘b’ if (X.b) ^ user.cpp:23:20: error: ‘struct eq’ has no member named ‘a’ return (double)X.a / X.b * (-1); ^ user.cpp:23:26: error: ‘struct eq’ has no member named ‘b’ return (double)X.a / X.b * (-1); ^ user.cpp:24:9: error: ‘INF’ was not declared in this scope return INF; ^ user.cpp: In function ‘point mp(int, int)’: user.cpp:36:32: error: ‘y’ was not declared in this scope point tmp; tmp.x = X; tmp.y = y; ^ user.cpp: In function ‘bool isInSegm(point, int)’: user.cpp:47:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] double d1 = dist(mp(x0[idx], y0[idx]), X), d2 = dist(mp(x1[idx], y1[idx]), X); ^ user.cpp:47:37: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] user.cpp:34:7: error: initializing argument 2 of ‘point mp(int, int)’ [-fpermissive] point mp(int X, int Y) ^ user.cpp:47:73: warning: pointer to a function used in arithmetic [-Wpointer-arith] double d1 = dist(mp(x0[idx], y0[idx]), X), d2 = dist(mp(x1[idx], y1[idx]), X); ^ user.cpp:47:73: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]

Ceva nu functioneaza?