Borderou de evaluare (job #1470039)
Utilizator | Data | 10 august 2015 11:56:02 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:57:16: error: ‘int exp [32]’ redeclared as different kind of symbol
int exp[dim_max] = {0};
^
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/iostream: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 ‘void exponenti(int)’:
user.cpp:63:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
exp[max_exponent++] = nr%2;
^
user.cpp: In function ‘int kfib(int)’:
user.cpp:69:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
reverse(exp,exp+max_exponent);
^
user.cpp:77:18: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if( exp[i] )
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !