Problem | rblock |
---|---|
User | user123 |
Submission Time | 2023-08-04 19:12:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rblock.cpp: In function ‘int best_path(int, int)’:
rblock.cpp:19:13: error: reference to ‘prev’ is ambiguous
19 | memset (prev, -1, sizeof (prev));
| ^~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/algorithm:61,
from rblock.cpp:4:
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> constexpr _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’
224 | prev(_BidirectionalIterator __x, typename
| ^~~~
rblock.cpp:12:43: note: ‘int prev [505]’
12 | int N, M, edge [MAXN][MAXN], dist [MAXN], prev [MAXN];
| ^~~~
rblock.cpp:19:31: error: reference to ‘prev’ is ambiguous
19 | memset (prev, -1, sizeof (prev));
|