Borderou de evaluare (job #1876465)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 12 februarie 2017 13:27:57
Problema Rell's Report Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:19: error: ‘int time [151]’ redeclared as different kind of symbol int time[1 + MAXHP], cost[1 + MAXHP]; ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, 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 Update(int, int, int, int)’: user.cpp:34:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[i] > dp[i][j][k][l]) { ^ user.cpp:34:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (time[i] > dp[i][j][k][l]) { ^ user.cpp:35:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i] = dp[i][j][k][l]; ^ user.cpp:35:17: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i] = dp[i][j][k][l]; ^ user.cpp:35:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:39:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[i] == dp[i][j][k][l]) ^ user.cpp:39:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (time[i] == dp[i][j][k][l]) ^ user.cpp: In function ‘void Precompute()’: user.cpp:45:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i] = cost[i] = INF; ^ user.cpp:45:17: error: assignment of read-only location ‘*(time + ((sizetype)i))’ time[i] = cost[i] = INF; ^ user.cpp:45:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:77:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[i] > time[i + j] && time[i + j]) { ^ user.cpp:77:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[i] > time[i + j] && time[i + j]) { ^ user.cpp:77:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?