Borderou de evaluare (job #992875)

Utilizator gbi250Gabriela Moldovan gbi250 Data 2 septembrie 2013 18:01:47
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:25: error: ‘int y1’ redeclared as different kind of symbol int n, i, j, k, x1, x2, y1, y2, nr; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/cstdio:41, 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 ‘int main()’: user.cpp:16:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d", &x1, &y1, &x2, &y2); ^ user.cpp:18:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] p[++k]=(double)(y1-y2)/(x1-x2); ^ user.cpp:18:34: error: invalid cast from type ‘double (*)(double)throw ()’ to type ‘double’ p[++k]=(double)(y1-y2)/(x1-x2); ^

Ceva nu functioneaza?