Borderou de evaluare (job #1810034)

Utilizator raulmuresanRaul Muresan raulmuresan Data 19 noiembrie 2016 15:40:25
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:23: error: ‘int y0’ redeclared as different kind of symbol int n,k,nr,nl,nc,x0=1,y0=1; ^ 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 ‘void citire()’: user.cpp:46:43: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] if((v[r].b==0)||(v[r].d==0))y0--; //cu un varf pe Ox sau Oy sau in O ^ user.cpp:46:43: error: lvalue required as decrement operand user.cpp:29:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j ,xa, xb, xc, xd; ^ user.cpp: In function ‘void bordare()’: user.cpp:63:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:63:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:63:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nl=y0+2*n-1; ^ user.cpp: In function ‘void matrice()’: user.cpp:97:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(i=v[k].pb;i<v[k].pd ;i++)a[i+y0][j+x0]=1; ^ user.cpp:97:40: error: invalid types ‘short int [210][210][double (*)(double)throw ()]’ for array subscript for(i=v[k].pb;i<v[k].pd ;i++)a[i+y0][j+x0]=1; ^ user.cpp: In function ‘int caut(int*, int)’: user.cpp:84:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?