Borderou de evaluare (job #2147482)

Utilizator sichetpaulSichet Paul sichetpaul Data 28 februarie 2018 19:33:13
Problema Arhipelag2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:35: error: ‘int y1 [300001]’ redeclared as different kind of symbol int l[1001],c[1001],x1[DIM],y1[DIM],x2[DIM],y2[DIM]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/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/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:35:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] x1[ins]=x2[ins]=i,y1[ins]=y2[ins]=j; ^ user.cpp:35:34: error: assignment of read-only location ‘*(y1 + ((sizetype)ins))’ x1[ins]=x2[ins]=i,y1[ins]=y2[ins]=j; ^ user.cpp:35:34: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment user.cpp:49:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] sx+=x1[ins],sy+=y1[ins]; ^ user.cpp:49:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] sx+=x1[ins],sy+=y1[ins]; ^ user.cpp:49:24: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive] user.cpp:68:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[2*p-1].nr=y1[p],v[2*p-1].tip=1; ^ user.cpp:68:25: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive]

Ceva nu functioneaza?