Borderou de evaluare (job #2842623)
Utilizator | Data | 1 februarie 2022 11:32:09 | |
---|---|---|---|
Problema | Yinyang | Status | done |
Runda | lux | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:59:9: error: reference to 'next' is ambiguous
59 | next[c] = mat[l][c];
| ^~~~
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/ostream:38,
from /usr/include/c++/10/iostream:39,
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:13:24: note: 'int next [100]'
13 | int mat[MAXNM][MAXNM], next[MAXNM], cautati[MAXNM];
| ^~~~
main.cpp:61:12: error: reference to 'next' is ambiguous
61 | sort(next, next + m);
| ^~~~
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/ostream:38,
from /usr/include/c++/10/iostream:39,
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:13:24: note: 'int next [100]'
13 | int mat[MAXNM][MAXNM], next[MAXNM], cautati[MAXNM];
| ^~~~
main.cpp:61:18: error: reference to 'next' is ambiguous
61 | sort(next, next + m);
| ^~~~
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/ostream:38,
from /usr/include/c++/10/iostream:39,
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:13:24: note: 'int next [100]'
13 | int mat[MAXNM][MAXNM], next[MAXNM], cautati[MAXNM];
| ^~~~
main.cpp:63:32: error: reference to 'next' is ambiguous
63 | if(mat[l][v[c].poz] != next[c]){
| ^~~~
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 !