Borderou de evaluare (job #965161)

Utilizator geniucosOncescu Costin geniucos Data 23 iunie 2013 16:19:07
Problema Matrice 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:22: error: ‘int y1’ redeclared as different kind of symbol int stop,fin,prec,x1,y1,x2,y2,v1,v2,po,val,nr,i,j,k,n,Q,ras[20013],cod[309][309],t[90009],adev[90009],x[20013],y[20013],how[20013]; ^ 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 ‘void ok(int, std::vector<int>)’: user.cpp:37:11: error: assignment of function ‘double y1(double)’ y1=tata(y[*itt]); ^ user.cpp:37:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:38:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x1==y1&&x1!=0) ^ user.cpp: In function ‘int main()’: user.cpp:95:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d",&y1); ^ user.cpp:98:20: error: invalid types ‘int [309][double(double)throw ()]’ for array subscript x[i]=cod[x1][y1]; ^

Ceva nu functioneaza?