Borderou de evaluare (job #1215849)

Utilizator ctlin04UAIC.VlasCatalin ctlin04 Data 2 august 2014 14:41:26
Problema Partial Match Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:29: error: ‘int log’ redeclared as different kind of symbol int i,j,n,m,p[200005][20],k,log,nr,sol[100005]; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:110:1: error: previous declaration of ‘double log(double)’ __MATHCALL (log,, (_Mdouble_ __x)); ^ user.cpp: In function ‘int prefix(int, int)’: user.cpp:18:15: error: cannot resolve overloaded function ‘log’ based on conversion to type ‘int’ for (int i=log; i>=0; --i) ^ user.cpp: In function ‘int main()’: user.cpp:40:11: error: no pre-increment operator for type ++log; ^ user.cpp:43:31: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ aux[i].x=p[i][log-1]; ^ user.cpp:44:48: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ if (i+l-1<m) aux[i].y=p[i+l-1][log-1]; ^ user.cpp:52:74: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript if (aux[i].x==aux[i-1].x&&aux[i].y==aux[i-1].y) p[aux[i].ind][log]=p[aux[i-1].ind][log]; ^ user.cpp:52:95: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript if (aux[i].x==aux[i-1].x&&aux[i].y==aux[i-1].y) p[aux[i].ind][log]=p[aux[i-1].ind][log]; ^ user.cpp:53:38: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript else { ++l; p[aux[i].ind][log]=l; } ^ user.cpp:50:13: warning: unused variable ‘lev’ [-Wunused-variable] int lev=-1; ^

Ceva nu functioneaza?