Borderou de evaluare (job #1093708)

Utilizator ion824Ion Ureche ion824 Data 28 ianuarie 2014 15:07:41
Problema Cub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:35: error: ‘int y1 [500]’ redeclared as different kind of symbol int x1[500],x2[505],z1[505],y1[500],y2[500],z2[500]; ^ 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:41:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] x1[k]=sx; y1[k]=sy; z1[k]=sz; ^ user.cpp:41:20: error: assignment of read-only location ‘*(y1 + ((sizetype)k))’ x1[k]=sx; y1[k]=sy; z1[k]=sz; ^ user.cpp:41:20: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:51:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] DY=y1[i]+dy[t]; ^ user.cpp:51:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] DY=y1[i]+dy[t]; ^ user.cpp:51:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] DY=y1[i]+dy[t]; ^ user.cpp:55:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DX==0){ DY=N-y1[i]+1; DZ=4; } ^ user.cpp:55:37: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:62:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DX>N){ DX=N; DY=N-y1[i]+1; DZ=3; } ^ user.cpp:62:42: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:68:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DX>N){ DX=N; DY=N-y1[i]+1; DZ=2; } ^ user.cpp:68:42: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:69:43: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DY==0){ DX=N; DY=N-y1[i]+1; DZ=5; } ^ user.cpp:69:43: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:73:43: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DX==0){ DX=1; DY=N-y1[i]+1; DZ=1; } ^

Ceva nu functioneaza?