Borderou de evaluare (job #2055540)

Utilizator DawlauAndrei Blahovici Dawlau Data 3 noiembrie 2017 13:21:24
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:14: error: ‘int time [100005]’ redeclared as different kind of symbol int time[NMAX],low_time[NMAX],n,m,k,node_time=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/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 tarjan(int)’: user.cpp:22:14: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node]=low_time[node]=node_time++; ^ user.cpp:22:15: error: assignment of read-only location ‘*(time + ((sizetype)node))’ time[node]=low_time[node]=node_time++; ^ user.cpp:22:15: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:27:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[*it]==0){ ^ user.cpp:33:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[node]==low_time[node]){ ^ user.cpp:33:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time[node]==low_time[node]){ ^ user.cpp: In function ‘void go_through_vertices()’: user.cpp:47:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(!time[i]) ^

Ceva nu functioneaza?