Borderou de evaluare (job #1493005)
Utilizator | Data | 28 septembrie 2015 16:47:14 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:37:18: error: request for member ‘push_back’ in ‘graph.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
graph[x].push_back(y);
^
user.cpp: In function ‘void bfs()’:
user.cpp:57:54: error: request for member ‘begin’ in ‘graph.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)act))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
for ( vector<int> :: iterator i = graph[act].begin(); i < graph[act].end(); ++i )
^
user.cpp:57:78: error: request for member ‘end’ in ‘graph.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)act))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
for ( vector<int> :: iterator i = graph[act].begin(); i < graph[act].end(); ++i )
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !