Borderou de evaluare (job #1607205)

Utilizator Valentin0709Datcu George Valentin Valentin0709 Data 20 februarie 2016 21:44:30
Problema Elicop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:34: error: ‘int y1’ redeclared as different kind of symbol int h,m,n,k,i,j,n1,n2,d,a,l,x1,x,y1,y,s,v[105][105],sol[50]; ^ 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:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:23:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf(f,"%d%d%d%d%d",&x,&y,&x1,&y1,&d); ^ user.cpp:29:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] y=y1; ^ user.cpp:30:15: error: assignment of function ‘double y1(double)’ y1=a; ^ user.cpp:30:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:34:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(y1>y) { ^ user.cpp:46:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(y1>y) { ^ user.cpp:48:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(j=y;j>=y1-(i-x);j--) s=s+v[i][j]; ^ user.cpp:48:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:53:18: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for(j=y1;j<=y-(i-x);j++) s=s+v[i][j]; ^ user.cpp:13:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&m); ^ user.cpp:17:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[i][j]); ^ user.cpp:21:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&k); ^ user.cpp:23:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%d%d",&x,&y,&x1,&y1,&d); ^

Ceva nu functioneaza?