Borderou de evaluare (job #1787679)

Utilizator alexpetrescuAlexandru Petrescu alexpetrescu Data 24 octombrie 2016 21:42:26
Problema Timetravel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:26: error: ‘int time [500000]’ redeclared as different kind of symbol int aint[MAXP], time[MAXM], val[MAXM]; ^ 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/basic_string.h:39, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /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 ‘int main()’: user.cpp:100:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]=-INF; ^ user.cpp:100:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i]=-INF; ^ user.cpp:100:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:105:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]=read(); ^ user.cpp:105:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i]=read(); ^ user.cpp:105:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:109:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]=-INF; ^ user.cpp:109:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i]=-INF; ^ user.cpp:109:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:113:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]=read(); ^ user.cpp:113:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i]=read(); ^ user.cpp:113:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:117:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]=read(); ^ user.cpp:117:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i]=read();

Ceva nu functioneaza?