Borderou de evaluare (job #1225255)

Utilizator ion824Ion Ureche ion824 Data 2 septembrie 2014 12:36:30
Problema Volum Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:25: error: ‘int y1 [566000]’ redeclared as different kind of symbol int x1[566000],y1[566000],x2[566000],y2[566000]; ^ 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:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:84:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] x1[1] = h[1].x; y1[1] = h[1].y; ^ user.cpp:84:25: error: assignment of read-only location ‘*(y1 + 1u)’ x1[1] = h[1].x; y1[1] = h[1].y; ^ user.cpp:84:25: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:90:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] viz[x1[1]][y1[1]]=1; ^ user.cpp:90:19: error: invalid types ‘bool [760][double(double)throw ()]’ for array subscript viz[x1[1]][y1[1]]=1; ^ user.cpp:99:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] DY = y1[i] + dy[t]; ^ user.cpp:99:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] DY = y1[i] + dy[t]; ^ user.cpp:99:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] DY = y1[i] + dy[t]; ^ user.cpp:103:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(a[DX][DY] <= a[x1[i]][y1[i]]) ^ user.cpp:103:39: error: invalid types ‘int [760][double(double)throw ()]’ for array subscript if(a[DX][DY] <= a[x1[i]][y1[i]]) ^ user.cpp:105:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] V = a[x1[i]][y1[i]] - a[DX][DY]; ^ user.cpp:105:29: error: invalid types ‘int [760][double(double)throw ()]’ for array subscript V = a[x1[i]][y1[i]] - a[DX][DY]; ^ user.cpp:131:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?