Borderou de evaluare (job #3239222)
Utilizator | Data | 3 august 2024 09:42:54 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:49:13: error: reference to 'next' is ambiguous
49 | next[i]=u[vf];
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/stl_construct.h:62,
from /usr/include/c++/12.2.1/bits/char_traits.h:46,
from /usr/include/c++/12.2.1/ios:40,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_iterator_base_funcs.h:230:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
230 | next(_InputIterator __x, typename
| ^~~~
main.cpp:6:41: note: 'int next [100001]'
6 | int n,v[100001],u[100001],vf,st[100001],next[100001],vf1,poz;
| ^~~~
main.cpp:55:13: error: reference to 'next' is ambiguous
55 | next[i]=next[u[j]];
| ^~~~
/usr/include/c++/12.2.1/bits/stl_iterator_base_funcs.h:230:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
230 | next(_InputIterator __x, typename
| ^~~~
main.cpp:6:41: note: 'int next [100001]'
6 | int n,v[100001],u[100001],vf,st[100001],next[100001],vf1,poz;
| ^~~~
main.cpp:55:21: error: reference to 'next' is ambiguous
55 | next[i]=next[u[j]];
| ^~~~
/usr/include/c++/12.2.1/bits/stl_iterator_base_funcs.h:230:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
230 | next(_InputIterator __x, typename
| ^~~~
main.cpp:6:41: note: 'int next [100001]'
6 | int n,v[100001],u[100001],vf,st[100001],next[100001],vf1,poz;
| ^~~~
main.cpp:70:13: error: reference to 'next' is ambiguous
70 | poz=next[poz];
| ^~~~
/usr/include/c++/12.2.1/bits/stl_iterator_base_funcs.h:230:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
230 | next(_InputIterator __x, typename
| ^~~~
main.cpp:6:41: note: 'int next [100001]'
6 | int n,v[100001],u[100001],vf,st[100001],next[100001],vf1,poz;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !