Borderou de evaluare (job #2667462)

Utilizator Silviu.Stancioiu@gmail.comSilviu Stancioiu [email protected] Data 3 noiembrie 2020 14:57:10
Problema Maimute Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16: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/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/6/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/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)' extern time_t time (time_t *__timer) __THROW; ^~~~ main.cpp: In function 'void dfs(int)': main.cpp:24:9: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith] time++; ^~ main.cpp:24:9: error: lvalue required as increment operand main.cpp:25:24: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive] start_time[node] = time; ^~~~ main.cpp:30:23: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive] last_time[node] = time; ^~~~ main.cpp: In function 'int main()': main.cpp:55:12: error: assignment of function 'time_t time(time_t*)' time = 0; ^ main.cpp:55:12: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment Non zero exit status: 1

Ceva nu functioneaza?