Sukabinti žiedai
- [1] 2019-01-19 14:19 (0)
- [2] 2019-01-19 14:20 (100)
Taškai: 0
Compile: FAIL
ziedai.cpp: In function ‘void bfs(int)’: ziedai.cpp:17:9: error: reference to ‘prev’ is ambiguous prev[i]=-1; ^ ziedai.cpp:10:5: note: candidates are: int prev [1000] int prev[1000]; ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:66:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from ziedai.cpp:1: /usr/include/c++/5/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^ ziedai.cpp:32:21: error: reference to ‘prev’ is ambiguous prev[v]=4; ^ ziedai.cpp:10:5: note: candidates are: int prev [1000] int prev[1000]; ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:66:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from ziedai.cpp:1: /usr/include/c++/5/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^
nr. | result | time | message |
---|