Borderou de evaluare (job #2048315)

Utilizator mari2001Maria Ionescu mari2001 Data 25 octombrie 2017 22:08:01
Problema Arie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:20: error: ‘double y0 [25]’ redeclared as different kind of symbol double x0[25],y0[25],x1[25],y1[25]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp:5:34: error: ‘double y1 [25]’ redeclared as different kind of symbol double x0[25],y0[25],x1[25],y1[25]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:62:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf("%lf%lf",&x0[i],&y0[i]); ^ user.cpp:62:29: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%lf%lf",&x0[i],&y0[i]); ^ user.cpp:64:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] y0[n+1]=y0[1]; ^ user.cpp:64:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:64:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] y0[n+1]=y0[1]; ^ user.cpp:64:8: error: assignment of read-only location ‘*(y0 + (((sizetype)n) + 1u))’ y0[n+1]=y0[1]; ^ user.cpp:64:8: error: cannot convert ‘double(double)throw ()’ to ‘double(double)throw ()’ in assignment user.cpp:68:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf("%lf%lf",&x1[i],&y1[i]); ^ user.cpp:68:29: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%lf%lf",&x1[i],&y1[i]); ^ user.cpp:70:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[m+1]=y1[1]; ^ user.cpp:70:7: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?