Borderou de evaluare (job #1068992)
Utilizator | Data | 29 decembrie 2013 10:00:15 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:18: error: ‘std::vector<unsigned int> time’ redeclared as different kind of symbol
vector<unsigned> time,is_visited,time_rev;
^
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/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
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_Rev(unsigned int)’:
user.cpp:23:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[start_node] = ++current_time;
^
user.cpp:23:22: error: assignment of read-only location ‘*(time + ((sizetype)start_node))’
time[start_node] = ++current_time;
^
user.cpp:23:22: error: cannot convert ‘unsigned int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp: In function ‘void DFS(unsigned int)’:
user.cpp:48:10: error: request for member ‘push_back’ in ‘time’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
time.push_back(start_node);
^
user.cpp: In function ‘void find_dag()’:
user.cpp:57:18: error: request for member ‘clear’ in ‘time’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
time.clear();
^
user.cpp:59:35: error: no matching function for call to ‘std::vector<std::vector<unsigned int> >::push_back(time_t (&)(time_t*)throw ())’
solutie.push_back(time);
^
user.cpp:59:35: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from /usr/local/include/c++/4.8.0/bits/random.h:34,
from /usr/local/include/c++/4.8.0/random:50,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:3:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<unsigned int>; _Alloc = std::allocator<std::vector<unsigned int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<unsigned int>]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to ‘const value_type& {aka const std::vector<unsigned int>&}’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<unsigned int>; _Alloc = std::allocator<std::vector<unsigned int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<unsigned int>]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to ‘std::vector<std::vector<unsigned int> >::value_type&& {aka std::vector<unsigned int>&&}’
user.cpp: In function ‘int main()’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !