Borderou de evaluare (job #1149072)

Utilizator tytus11Trifon Titus tytus11 Data 21 martie 2014 14:05:08
Problema Bile3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:10: error: ‘int y1 [50]’ redeclared as different kind of symbol int y1[50],y2[50]; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/cstdio:41, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:22:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i]=i; ^ user.cpp:22:14: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’ y1[i]=i; ^ user.cpp:22:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:23:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] fprintf(g,"%d ",y1[i]); ^ user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] fprintf(g,"%d ",y1[i]); ^ user.cpp:16:13: warning: unused variable ‘m’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:15: warning: unused variable ‘a’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:17: warning: unused variable ‘b’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:21: warning: unused variable ‘j’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:23: warning: unused variable ‘ok’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:26: warning: unused variable ‘nr’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:29: warning: unused variable ‘sum’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^ user.cpp:16:33: warning: unused variable ‘op’ [-Wunused-variable] int n,k,m,a,b,i,j,ok,nr,sum,op; ^

Ceva nu functioneaza?