Borderou de evaluare (job #2166983)

Utilizator andonis1616And Cuz andonis1616 Data 13 martie 2018 19:43:08
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:23:10: error: ‘int y0’ redeclared as different kind of symbol int x0=1,y0=1; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482, from /usr/include/c++/5/iosfwd:38, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:250:1: note: previous declaration ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘void formez()’: user.cpp:54:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] A[i+y0][j+x0]=1; ^ user.cpp:54:23: error: invalid types ‘bool [300][300][double (*)(double) throw ()]’ for array subscript A[i+y0][j+x0]=1; ^ user.cpp: In function ‘void bordare()’: user.cpp:60:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:60:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:60:14: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive] nl=y0+2*n-1; ^ user.cpp:59:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j; ^ user.cpp: In function ‘int main()’: user.cpp:108:15: warning: ISO C++ forbids decrementing a pointer of type ‘double (*)(double) throw ()’ [-Wpointer-arith] y0--; ^ user.cpp:108:15: error: lvalue required as decrement operand

Ceva nu functioneaza?