Borderou de evaluare (job #996411)

Utilizator RaduGabriel2012Dinu Radu RaduGabriel2012 Data 11 septembrie 2013 20:37:58
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:9: error: ‘int time’ redeclared as different kind of symbol int n=0,time,c[105]; ^ In file included from /usr/include/pthread.h:26:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148, from /usr/local/include/c++/4.8.0/ext/atomicity.h:33, from /usr/local/include/c++/4.8.0/bits/ios_base.h:39, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, 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 Solve2()’: user.cpp:61:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] time+=tmp; ^ user.cpp:61:12: error: assignment of function ‘time_t time(time_t*)’ user.cpp:61:12: 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: In function ‘int main()’: user.cpp:90:8: warning: the address of ‘time_t time(time_t*)’ will always evaluate as ‘true’ [-Waddress] g<<time; ^

Ceva nu functioneaza?