Borderou de evaluare (job #1631313)
Utilizator | Data | 5 martie 2016 14:48:04 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:14: error: ‘std::vector<int> time’ redeclared as different kind of symbol
vector <int> time, used, solution, Gdistance;
^
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 bellman_ford(int)’:
user.cpp:39:71: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (Gdistance[edge[node][i]] < Gdistance[node] + time[edge[node][i]])
^
user.cpp:39:71: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:39:71: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:41:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Gdistance[edge[node][i]] = Gdistance[node] + time[edge[node][i]];
^
user.cpp:41:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:41:48: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ [-fpermissive]
Gdistance[edge[node][i]] = Gdistance[node] + time[edge[node][i]];
^
user.cpp: In function ‘int main()’:
user.cpp:76:44: error: request for member ‘resize’ in ‘time’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
edge.resize(N+2); edgeT.resize(N+2); time.resize(N+2); used.resize(N+2);
^
user.cpp:79:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin >>time[i];
^
user.cpp:79:21: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long int(long int*)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:109:67: warning: pointer to a function used in arithmetic [-Wpointer-arith]
maxim = max(maxim, earliest[edge[node][j]] + time[edge[node][j]]);
^
user.cpp:109:67: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:109:68: error: no matching function for call to ‘max(int&, time_t (*)(time_t*)throw ())’
maxim = max(maxim, earliest[edge[node][j]] + time[edge[node][j]]);
^
user.cpp:109:68: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !