Borderou de evaluare (job #2119607)

Utilizator andreipreda2001Preda Andrei andreipreda2001 Data 1 februarie 2018 14:31:00
Problema Ceas3 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:13: error: ‘int time’ redeclared as different kind of symbol int ang, j, time, h, m; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148, from /usr/include/c++/5/ext/atomicity.h:35, from /usr/include/c++/5/bits/ios_base.h:39, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from user.cpp:1: /usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:14:9: error: assignment of function ‘time_t time(time_t*)’ time=ang*2+540; ^ user.cpp:14:9: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:15:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time>=720) ^ user.cpp:16:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time=time-720; ^ user.cpp:16:13: error: assignment of function ‘time_t time(time_t*)’ time=time-720; ^ user.cpp:16:13: error: cannot convert ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:18:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(time>=60) ^ user.cpp:21:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time=time-60; ^ user.cpp:21:13: error: assignment of function ‘time_t time(time_t*)’ time=time-60; ^ user.cpp:21:13: error: cannot convert ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:23:6: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive] m=time; ^

Ceva nu functioneaza?