Borderou de evaluare (job #1514402)

Utilizator MAlexandruMatei Alexandru MAlexandru Data 31 octombrie 2015 10:10:45
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:42: error: ‘int y1’ redeclared as different kind of symbol int n,s,i,k,j,y,a[101],x,vs[51],nr,x1,x2,y1,y2,z1,z2; ^ 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:44:47: error: assignment of function ‘double y1(double)’ x2=v[x].x;y2=v[x].y;z2=v[x].z;x1=v[y].x;y1=v[y].y;z1=v[y].z; ^ user.cpp:44:47: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:45:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] if (y!=n+1)fprintf (fout , "%d %d %d %d %d %d \n", x1,y1,z1,x2,y2,z2 ); ^ user.cpp:21:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin, "%d%d", &n , &s); ^ user.cpp:23:46: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=n;i++)fscanf (fin,"%d",&a[i]); ^ user.cpp:46:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] else fscanf (fout,"-1 \n"); ^

Ceva nu functioneaza?