Borderou de evaluare (job #1165807)

Utilizator teoionescuIonescu Teodor teoionescu Data 2 aprilie 2014 22:23:46
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:52: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/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/istream:38, from /usr/local/include/c++/4.8.0/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:3:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] #define max(a,b) ((a)>(b)?(a):(b)) ^ user.cpp:65:18: note: in expansion of macro ‘max’ time=max(time,x.val); ^ user.cpp:3:33: error: operands to ?: have different types ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ and ‘int’ #define max(a,b) ((a)>(b)?(a):(b)) ^ user.cpp:65:18: note: in expansion of macro ‘max’ time=max(time,x.val); ^ user.cpp:69:10: warning: the address of ‘time_t time(time_t*)’ will always evaluate as ‘true’ [-Waddress] out<<time<<'\n'; ^

Ceva nu functioneaza?