Borderou de evaluare (job #2342610)

Utilizator i.uniodCaramida Iustina-Andreea i.uniod Data 12 februarie 2019 22:57:08
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:5: error: 'int time' redeclared as different kind of symbol int time, n, nr_ingredients; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, 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 'int make_ingredient(int)': main.cpp:27:12: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] w[i] = NULL; ^~~~ main.cpp: In function 'int make_time(int)': main.cpp:58:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += nr; ^~ main.cpp:58:13: error: assignment of function 'time_t time(time_t*)' main.cpp:58: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 main.cpp: In function 'void slove()': main.cpp:74:12: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress] fout<< time << '\n'; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?