Borderou de evaluare (job #2176170)

Utilizator raul044Moldovan Raul raul044 Data 16 martie 2018 21:22:38
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:34: error: ‘int time [100005]’ redeclared as different kind of symbol int n, m, t, low[maxN], time[maxN], parent[maxN], art[maxN]; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148, from /usr/include/c++/5/ext/atomicity.h:35, from /usr/include/c++/5/bits/ios_base.h:39, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from user.cpp:1: /usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:31:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] low[nod] = time[nod] = ++t; ^ user.cpp:31:26: error: assignment of read-only location ‘*(time + ((sizetype)nod))’ low[nod] = time[nod] = ++t; ^ user.cpp:31:26: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:35:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[u] == 0) { ^ user.cpp:46:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (low[u] >= time[nod]) { ^ user.cpp:46:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:52:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] low[nod] = min(low[nod], time[u]); ^ user.cpp:52:45: error: no matching function for call to ‘min(int&, time_t (&)(time_t*) throw ())’ low[nod] = min(low[nod], time[u]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from user.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: user.cpp:52:45: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’) low[nod] = min(low[nod], time[u]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40,

Ceva nu functioneaza?