Borderou de evaluare (job #983598)

Utilizator AlexandruValeanuAlexandru Valeanu AlexandruValeanu Data 12 august 2013 13:02:27
Problema Zvon Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:18: error: ‘std::vector<int> time’ redeclared as different kind of symbol vector <int> time(Nmax); ^ In file included from /usr/include/pthread.h:26:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148, from /usr/local/include/c++/4.8.0/ext/atomicity.h:33, from /usr/local/include/c++/4.8.0/bits/ios_base.h:39, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/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 ‘int cmp(const int&, const int&)’: user.cpp:14:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] return time[a] > time[b]; ^ user.cpp:14:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] return time[a] > time[b]; ^ user.cpp: In function ‘void DFS(int)’: user.cpp:19:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < G[node].size(); ++i ) ^ user.cpp:27:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < G[node].size(); ++i ) ^ user.cpp:28:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:60: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:64: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:68: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:70: error: no matching function for call to ‘max(time_t (&)(time_t*)throw (), time_t (*)(time_t*)throw ())’ time[node] = max( time[node], time[ G[node][i] ] + i + 1 ); ^ user.cpp:28:70: note: candidates are: In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40,

Ceva nu functioneaza?