Borderou de evaluare (job #1672542)

Utilizator andreiudilaUdila Andrei andreiudila Data 2 aprilie 2016 20:39:39
Problema Culegere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:26:5: error: ‘int time’ redeclared as different kind of symbol int time; ^ 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 ‘int main()’: user.cpp:35:9: error: assignment of function ‘time_t time(time_t*)’ time=0; ^ user.cpp:35:9: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:56:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(time<st) ^ user.cpp:58:30: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] if(!makestep(time)) ^ user.cpp:28:6: error: initializing argument 1 of ‘bool makestep(int)’ [-fpermissive] bool makestep(int tc); ^ user.cpp:79:19: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] ++time; ^ user.cpp:79:19: error: lvalue required as increment operand user.cpp:102:27: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] while(exist_event(time)) ^ user.cpp:29:6: error: initializing argument 1 of ‘bool exist_event(int)’ [-fpermissive] bool exist_event(int tc); ^ user.cpp:104:26: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] if(!makestep(time)) ^ user.cpp:28:6: error: initializing argument 1 of ‘bool makestep(int)’ [-fpermissive] bool makestep(int tc); ^ user.cpp:125:15: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] ++time; ^ user.cpp:125:15: error: lvalue required as increment operand

Ceva nu functioneaza?