Borderou de evaluare (job #1594191)

Utilizator BaweeLazar Vlad Bawee Data 9 februarie 2016 11:48:23
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:28: error: ‘int time [1001]’ redeclared as different kind of symbol int n,k,m,a,b,t,w,time[1001],wati[1001],tata[1001]; ^ 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 ‘bool cmp(const int&, const int&)’: user.cpp:20:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] return time[a] > time[b]; ^ user.cpp:20:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] return time[a] > time[b]; ^ user.cpp: In function ‘int main()’: user.cpp:34:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i = 2; i <= n; ++i) time[i] = INF; ^ user.cpp:34:41: error: assignment of read-only location ‘*(time + ((sizetype)i))’ for(int i = 2; i <= n; ++i) time[i] = INF; ^ user.cpp:34:41: error: cannot convert ‘const int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:51:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[newNode] > time[node] + newNodeTime) ^ user.cpp:51:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[newNode] > time[node] + newNodeTime) ^ user.cpp:51:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[newNode] > time[node] + newNodeTime) ^ user.cpp:53:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[newNode] = time[node] + newNodeTime; ^ user.cpp:53:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[newNode] = time[node] + newNodeTime; ^ user.cpp:53:46: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[newNode] = time[node] + newNodeTime; ^ user.cpp:53:31: error: assignment of read-only location ‘*(time + ((sizetype)newNode))’ time[newNode] = time[node] + newNodeTime;

Ceva nu functioneaza?