Borderou de evaluare (job #807815)
Utilizator | Data | 5 noiembrie 2012 19:29:14 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(std::string)’:
user.cpp:38: error: no match for ‘operator[]’ in ‘graph[node]’
/usr/include/c++/4.4/tr1_impl/hashtable_policy.h:563: note: candidates are: typename std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, _Hashtable>::mapped_type& std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, _Hashtable>::operator[](const _Key&) [with _Key = int, _Pair = std::pair<const int, std::vector<int, std::allocator<int> > >, _Hashtable = std::tr1::_Hashtable<int, std::pair<const int, std::vector<int, std::allocator<int> > >, std::allocator<std::pair<const int, std::vector<int, std::allocator<int> > > >, std::_Select1st<std::pair<const int, std::vector<int, std::allocator<int> > > >, std::equal_to<int>, std::tr1::hash<int>, std::tr1::__detail::_Mod_range_hashing, std::tr1::__detail::_Default_ranged_hash, std::tr1::__detail::_Prime_rehash_policy, false, false, true>]
user.cpp:39: error: no match for ‘operator[]’ in ‘visited[node]’
/usr/include/c++/4.4/tr1_impl/hashtable_policy.h:563: note: candidates are: typename std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, _Hashtable>::mapped_type& std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, _Hashtable>::operator[](const _Key&) [with _Key = int, _Pair = std::pair<const int, bool>, _Hashtable = std::tr1::_Hashtable<int, std::pair<const int, bool>, std::allocator<std::pair<const int, bool> >, std::_Select1st<std::pair<const int, bool> >, std::equal_to<int>, std::tr1::hash<int>, std::tr1::__detail::_Mod_range_hashing, std::tr1::__detail::_Default_ranged_hash, std::tr1::__detail::_Prime_rehash_policy, false, false, true>]
user.cpp:43: error: invalid conversion from ‘int’ to ‘const char*’
user.cpp:43: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’
user.cpp: In function ‘void conex()’:
user.cpp:52: error: invalid conversion from ‘int’ to ‘const char*’
user.cpp:52: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !