Borderou de evaluare (job #1682271)

Utilizator razvanlgu31Razvan Lungu razvanlgu31 Data 10 aprilie 2016 09:18:02
Problema NN Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:26: error: ‘int y1’ redeclared as different kind of symbol int n,m,i,st,dr,mi,x1,x2,y1,y2,a1,a2,b1,b2,nr1,nr2,ver; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, 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:31:15: error: assignment of function ‘double y1(double)’ y1=b1; ^ user.cpp:31:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:38:15: error: assignment of function ‘double y1(double)’ y1=b2; ^ user.cpp:38:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:48:29: error: invalid operands of types ‘double’ and ‘double(double)throw ()’ to binary ‘operator-’ if(d[mi]*x1-y1<0.000001) ^ user.cpp:51:29: error: invalid operands of types ‘double’ and ‘double(double)throw ()’ to binary ‘operator-’ if(d[mi]*x1-y1>0.000001) ^

Ceva nu functioneaza?