Borderou de evaluare (job #2842904)
Utilizator | Data | 1 februarie 2022 18:13:56 | |
---|---|---|---|
Problema | Curcubeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:9: error: reference to 'next' is ambiguous
24 | next[i] = i;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:66,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
213 | next(_InputIterator __x, typename
| ^~~~
main.cpp:10:55: note: 'std::vector<int> next'
10 | vector <int> colour (INF, 0), a(INF), b(INF), c(INF), next (INF);
| ^~~~
main.cpp:31:17: error: reference to 'next' is ambiguous
31 | if (next[j] != j) /// Secventa j...next[j] este ocupata
| ^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:66,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
213 | next(_InputIterator __x, typename
| ^~~~
main.cpp:10:55: note: 'std::vector<int> next'
10 | vector <int> colour (INF, 0), a(INF), b(INF), c(INF), next (INF);
| ^~~~
main.cpp:32:21: error: reference to 'next' is ambiguous
32 | j = next[j];
| ^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:66,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
213 | next(_InputIterator __x, typename
| ^~~~
main.cpp:10:55: note: 'std::vector<int> next'
10 | vector <int> colour (INF, 0), a(INF), b(INF), c(INF), next (INF);
| ^~~~
main.cpp:34:35: error: reference to 'next' is ambiguous
34 | colour[j] = c[i], next[j] = right + 1, j += 1;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:66,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !