Problem hieroglyphs
User reporter
Submission Time 2023-01-15 10:48:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hieroglyphs.cpp: In function ‘int main()’:
hieroglyphs.cpp:59:85: error: reference to ‘ref’ is ambiguous
59 | for(int x=0;x<h;x++) for(int y=0;y<w;y++) if(grid[x][y]&&!vis[x][y]) ans.push_back(ref[bfs(ii(x,y),1)]);
| ^~~
In file included from /usr/include/c++/9/functional:58,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from hieroglyphs.cpp:6:
/usr/include/c++/9/bits/refwrap.h:370:5: note: candidates are: ‘template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)’
370 | ref(reference_wrapper<_Tp> __t) noexcept
| ^~~
/usr/include/c++/9/bits/refwrap.h:362:10: note: ‘template<class _Tp> void std::ref(const _Tp&&)’
362 | void ref(const _Tp&&) = delete;
|