Borderou de evaluare (job #1579864)
Utilizator | Data | 25 ianuarie 2016 10:03:17 | |
---|---|---|---|
Problema | Substr | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:16: error: ‘int exp’ redeclared as different kind of symbol
int P[15][DIM],exp,put,maxim,n,k;
^
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:101:1: error: previous declaration of ‘double exp(double)’
__MATHCALL (exp,, (_Mdouble_ __x));
^
user.cpp: In function ‘int lcp(int, int)’:
user.cpp:20:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
for( k1 = exp - 1; k1 >= 0 && x < n && y < n; k1--){
^
user.cpp: In function ‘int main()’:
user.cpp:35:14: error: overloaded function with no contextual type information
for( exp = 1, put = 1; (put>>1) < n; exp++, (put <<= 1) ){
^
user.cpp:35:46: error: no post-increment operator for type
for( exp = 1, put = 1; (put>>1) < n; exp++, (put <<= 1) ){
^
user.cpp:38:31: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
L[i].cod1 = P[exp-1][i];
^
user.cpp:39:49: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
L[i].cod2 = ( i + put < n ) ? P[exp-1][i + put] : -1;
^
user.cpp:43:18: error: invalid types ‘int [15][16400][<unresolved overloaded function type>]’ for array subscript
P[exp][L[i].poz] = ( i > 0 && L[i].cod1 == L[i-1].cod1 && L[i].cod2 == L[i-1].cod2 ) ? P[exp][L[i - 1].poz] : i;
^
user.cpp:43:105: error: invalid types ‘int [15][16400][<unresolved overloaded function type>]’ for array subscript
P[exp][L[i].poz] = ( i > 0 && L[i].cod1 == L[i-1].cod1 && L[i].cod2 == L[i-1].cod2 ) ? P[exp][L[i - 1].poz] : i;
^
user.cpp:48:40: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
maxim = max( maxim, lcp( P[exp-1][i], P[exp-1][i + k] ) );
^
user.cpp:48:53: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
maxim = max( maxim, lcp( P[exp-1][i], P[exp-1][i + k] ) );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !