Borderou de evaluare (job #2054672)
Utilizator | Data | 2 noiembrie 2017 12:19:51 | |
---|---|---|---|
Problema | Reborn | 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:28:16: error: reference to ‘next’ is ambiguous
if(next[0][j]!=0) break;
^
user.cpp:16:5: note: candidates are: int next [18][200004]
int next[lmax][nmax];
^
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:29:13: error: reference to ‘next’ is ambiguous
next[0][j]=it[i].p2;
^
user.cpp:16:5: note: candidates are: int next [18][200004]
int next[lmax][nmax];
^
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:36:16: error: reference to ‘next’ is ambiguous
if(next[j-1][i]>n) continue;
^
user.cpp:16:5: note: candidates are: int next [18][200004]
int next[lmax][nmax];
^
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:37:13: error: reference to ‘next’ is ambiguous
next[j][i]=next[j-1][next[j-1][i]];
^
user.cpp:16:5: note: candidates are: int next [18][200004]
int next[lmax][nmax];
^
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:37:24: error: reference to ‘next’ is ambiguous
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !