Borderou de evaluare (job #1499586)

Utilizator radu.leonardoThe Doctor radu.leonardo Data 10 octombrie 2015 20:38:48
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:23: error: ‘int y0’ redeclared as different kind of symbol int n,k,nr,nl,nc,x0=1,y0=1,i,j; ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, 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 matrice()’: user.cpp:35: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:35:40: error: invalid types ‘char [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 main()’: user.cpp:50:35: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] if((v[r].b==0)||(v[r].d==0))y0--; ^ user.cpp:50:35: error: lvalue required as decrement operand user.cpp:62:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:62:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] nl=y0+2*n-1; ^ user.cpp:62:12: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nl=y0+2*n-1; ^ user.cpp:40:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d",&n,&m,&p); ^ user.cpp:43:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { fscanf(f,"%d%d%d%d",&xa,&xb,&xc,&xd); ^

Ceva nu functioneaza?