Borderou de evaluare (job #1809379)
Utilizator | Data | 18 noiembrie 2016 21:30:49 | |
---|---|---|---|
Problema | Danger | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void deleteelem(int, int)’:
user.cpp:13:1: error: reference to ‘next’ is ambiguous
next[index][prev[index][poz]]=next[index][poz];
^
user.cpp:5:30: note: candidates are: std::vector<std::vector<int> > next
vector<vector<int> >v,f,prev,next,recon,ans;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:13:13: error: reference to ‘prev’ is ambiguous
next[index][prev[index][poz]]=next[index][poz];
^
user.cpp:5:25: note: candidates are: std::vector<std::vector<int> > prev
vector<vector<int> >v,f,prev,next,recon,ans;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp:13:31: error: reference to ‘next’ is ambiguous
next[index][prev[index][poz]]=next[index][poz];
^
user.cpp:5:30: note: candidates are: std::vector<std::vector<int> > next
vector<vector<int> >v,f,prev,next,recon,ans;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:14:1: error: reference to ‘prev’ is ambiguous
prev[index][next[index][poz]]=prev[index][poz];
^
user.cpp:5:25: note: candidates are: std::vector<std::vector<int> > prev
vector<vector<int> >v,f,prev,next,recon,ans;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp:14:13: error: reference to ‘next’ is ambiguous
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !