Borderou de evaluare (job #1579670)
Utilizator | Data | 24 ianuarie 2016 22:38:06 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:27:37: error: no matching function for call to ‘std::unordered_map<std::basic_string<char>, bool>::hash_function(std::string&)’
Hash = RabinKarp.hash_function(str1);
^
user.cpp:27:37: note: candidate is:
In file included from /usr/include/c++/4.8/unordered_map:48:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/unordered_map.h:518:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_function() const [with _Key = std::basic_string<char>; _Tp = bool; _Hash = std::hash<std::basic_string<char> >; _Pred = std::equal_to<std::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::basic_string<char>, bool> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::basic_string<char> >]
hash_function() const
^
/usr/include/c++/4.8/bits/unordered_map.h:518:7: note: candidate expects 0 arguments, 1 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !