Borderou de evaluare (job #550297)

Utilizator raduzerRadu Zernoveanu raduzer Data 9 martie 2011 12:46:02
Problema Project management Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17: error: 'int time [101]' redeclared as different kind of symbol /usr/include/time.h:187: error: previous declaration of 'time_t time(time_t*)' user.cpp: In function 'int main()': user.cpp:41: error: pointer to a function used in arithmetic user.cpp:41: warning: format '%d' expects type 'int*', but argument 2 has type 'time_t (*)(time_t*)throw ()' user.cpp:79: error: pointer to a function used in arithmetic user.cpp:79: error: pointer to a function used in arithmetic user.cpp:79: error: no matching function for call to 'max(int&, time_t (*)(time_t*)throw ())' user.cpp:81: error: pointer to a function used in arithmetic user.cpp:81: error: pointer to a function used in arithmetic user.cpp:81: error: ISO C++ forbids comparison between pointer and integer user.cpp:82: error: pointer to a function used in arithmetic user.cpp:82: error: pointer to a function used in arithmetic user.cpp:82: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int' user.cpp:95: error: pointer to a function used in arithmetic user.cpp:95: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator-' user.cpp:101: error: pointer to a function used in arithmetic user.cpp:101: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator-'

Ceva nu functioneaza?