Borderou de evaluare (job #1196745)
Utilizator | Data | 9 iunie 2014 00:33:41 | |
---|---|---|---|
Problema | Numere 6 | 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:60:13: error: reference to ‘next’ is ambiguous
next[d[j]]=0;
^
user.cpp:9:30: note: candidates are: short int next [9100]
short int d[5000],last[9100],next[9100];
^
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:5:
/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:64:21: error: reference to ‘next’ is ambiguous
next[d[j]]=(next[d[j]]+last[d[j]/c]);
^
user.cpp:9:30: note: candidates are: short int next [9100]
short int d[5000],last[9100],next[9100];
^
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:5:
/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:64:33: error: reference to ‘next’ is ambiguous
next[d[j]]=(next[d[j]]+last[d[j]/c]);
^
user.cpp:9:30: note: candidates are: short int next [9100]
short int d[5000],last[9100],next[9100];
^
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:5:
/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:65:24: error: reference to ‘next’ is ambiguous
if(next[d[j]]>MOD)
^
user.cpp:9:30: note: candidates are: short int next [9100]
short int d[5000],last[9100],next[9100];
^
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:5:
/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:66:25: error: reference to ‘next’ is ambiguous
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !