Borderou de evaluare (job #2116124)

Utilizator PRGCRRaul Cotar PRGCR Data 27 ianuarie 2018 12:43:57
Problema Joc10 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:32: error: ‘int time [401]’ redeclared as different kind of symbol int cod[902],over[401],time[401],cam[401]; ^ 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 ‘int main()’: user.cpp:25:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[player]=9999; ^ user.cpp:25:29: error: assignment of read-only location ‘*(time + ((sizetype)player))’ time[player]=9999; ^ user.cpp:25:29: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:31:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[player]=etp; ^ user.cpp:31:29: error: assignment of read-only location ‘*(time + ((sizetype)player))’ time[player]=etp; ^ user.cpp:31:29: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:37:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[player]=etp; ^ user.cpp:37:29: error: assignment of read-only location ‘*(time + ((sizetype)player))’ time[player]=etp; ^ user.cpp:37:29: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:51:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[i]<lim) { ^ user.cpp:51:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time[i]<lim) { ^ user.cpp:52:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] lim=time[i]; ^ user.cpp:52:27: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] user.cpp:57:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(over[j]==0 && time[j]<=lim) { ^

Ceva nu functioneaza?