Problem | splithunny |
---|---|
User | Kiameimon |
Submission Time | 2024-02-04 19:00:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splithunny.cpp: In function ‘void dfs(long long int)’:
splithunny.cpp:18:6: error: reference to ‘visit’ is ambiguous
18 | if(!visit[cur]) return;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from splithunny.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)
| ^~~~~
splithunny.cpp:14:6: note: ‘bool visit [10000]’
14 | bool visit[10000];
| ^~~~~
splithunny.cpp:19:2: error: reference to ‘visit’ is ambiguous
19 | visit[cur] = 0;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from splithunny.cpp:1:
/usr/include/c++/9/variant:1658:5: note: candidates are: ‘template<cla