Borderou de evaluare (job #1956256)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 6 aprilie 2017 16:47:22
Problema Paralelipiped Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:42: error: ‘int yn [20001]’ redeclared as different kind of symbol int xn[1 + 2 * OFFSET], yn[1 + 2 * OFFSET], zn[1 + 2 * OFFSET]; ^ 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:244:1: error: previous declaration of ‘double yn(int, double)’ __MATHCALL (yn,, (int, _Mdouble_)); ^ user.cpp: In function ‘void Normalize(int, int*, int*, int*, int*, int&)’: user.cpp:21:25: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(vn, 0, sizeof(vn)); ^ user.cpp: In function ‘int main()’: user.cpp:55:42: error: cannot convert ‘double (*)(int, double)throw ()’ to ‘int*’ for argument ‘4’ to ‘void Normalize(int, int*, int*, int*, int*, int&)’ Normalize(n, Y1, y2, yn, yt, yMax); ^

Ceva nu functioneaza?