Borderou de evaluare (job #2105236)

Utilizator amaliarebAmalia Rebegea amaliareb Data 12 ianuarie 2018 21:20:08
Problema Project management Status done
Runda ojiiiii Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:17: error: ‘int time [102]’ redeclared as different kind of symbol int n, time[MaxN], mini[MaxN], maxi[MaxN], ans; ^ 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 dfs(int)’: user.cpp:16:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] maxi[node] = ans - time[node]; ^ user.cpp:16:33: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’ user.cpp:19:59: warning: pointer to a function used in arithmetic [-Wpointer-arith] maxi[node] = min(maxi[node], maxi[son] - time[node]); ^ user.cpp:19:59: 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 ‘void idfs(int)’: user.cpp:27:58: warning: pointer to a function used in arithmetic [-Wpointer-arith] mini[node] = max(mini[node], mini[dad] + time[dad]); ^ user.cpp:27:58: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:27:59: error: no matching function for call to ‘max(int&, time_t (*)(time_t*)throw ())’ mini[node] = max(mini[node], mini[dad] + time[dad]); ^ user.cpp:27:59: note: candidates are: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: user.cpp:27:59: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’) mini[node] = max(mini[node], mini[dad] + time[dad]); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1:

Ceva nu functioneaza?