Borderou de evaluare (job #1908308)

Utilizator silkMarin Dragos silk Data 7 martie 2017 00:27:06
Problema Reactor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:24:16: error: ‘int time [103]’ redeclared as different kind of symbol int time[NMax+1]; ^ 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:4: /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:78:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[1] = 0; ^ user.cpp:78:13: error: assignment of read-only location ‘*(time + 1u)’ time[1] = 0; ^ user.cpp:78:13: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:116:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[++M] = time[M-1] + when; ^ user.cpp:116:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[++M] = time[M-1] + when; ^ user.cpp:116:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:116:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[++M] = time[M-1] + when; ^ user.cpp:116:23: error: assignment of read-only location ‘*(time + ((sizetype)(++ M)))’ time[++M] = time[M-1] + when; ^ user.cpp:116:23: 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:137:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[mid] > T) dr = mid-1; ^ user.cpp:137:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time[mid] > T) dr = mid-1; ^ user.cpp:143:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((place[f][i] + 1LL * (T-time[f]) * speed[f][i]) % N == S){ ^ user.cpp:143:42: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’ user.cpp: In function ‘void Read(int&)’: user.cpp:56:47: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?