Borderou de evaluare (job #966882)

Utilizator raulmuresanRaul Muresan raulmuresan Data 26 iunie 2013 18:25:05
Problema Magic2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:56: error: ‘int y1’ redeclared as different kind of symbol int v[1000],a[110][110],w[1000],sol,b[1000],x1,val1,x2,y1,y2,val2,aux,aux2; ^ 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:66:29: warning: the address of ‘double y1(double)’ will never be NULL [-Waddress] for(i=1;i<=n && y1==0;i++) ^ user.cpp:70:19: error: assignment of function ‘double y1(double)’ y1=i; ^ user.cpp:70:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:73:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] printf("%d %d ",x1,y1); ^ user.cpp:74:32: error: invalid types ‘int [110][double(double)throw ()]’ for array subscript aux=sol-(v[x1]-a[x1][y1]); ^ user.cpp:75:17: error: invalid types ‘int [110][double(double)throw ()]’ for array subscript a[x1][y1]=aux; ^ user.cpp:77:13: error: invalid types ‘int [1000][double(double)throw ()]’ for array subscript w[y1]=sol; ^

Ceva nu functioneaza?