Borderou de evaluare (job #1632727)

Utilizator tudormaximTudor Maxim tudormaxim Data 6 martie 2016 10:48:34
Problema Avioane2 Status done
Runda ONIS 2016, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:39: error: ‘int time [30005]’ redeclared as different kind of symbol int n, tq, dest, dist[nmax], time[nmax]; ^ 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 ‘void dijkstra()’: user.cpp:32:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[1]=0; ^ user.cpp:32:12: error: assignment of read-only location ‘*(time + 1u)’ time[1]=0; ^ user.cpp:32:12: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:44:57: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(dist[son] > dist[dad]+cost && (a-time[dad])+(b-a) <= tq) ^ user.cpp:44:57: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’ user.cpp:47:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[son]=(a-time[dad])+(b-a); ^ user.cpp:47:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[son]=(a-time[dad])+(b-a); ^ user.cpp:47:38: 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 ‘int main()’: user.cpp:57:21: warning: unused variable ‘a’ [-Wunused-variable] int m, k, x, y, a, b; ^ user.cpp:57:24: warning: unused variable ‘b’ [-Wunused-variable] int m, k, x, y, a, b; ^

Ceva nu functioneaza?