Borderou de evaluare (job #1049148)
Utilizator | Data | 6 decembrie 2013 22:55:48 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:23: error: could not convert ‘it’ from ‘std::unordered_map<int, int>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, int>, false, false>}’ to ‘bool’
for(it=h.begin(); it!h.end(); it++)
^
user.cpp:19:25: error: expected ‘;’ before ‘!’ token
for(it=h.begin(); it!h.end(); it++)
^
user.cpp:19:25: error: no match for ‘operator!’ (operand type is ‘std::unordered_map<int, int>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, int>, false, false>}’)
user.cpp:19:25: note: candidate is:
user.cpp:19:25: note: operator!(bool) <built-in>
user.cpp:19:25: note: no known conversion for argument 1 from ‘std::unordered_map<int, int>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, int>, false, false>}’ to ‘bool’
user.cpp:19:33: error: expected ‘)’ before ‘;’ token
for(it=h.begin(); it!h.end(); it++)
^
user.cpp:19:39: error: expected ‘;’ before ‘)’ token
for(it=h.begin(); it!h.end(); it++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !