Borderou de evaluare (job #1930407)

Utilizator jurjstyleJurj Andrei jurjstyle Data 18 martie 2017 20:55:54
Problema Delay Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:38: error: ‘int time’ redeclared as different kind of symbol int First_Poz[NMAX], Last_Poz[NMAX], time; //memoreaza prima aparitie si ultima aparitie a nodului i in parcurgerea DFS ^ 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(int, int)’: user.cpp:58: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:58:7: error: lvalue required as increment operand user.cpp:59:21: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] First_Poz[node] = time; ^ user.cpp:60:28: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] value = Val[node], poz = time; ^ user.cpp:71: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:71:7: error: lvalue required as increment operand user.cpp:72:20: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] Last_Poz[node] = time; ^ user.cpp:73:29: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] value = -Val[node], poz = time; ^ user.cpp: In function ‘int solve(int, int)’: user.cpp:130:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^

Ceva nu functioneaza?