Borderou de evaluare (job #1958621)

Utilizator preda.andreiPreda Andrei preda.andrei Data 8 aprilie 2017 15:39:18
Problema Atac Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:20:5: error: ‘int time’ redeclared as different kind of symbol int time = 0; ^ 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:1: /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(Tree&, int, std::vector<int>&, int&)’: user.cpp:24:7: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] ++time; ^ user.cpp:24:7: error: lvalue required as increment operand user.cpp:42:27: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] t[node].exit_time = ++time; ^ user.cpp:42:27: error: lvalue required as increment operand

Ceva nu functioneaza?