Borderou de evaluare (job #1330162)
Utilizator | Data | 30 ianuarie 2015 14:31:01 | |
---|---|---|---|
Problema | Zvon | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:23: error: ‘std::vector<unsigned int> time’ redeclared as different kind of symbol
vector <unsigned> time(Nmax);
^
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 ‘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: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/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)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !