Borderou de evaluare (job #1106475)
Utilizator | Data | 12 februarie 2014 20:44:10 | |
---|---|---|---|
Problema | Curcubeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:30:9: error: reference to ‘next’ is ambiguous
if (!next[j]){
^
user.cpp:7:32: note: candidates are: int next [1000005]
int a[Nmax], b[Nmax], c[Nmax], next[Nmax], clr[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:32:5: error: reference to ‘next’ is ambiguous
next[j] = (next[ b[i] + 1 ]) ? next[ b[i] + 1 ] : b[i] + 1;
^
user.cpp:7:32: note: candidates are: int next [1000005]
int a[Nmax], b[Nmax], c[Nmax], next[Nmax], clr[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:32:16: error: reference to ‘next’ is ambiguous
next[j] = (next[ b[i] + 1 ]) ? next[ b[i] + 1 ] : b[i] + 1;
^
user.cpp:7:32: note: candidates are: int next [1000005]
int a[Nmax], b[Nmax], c[Nmax], next[Nmax], clr[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:32:36: error: reference to ‘next’ is ambiguous
next[j] = (next[ b[i] + 1 ]) ? next[ b[i] + 1 ] : b[i] + 1;
^
user.cpp:7:32: note: candidates are: int next [1000005]
int a[Nmax], b[Nmax], c[Nmax], next[Nmax], clr[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:9: error: reference to ‘next’ is ambiguous
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !