Borderou de evaluare (job #2792083)

Utilizator Tudor_IlieIlie Tudor Tudor_Ilie Data 31 octombrie 2021 20:44:28
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:5: error: 'int time' redeclared as different kind of entity 10 | int time = 1; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148, from /usr/include/c++/10/ext/atomicity.h:35, from /usr/include/c++/10/bits/ios_base.h:39, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)' 75 | extern time_t time (time_t *__timer) __THROW; | ^~~~ main.cpp: In function 'void dfs(int, std::vector<int>*, GraphTimeStamps*, std::stack<int>&, bool*)': main.cpp:20:26: error: invalid conversion from 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} to 'int' [-fpermissive] 20 | GTS[node].low_link = time; | ^~~~ | | | time_t (*)(time_t*) throw () {aka long int (*)(long int*)} main.cpp:22:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith] 22 | time++; | ^~~~ main.cpp:22:5: error: lvalue required as increment operand main.cpp:36:24: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith] 36 | GTS[node].leavet = time++; | ^~~~ main.cpp:36:24: error: lvalue required as increment operand Non zero exit status: 1

Ceva nu functioneaza?