Borderou de evaluare (job #1986530)

Utilizator savigunFeleaga Dragos-George savigun Data 28 mai 2017 14:58:40
Problema Mobs Status done
Runda ACM ICPC Faza Nationala 2017 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:26: error: ‘int time’ redeclared as different kind of symbol int n, a, b, la, lb, gb, time; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/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 help(int, int, int)’: user.cpp:16:13: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] time++; ^ user.cpp:16:13: error: lvalue required as increment operand user.cpp: In function ‘int main()’: user.cpp:41:14: error: assignment of function ‘time_t time(time_t*)’ time = 0; ^ user.cpp:41:14: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:43:18: error: assignment of function ‘time_t time(time_t*)’ time = la; ^ user.cpp:43:18: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:46:18: error: assignment of function ‘time_t time(time_t*)’ time = (la + lb) / 2 + (la + lb) % 2; ^ user.cpp:46:18: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:49:14: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += gb; ^ user.cpp:49:14: error: assignment of function ‘time_t time(time_t*)’ user.cpp:49:14: 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:50:16: warning: the address of ‘time_t time(time_t*)’ will always evaluate as ‘true’ [-Waddress] out << time << '\n'; ^

Ceva nu functioneaza?