Borderou de evaluare (job #1859552)

Utilizator Bodo171Bogdan Pop Bodo171 Data 27 ianuarie 2017 19:21:52
Problema LuffXor Status done
Runda PreOJI 2017 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:41: error: ‘int time [200005]’ redeclared as different kind of symbol int st[200005],where[200005],time[200005],ap[105]; ^ 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:23:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[u]=cat; ^ user.cpp:23:20: error: assignment of read-only location ‘*(time + ((sizetype)u))’ time[u]=cat; ^ user.cpp:23:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:30:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[poz]=time[u]; ^ user.cpp:30:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[poz]=time[u]; ^ user.cpp:30:22: error: assignment of read-only location ‘*(time + ((sizetype)poz))’ time[poz]=time[u]; ^ user.cpp:30:22: 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:31:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] where[time[poz]]=poz; ^ user.cpp:31:28: error: invalid types ‘int [200005][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript where[time[poz]]=poz; ^

Ceva nu functioneaza?