QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#43421 | #4243. Good Coloring | GuanYunchang | Compile Error | / | / | C++17 | 858b | 2022-08-09 14:37:08 | 2022-08-09 14:37:10 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void dfs(int)’: answer.code:8:9: error: reference to ‘visit’ is ambiguous 8 | visit[u]=1; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:1: /usr/include/c++/11/variant:1740:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’ 1740 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ answer.code:5:27: note: ‘int visit [300010]’ 5 | int c[300010],len[300010],visit[300010],ans[300010],ansh; | ^~~~~ answer.code:11:21: error: reference to ‘visit’ is ambiguous 11 | if(!visit[v])dfs(v); | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:1: /usr/include/c++/11/variant:1740:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’ 1740 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ answer.code:5:27: note: ‘int visit [300010]’ 5 | int c[300010],len[300010],visit[300010],ans[300010],ansh; | ^~~~~ answer.code: In function ‘int main()’: answer.code:28:70: error: reference to ‘visit’ is ambiguous 28 | for(int i=1;i<=n;i++)cin>>c[i],g[i].clear(),len[i]=0,visit[i]=0; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:1: /usr/include/c++/11/variant:1740:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’ 1740 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ answer.code:5:27: note: ‘int visit [300010]’ 5 | int c[300010],len[300010],visit[300010],ans[300010],ansh; | ^~~~~ answer.code:37:29: error: reference to ‘visit’ is ambiguous 37 | if(!visit[i])dfs(i); | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:1: /usr/include/c++/11/variant:1740:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’ 1740 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ answer.code:5:27: note: ‘int visit [300010]’ 5 | int c[300010],len[300010],visit[300010],ans[300010],ansh; | ^~~~~