Borderou de evaluare (job #1118942)

Utilizator tytus11Trifon Titus tytus11 Data 24 februarie 2014 13:59:19
Problema Culori3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:20: error: ‘long long int y1’ redeclared as different kind of symbol long long x1,x2,x3,y1,y2,y3; ^ 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/iosfwd:38, from /usr/local/include/c++/4.8.0/ios:38, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, 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:15:7: error: assignment of function ‘double y1(double)’ y1=1; ^ user.cpp:15:7: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:24:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] x2=y1+y3; ^ user.cpp:24:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long long int’ [-fpermissive] x2=y1+y3; ^ user.cpp:26:11: error: assignment of function ‘double y1(double)’ y1=x1; ^ user.cpp:26:11: error: cannot convert ‘long long int’ to ‘double(double)throw ()’ in assignment user.cpp:13:19: warning: unused variable ‘j’ [-Wunused-variable] long long n,i,j,ok,nr,sum; ^ user.cpp:13:21: warning: unused variable ‘ok’ [-Wunused-variable] long long n,i,j,ok,nr,sum; ^ user.cpp:13:24: warning: unused variable ‘nr’ [-Wunused-variable] long long n,i,j,ok,nr,sum; ^

Ceva nu functioneaza?