Borderou de evaluare (job #1568317)

Utilizator SoniaFlorinaHorchidan Sonia-Florina SoniaFlorina Data 14 ianuarie 2016 08:56:23
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:22: error: ‘int y0’ redeclared as different kind of symbol int n,m,p,nr_zone,x0,y0,xf,yf; ^ 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/iostream:38, 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: In function ‘int main()’: user.cpp:54:15: error: assignment of function ‘double y0(double)’ y0=2; ^ user.cpp:54:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:94:10: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for(i=y0;i<=yf;i++) ^ user.cpp:43:22: warning: unused variable ‘xa’ [-Wunused-variable] int i, j, k,l=1, xa, ya, xb, yb; ^ user.cpp:43:26: warning: unused variable ‘ya’ [-Wunused-variable] int i, j, k,l=1, xa, ya, xb, yb; ^ user.cpp:43:30: warning: unused variable ‘xb’ [-Wunused-variable] int i, j, k,l=1, xa, ya, xb, yb; ^ user.cpp:43:34: warning: unused variable ‘yb’ [-Wunused-variable] int i, j, k,l=1, xa, ya, xb, yb; ^

Ceva nu functioneaza?