Borderou de evaluare (job #2155742)

Utilizator savigunFeleaga Dragos-George savigun Data 8 martie 2018 01:52:19
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:23: error: ‘int time [100005]’ redeclared as different kind of symbol int n, m, t, time[MAXN], low[MAXN], ncb; ^ 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, int)’: user.cpp:29:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[x] = ++t; ^ user.cpp:29:13: error: assignment of read-only location ‘*(time + ((sizetype)x))’ time[x] = ++t; ^ user.cpp:29:13: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:30:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] low[x] = time[x]; ^ user.cpp:30:20: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive] user.cpp:38:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (low[y] >= time[x]) { ^ user.cpp:38:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:42:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] low[x] = min(low[x], time[y]); ^ user.cpp:42:41: error: no matching function for call to ‘min(int&, time_t (&)(time_t*) throw ())’ low[x] = min(low[x], time[y]); ^ 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:42:41: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’) low[x] = min(low[x], time[y]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0,

Ceva nu functioneaza?