Borderou de evaluare (job #1739395)
Utilizator | Data | 9 august 2016 13:31:34 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:52: error: ‘int time’ redeclared as different kind of symbol
int color[50001], pred[50001], d[50001], f[50001], time;
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:3:
/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 ‘void DFS_VISIT(int)’:
user.cpp:69:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:69:9: error: assignment of function ‘time_t time(time_t*)’
time=time+1;
^
user.cpp:69:9: error: cannot convert ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:70:9: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
d[u]=time;
^
user.cpp:91:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:91:9: error: assignment of function ‘time_t time(time_t*)’
time=time+1;
^
user.cpp:91:9: error: cannot convert ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:92:9: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
f[u]=time;
^
user.cpp: In function ‘void DFS()’:
user.cpp:104:9: error: assignment of function ‘time_t time(time_t*)’
time=0;
^
user.cpp:104:9: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !