Borderou de evaluare (job #1944151)
Utilizator | Data | 28 martie 2017 22:54:37 | |
---|---|---|---|
Problema | Substr | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:15: error: ‘int log’ redeclared as different kind of symbol
int n,i,j,len,log,k,sol;
^
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/cstdio:41,
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 ‘void build_suffixArray()’:
user.cpp:27:12: error: overloaded function with no contextual type information
for(log=1;(1<<log)<len;log++)
^
user.cpp:27:19: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
for(log=1;(1<<log)<len;log++)
^
user.cpp:27:31: error: no post-increment operator for type
for(log=1;(1<<log)<len;log++)
^
user.cpp:32:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
L[j].nr1=P[log-1][j];
^
user.cpp:33:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
if(j + (1<<log-1) < len)
^
user.cpp:34:32: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
L[j].nr2=P[log-1][j + (1<<log-1)];
^
user.cpp:34:47: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
L[j].nr2=P[log-1][j + (1<<log-1)];
^
user.cpp:40:22: error: invalid types ‘int [16][16500][<unresolved overloaded function type>]’ for array subscript
P[log][L[j].pos]=P[log][L[j-1].pos];
^
user.cpp:40:39: error: invalid types ‘int [16][16500][<unresolved overloaded function type>]’ for array subscript
P[log][L[j].pos]=P[log][L[j-1].pos];
^
user.cpp:41:23: error: invalid types ‘int [16][16500][<unresolved overloaded function type>]’ for array subscript
else P[log][L[j].pos]=j;
^
user.cpp:43:7: error: no pre-decrement operator for type
--log;
^
user.cpp: In function ‘int lcp(int, int)’:
user.cpp:50:15: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
for(p=log-1; p >= 0 && x < len && y < len; --p)
^
user.cpp: In function ‘int main()’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !