| Problem | magicwand |
|---|---|
| User | Samyeobeo |
| Submission Time | 2026-05-03 19:20:13 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
magicwand.cpp: In function ‘int main()’:
magicwand.cpp:33:21: error: reference to ‘visit’ is ambiguous
33 | if(!visit[nx][ny])
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from magicwand.cpp:1:
/usr/include/c++/9/variant:1658:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’
1658 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
magicwand.cpp:4:19: note: ‘long long int visit [1005][1005]’
4 | int a[1005][1005],visit[1005][1005];
| ^~~~~
magicwand.cpp:37:25: error: reference to ‘visit’ is ambiguous
37 | visit[nx][ny] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,