Borderou de evaluare (job #1734282)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 26 iulie 2016 22:40:44
Problema Zuzu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:31: error: ‘int yn [100]’ redeclared as different kind of symbol int n,d[MAXN],xn[MAXN],yn[MAXN],zn[MAXN]; ^ 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/cstdio:41, 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 ‘int main()’: user.cpp:59:29: error: cannot convert ‘double (*)(int, double)throw ()’ to ‘int*’ for argument ‘1’ to ‘void Normalize(int*, double*, double*)’ Normalize(yn,y,diffy); ^ user.cpp:64:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i]][yn[2*i]][zn[2*i]]++; ^ user.cpp:64:31: error: invalid types ‘int [100][100][double(int, double)throw ()]’ for array subscript a[xn[2*i]][yn[2*i]][zn[2*i]]++; ^ user.cpp:65:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i]][yn[2*i]][zn[2*i+1]]--; ^ user.cpp:65:31: error: invalid types ‘int [100][100][double(int, double)throw ()]’ for array subscript a[xn[2*i]][yn[2*i]][zn[2*i+1]]--; ^ user.cpp:66:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i]][yn[2*i+1]][zn[2*i]]--; ^ user.cpp:66:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:66:33: error: invalid types ‘int [100][100][double(int, double)throw ()]’ for array subscript a[xn[2*i]][yn[2*i+1]][zn[2*i]]--; ^ user.cpp:67:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i+1]][yn[2*i]][zn[2*i]]--; ^ user.cpp:67:33: error: invalid types ‘int [100][100][double(int, double)throw ()]’ for array subscript a[xn[2*i+1]][yn[2*i]][zn[2*i]]--; ^ user.cpp:68:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i]][yn[2*i+1]][zn[2*i+1]]++; ^ user.cpp:68:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:68:33: error: invalid types ‘int [100][100][double(int, double)throw ()]’ for array subscript a[xn[2*i]][yn[2*i+1]][zn[2*i+1]]++; ^ user.cpp:69:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[xn[2*i+1]][yn[2*i]][zn[2*i+1]]++; ^

Ceva nu functioneaza?