Borderou de evaluare (job #1887158)

Utilizator AndreiFlorescuAndrei Florescu AndreiFlorescu Data 21 februarie 2017 13:17:06
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:21:18: error: ‘int time [51][1001]’ redeclared as different kind of symbol int time[51][1001]; ^ 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 solve(int)’: user.cpp:36:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:36: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:52: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:62: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:70: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:38: error: assignment of read-only location ‘*(time + ((sizetype)it.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-><cell*, std::vector<cell> >()->cell::vec))’ time[it->vec][0] = time[act.nod][act.cost] + it->t; ^ user.cpp:36:38: 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:41:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] } else if (!time[it->vec][act.cost + it->w] || ^ user.cpp:41:59: warning: pointer to a function used in arithmetic [-Wpointer-arith] } else if (!time[it->vec][act.cost + it->w] || ^ user.cpp:42:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[act.nod][act.cost] + it->t < time[it->vec][act.cost + it->w]) { ^ user.cpp:42:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[act.nod][act.cost] + it->t < time[it->vec][act.cost + it->w]) { ^ user.cpp:42:52: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[act.nod][act.cost] + it->t < time[it->vec][act.cost + it->w]) { ^

Ceva nu functioneaza?