Borderou de evaluare (job #472814)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Maraton (clasa a 7-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 apr. 2019 15:22:05 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:11: 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 function ‘int main()’:
user.cpp:12:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:12:15: error: assignment of function ‘time_t time(time_t*)’
user.cpp:12:15: 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:15:22: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator%’
user.cpp:17:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:17:25: error: assignment of function ‘time_t time(time_t*)’
user.cpp:17:25: 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:21:22: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator%’
user.cpp:23:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:23:25: error: assignment of function ‘time_t time(time_t*)’
user.cpp:23:25: 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:25:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:25:26: error: assignment of function ‘time_t time(time_t*)’
user.cpp:25:26: 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:29:22: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator%’
user.cpp:31:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:31:26: error: assignment of function ‘time_t time(time_t*)’
user.cpp:31:26: 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:34:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]