Borderou de evaluare (job #982123)
Utilizator | Data | 8 august 2013 16:09:15 | |
---|---|---|---|
Problema | Calancea | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:13: error: reference to ‘next’ is ambiguous
next[st[L]]=i;
^
user.cpp:9:35: note: candidates are: int next [1000010]
int N, L, Rez, v[NMax], st[NMax], next[NMax];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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:29:24: error: reference to ‘next’ is ambiguous
for (i=1;i<=L;++i) next[st[i]]=N+1;
^
user.cpp:9:35: note: candidates are: int next [1000010]
int N, L, Rez, v[NMax], st[NMax], next[NMax];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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:35:32: error: reference to ‘next’ is ambiguous
int last = min( y, next[x-1]);
^
user.cpp:9:35: note: candidates are: int next [1000010]
int N, L, Rez, v[NMax], st[NMax], next[NMax];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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:38:43: error: reference to ‘next’ is ambiguous
for (int p = x; p <= last ; p=next[p] ){
^
user.cpp:9:35: note: candidates are: int next [1000010]
int N, L, Rez, v[NMax], st[NMax], next[NMax];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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:39:33: error: reference to ‘next’ is ambiguous
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !