Borderou de evaluare (job #497095)
Utilizator | Data | 1 noiembrie 2010 16:54:10 | |
---|---|---|---|
Problema | Oite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function 'void insert(int)':
user.cpp:27: error: conversion from 'std::_List_iterator<std::pair<int, int> >' to non-scalar type '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >' requested
user.cpp:27: error: no match for 'operator!=' in 'it != H[p].std::list<_Tp, _Alloc>::end [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >]()'
user.cpp: In function 'void erase(int)':
user.cpp:39: error: conversion from 'std::_List_iterator<std::pair<int, int> >' to non-scalar type '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >' requested
user.cpp:39: error: no match for 'operator!=' in 'it != H[p].std::list<_Tp, _Alloc>::end [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >]()'
user.cpp:44: error: no matching function for call to 'std::list<std::pair<int, int>, std::allocator<std::pair<int, int> > >::erase(__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >&)'
/usr/include/c++/4.2/bits/list.tcc:96: note: candidates are: typename std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >]
/usr/include/c++/4.2/bits/stl_list.h:873: note: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >]
user.cpp: In function 'int find(int)':
user.cpp:53: error: conversion from 'std::_List_iterator<std::pair<int, int> >' to non-scalar type '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >' requested
user.cpp:53: error: no match for 'operator!=' in 'it != H[p].std::list<_Tp, _Alloc>::end [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >]()'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !