Borderou de evaluare (job #1744269)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 19 august 2016 15:48:02
Problema Bibel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:40: error: ‘int y0 [17]’ redeclared as different kind of symbol int x[MAXN], y[MAXN], x0[MAXN], y0[MAXN], previous; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘int Solve()’: user.cpp:29:91: warning: pointer to a function used in arithmetic [-Wpointer-arith] dp[1 << i][i] = min(dp[1 << i][i], dp[0][j] + Distance(x[i], y[i], x0[j], y0[j])); ^ user.cpp:29:91: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] user.cpp:17:5: error: initializing argument 4 of ‘int Distance(int, int, int, int)’ [-fpermissive] int Distance(int x1, int y1, int x2, int y2) { ^ user.cpp:40:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] y0[i] = y[i]; ^ user.cpp:40:15: error: assignment of read-only location ‘*(y0 + ((sizetype)i))’ y0[i] = y[i]; ^ user.cpp:40:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment

Ceva nu functioneaza?