Borderou de evaluare (job #1784803)

Utilizator ArkinyStoica Alex Arkiny Data 20 octombrie 2016 15:20:36
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:35: error: ‘int time [100010]’ redeclared as different kind of symbol int N, M, viz[100010], time[100010], min_time[100010], tm,nr; ^ 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, int)’: user.cpp:17:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i < G[x].size();++i) ^ user.cpp:20:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[G[x][i]] = min_time[G[x][i]] = ++tm; ^ user.cpp:20:18: error: assignment of read-only location ‘*(time + ((sizetype)G[x].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))))’ time[G[x][i]] = min_time[G[x][i]] = ++tm; ^ user.cpp:20:18: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:24:14: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[x] <= min_time[G[x][i]]) ^ user.cpp:24:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (time[x] <= min_time[G[x][i]]) ^ user.cpp: In function ‘int main()’: user.cpp:60:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0;j < biconex[i].size();++j) ^

Ceva nu functioneaza?