Borderou de evaluare (job #1202503)

Utilizator alex_bucevschiBucevschi Alexandru alex_bucevschi Data 28 iunie 2014 05:56:51
Problema Figuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:56: error: ‘int y1’ redeclared as different kind of symbol int n,a,b,m[210][210],t[210][210],s,arie,c1,c2,k,x1,x2,y1,y2,c,i,j,sol,X,Y; ^ 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:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:36:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d%d",&x1,&y1,&x2,&y2,&c); ^ user.cpp:40:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] x1+=c1;x2+=c1;y1+=c2;y2+=c2; ^ user.cpp:40:25: error: assignment of function ‘double y1(double)’ user.cpp:40:25: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment user.cpp:42:18: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for(j=y1;j<y2;j++) ^ user.cpp:29:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("figuri.in","r",stdin); ^ user.cpp:30:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("figuri.out","w",stdout); ^ user.cpp:31:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a,&b,&n); ^ user.cpp:36:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d",&x1,&y1,&x2,&y2,&c); ^

Ceva nu functioneaza?