Borderou de evaluare (job #2565483)

Utilizator Tudor_PascaTudor Pasca Tudor_Pasca Data 2 martie 2020 14:21:45
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:5: error: 'int time' redeclared as different kind of symbol int time, len; ^~~~ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148, from /usr/include/c++/6/ext/atomicity.h:35, from /usr/include/c++/6/bits/ios_base.h:39, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)' extern time_t time (time_t *__timer) __THROW; ^~~~ main.cpp: In function 'void solve()': main.cpp:71:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += makeNumber(i); ^ main.cpp:71:37: error: assignment of function 'time_t time(time_t*)' main.cpp:71:37: 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 main.cpp: In function 'int main()': main.cpp:119:12: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress] out << time << '\n'; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?