Borderou de evaluare (job #2200832)
Utilizator | Data | 2 mai 2018 18:58:36 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:5: error: ‘int time’ redeclared as different kind of symbol
int time;
^~~~
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from user.cpp:1:
/usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’
extern time_t time (time_t *__timer) __THROW;
^~~~
user.cpp: In function ‘void dfs_visit(lista*, lista&, int, lista&)’:
user.cpp:60:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:60:15: error: assignment of function ‘time_t time(time_t*)’
user.cpp:60:15: 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:61:9: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
u.d=time;
^~~~
user.cpp:82:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:82:15: error: assignment of function ‘time_t time(time_t*)’
user.cpp:82:15: 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:83:9: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
u.f=time;
^~~~
user.cpp: In function ‘void dfs_visit_conexa(lista*, lista&, int)’:
user.cpp:88:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:88:15: error: assignment of function ‘time_t time(time_t*)’
user.cpp:88:15: 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:89:9: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
u.d=time;
^~~~
user.cpp:108:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time=time+1;
^
user.cpp:108:15: error: assignment of function ‘time_t time(time_t*)’
user.cpp:108:15: 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:109:9: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
u.f=time;
^~~~
user.cpp: In function ‘void dfs_conexa(lista*, int, const lista&)’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !