Borderou de evaluare (job #145100)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Lalele (clasele 9-10) | Compilator | cpp | vezi sursa |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 mai 2015 20:35:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:12: error: ‘int time’ redeclared as different kind of symbol
/usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’
user.cpp: In member function ‘int Node::val()’:
user.cpp:23:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:23:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:23:36: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp: In function ‘void add_element(int)’:
user.cpp:57:16: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp: In function ‘void update_tot(int)’:
user.cpp:62:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:62:13: error: assignment of function ‘time_t time(time_t*)’
user.cpp:62: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