Borderou de evaluare (job #1034015)
Utilizator | Data | 17 noiembrie 2013 16:54:48 | |
---|---|---|---|
Problema | Dtcsu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:10: error: ‘int exp [6]’ redeclared as different kind of symbol
int exp[6] = { 1, 2, 4, 8, 16, 32 };
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:101:1: error: previous declaration of ‘double exp(double)’
__MATHCALL (exp,, (_Mdouble_ __x));
^
user.cpp: In function ‘bool binary_search(long long int)’:
user.cpp:49:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( i + step < v.size() && v[i + step] <= x )
^
user.cpp: In function ‘int main()’:
user.cpp:74:32: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
x >>= exp[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !