Borderou de evaluare (job #424996)
Utilizator | Data | 25 martie 2010 13:30:59 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:49:2: warning: no newline at end of file
user.cpp: In function 'int main()':
user.cpp:27: error: no match for 'operator!=' in 'it.std::_Rb_tree_iterator<_Tp>::operator* [with _Tp = std::pair<const int, int>]() != val'
user.cpp:30: error: no matching function for call to 'std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >::insert(int&)'
/usr/include/c++/4.2/bits/stl_map.h:399: note: candidates are: std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::insert(const std::pair<const _Key, _Tp>&) [with _Key = int, _Tp = int, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >]
/usr/include/c++/4.2/bits/stl_map.h:426: note: typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, const std::pair<const _Key, _Tp>&) [with _Key = int, _Tp = int, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >]
user.cpp:35: error: no match for 'operator!=' in 'it.std::_Rb_tree_iterator<_Tp>::operator* [with _Tp = std::pair<const int, int>]() != val'
user.cpp:43: error: no match for 'operator!=' in 'it.std::_Rb_tree_iterator<_Tp>::operator* [with _Tp = std::pair<const int, int>]() != val'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !