Borderou de evaluare (job #2183557)

Utilizator vladsirbu23Vlad Sirbu vladsirbu23 Data 23 martie 2018 11:31:54
Problema Camp Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:8: error: ‘double y1’ redeclared as different kind of symbol double y1,y2,yy2; ^~ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507, from /usr/include/c++/6/iostream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:44:75: error: assignment of function ‘double y1(double)’ y1=((y[pozs-1]-y[pozs])*(i-x[pozs]))/abs(x[pozs-1]-x[pozs])+y[pozs]; ^ user.cpp:44:75: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment user.cpp:50:9: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] else ^~~~ user.cpp:52:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’ rez=rez+i*(y11-y22+1)+(y11*(y11+1))/2-(y22*(y22-1))/2; ^~~

Ceva nu functioneaza?