Borderou de evaluare (job #2470524)

Utilizator uvIanisUrsu Ianis Vlad uvIanis Data 9 octombrie 2019 13:05:35
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:8: error: 'size_t time' redeclared as different kind of symbol size_t time = 1; ^~~~ 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(size_t, size_t)': main.cpp:39:22: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'size_t {aka long unsigned int}' [-fpermissive] nodeTime[node] = time; ^~~~ main.cpp:40:24: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'size_t {aka long unsigned int}' [-fpermissive] lowestTime[node] = time; ^~~~ main.cpp:41:7: 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:41:7: error: lvalue required as increment operand Non zero exit status: 1

Ceva nu functioneaza?