Borderou de evaluare (job #1025695)

Utilizator george_stelianChichirim George george_stelian Data 10 noiembrie 2013 14:16:41
Problema Tort Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:8: error: ‘int y1’ redeclared as different kind of symbol int x1,y1,a1,b1,s,i,j; ^ 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/cstdio:41, 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:30:7: error: assignment of function ‘double y1(double)’ y1=50; ^ user.cpp:30:7: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:33:14: error: invalid types ‘char [51][double(double)throw ()]’ for array subscript v1[y1]=y%10; ^ user.cpp:35:11: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] y1--; ^ user.cpp:35:11: error: lvalue required as decrement operand user.cpp:37:7: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] y1++; ^ user.cpp:37:7: error: lvalue required as increment operand user.cpp:65:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(i=50;i>=y1;i--) ^ user.cpp:78:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:22: error: invalid types ‘char [51][double (*)(double)throw ()]’ for array subscript if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:27: error: assignment of function ‘double y1(double)’ if(prod2[y1+a1-51]) y1=y1+a1-51; ^ user.cpp:78:27: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment user.cpp:79:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?