Labirintas
Taškai: 0
Compile: FAIL
labirintas.cpp: In function ‘void skaitytiLabirinta(const string&)’: labirintas.cpp:22:5: error: reference to ‘prev’ is ambiguous 22 | prev.assign(I, vector<pair<int, int>>(P, {-1, -1})); | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp: In function ‘void rastiTrumpiausiaKelioIlgio()’: labirintas.cpp:56:13: error: reference to ‘prev’ is ambiguous 56 | prev[x - 1][y] = {x, y}; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp:62:13: error: reference to ‘prev’ is ambiguous 62 | prev[x + 1][y] = {x, y}; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp:68:13: error: reference to ‘prev’ is ambiguous 68 | prev[x][y - 1] = {x, y}; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp:74:13: error: reference to ‘prev’ is ambiguous 74 | prev[x][y + 1] = {x, y}; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp: In function ‘void pažymėtiKelioLangelius(int, int)’: labirintas.cpp:85:19: error: reference to ‘prev’ is ambiguous 85 | tie(px, py) = prev[x][y]; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp: In function ‘void išvestiLabirintąSuKeliu(const string&)’: labirintas.cpp:90:28: error: reference to ‘prev’ is ambiguous 90 | pažymėtiKelioLangelius(prev[I-1][P-1].first, prev[I-1][P-1].second); | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~ labirintas.cpp:90:50: error: reference to ‘prev’ is ambiguous 90 | pažymėtiKelioLangelius(prev[I-1][P-1].first, prev[I-1][P-1].second); | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from labirintas.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’ 224 | prev(_BidirectionalIterator __x, typename | ^~~~ labirintas.cpp:13:32: note: ‘std::vector<std::vector<std::pair<int, int> > > prev’ 13 | vector<vector<pair<int, int>>> prev; | ^~~~
nr. | result | time | message |
---|