Borderou de evaluare (job #2106044)
Utilizator | Data | 14 ianuarie 2018 20:44:39 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:43:5: error: ‘int time’ redeclared as different kind of symbol
int time, power;
^
In file included from /usr/include/pthread.h:26:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35,
from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148,
from /usr/include/c++/4.8/ext/atomicity.h:33,
from /usr/include/c++/4.8/bits/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’
extern time_t time (time_t *__timer) __THROW;
^
user.cpp: In function ‘int check(int)’:
user.cpp:69:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[curr.node].size(); i++) {
^
user.cpp: In function ‘void bin_src()’:
user.cpp:89:8: error: assignment of function ‘time_t time(time_t*)’
time = check(k);
^
user.cpp:89:8: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:97:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(time < check(mid))
^
user.cpp:103:10: warning: the address of ‘time_t time(time_t*)’ will always evaluate as ‘true’ [-Waddress]
out << time << ' ';
^
user.cpp:104:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(check(le) == time)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !