Borderou de evaluare (job #1583010)

Utilizator patrutoiuandreipatrutoiu andrei patrutoiuandrei Data 28 ianuarie 2016 17:52:45
Problema Substr Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:44: error: ‘int pow’ redeclared as different kind of symbol int suffx[15][Ndim],PozSuffx[Ndim],N,K,sol,pow; ^ 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:155:1: error: previous declaration of ‘double pow(double, double)’ __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘void read()’: user.cpp:18:17: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] fin>>N>>K>>S+1; ^ user.cpp: In function ‘void suffix()’: user.cpp:25:13: error: overloaded function with no contextual type information for(pow = 1, cnt = 1; cnt >> 1 <= N; pow++ , cnt <<= 1 ) ^ user.cpp:25:45: error: no post-increment operator for type for(pow = 1, cnt = 1; cnt >> 1 <= N; pow++ , cnt <<= 1 ) ^ user.cpp:29:33: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ L[i].st = suffx[pow-1][i]; ^ user.cpp:30:49: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ L[i].dr = i + cnt <=N ? suffx[pow - 1][i + cnt] : -1; ^ user.cpp:35:22: error: invalid types ‘int [15][16389][<unresolved overloaded function type>]’ for array subscript suffx[pow][L[i].poz] = i > 1 && L[i].st == L[i-1].st && L[i].dr == L[i-1].dr ? suffx[pow][L[i-1].poz] : i; ^ user.cpp:35:101: error: invalid types ‘int [15][16389][<unresolved overloaded function type>]’ for array subscript suffx[pow][L[i].poz] = i > 1 && L[i].st == L[i-1].st && L[i].dr == L[i-1].dr ? suffx[pow][L[i-1].poz] : i; ^ user.cpp:37:8: error: no post-decrement operator for type pow--; ^ user.cpp:22:11: warning: unused variable ‘k’ [-Wunused-variable] int i,k,cnt; ^ user.cpp: In function ‘int LCP(int, int)’: user.cpp:44:12: error: cannot resolve overloaded function ‘pow’ based on conversion to type ‘int’ for( k = pow; k>=0 && x <= N && y <= N; k--) ^ user.cpp: In function ‘void solve()’: user.cpp:59:27: error: invalid types ‘int [15][16389][<unresolved overloaded function type>]’ for array subscript PozSuffx[suffx[pow][i]] = i;

Ceva nu functioneaza?